|
|
Line 1: |
Line 1: |
| <span class="plainlinks">[http://{{{lang|en}}}.wikipedia.org/<!-- | | <span class="plainlinks">[http://{{{lang|en}}}.wikipedia.org/wiki/{{urlencode:{{{1|Main Page}}}|wiki}} {{{1|Main Page}}}]</span> {{#if: {{{oldid|}}} | ([http://{{{lang|en}}}.wikipedia.org/w/index.php?title={{urlencode:{{{1|}}}|wiki}}&oldid={{{oldid|}}} permalink]) }} [[File:Wikipedia icon 32px.png|15px|alt="Wikipedia article"|link=http://{{{lang|en}}}.wikipedia.org/wiki/{{urlencode:{{{1|Main Page}}}|wiki}}]]<noinclude> |
| -->{{#if: {{{diff|}}} <!-- Is there a diff parameter and a permalink should be used? -->
| |
| | <!-- Yes there is a diff parameter, use permalink -->
| |
| w/index.php?title={{urlencode:{{{1|Main Page}}}|wiki}}&oldid={{{oldid|}}}
| |
| | <!-- No there is no diff parameter, use regular link -->
| |
| wiki/{{urlencode:{{{1|Main Page}}}|wiki}}
| |
| }} <!--
| |
| -->{{#if: {{{2|}}} <!-- Is there an alternative text? -->
| |
| | <!-- Yes, there is an alternative text -->
| |
| {{{2}}}
| |
| | <!-- No, there is no alternative text -->
| |
| {{{1|Main Page}}}
| |
| }}]</span> <!-- | |
| -->{{#if: {{{oldid|}}} <!-- Is there an oldid parameter? -->
| |
| | <!-- Yes there is an oldid parameter -->
| |
| (<span class="plainlinks">[http://{{{lang|en}}}.wikipedia.org/w/index.php?title={{urlencode:{{{1|Main Page}}}|wiki}}<!--
| |
| -->{{#if: {{{diff|}}} <!-- Is there also a non-empty diff parameter? -->
| |
| | <!-- Yes, there there also a non-empty diff parameter, show a link to the diff -->
| |
| &diff=prev&oldid={{{oldid|}}} diff
| |
| | <!-- No, there no diff parameter, show prmalink -->
| |
| &oldid={{{oldid|}}} permalink
| |
| }}<!--
| |
| -->]</span>)
| |
| }} [[File:Wikipedia icon 32px.png|15px|alt="Wikipedia article"|title="Wikipedia article"]]<noinclude> | |
| {{Informative template|1= | | {{Informative template|1= |
| __NOTOC__ | | __NOTOC__ |
Line 30: |
Line 7: |
|
| |
|
| == Usage == | | == Usage == |
| <nowiki>{{</nowiki>'''wikipedia'''<nowiki>|</nowiki>''page title''<nowiki>|</nowiki>''alternative text''<nowiki>|</nowiki>''lang=''<nowiki>|</nowiki>''oldid=''<nowiki>|</nowiki>''diff=''<nowiki>}}</nowiki> | | <nowiki>{{</nowiki>'''wikipedia'''<nowiki>|</nowiki>''page''<nowiki>|</nowiki>''lang=''<nowiki>|</nowiki>''oldid=''<nowiki>}}</nowiki> |
|
| |
|
| All parameters are optional. | | All parameters are optional. |
|
| |
|
| ; page title: Page title to link to. Defaults to '''Main Page'''. | | ; page: Page title to link to. |
|
| |
|
| ; alternative text: Alternative text to be shown instead of the page title. | | ; lang: Two letter language code to link to another language version than the English one. The language will not be shown (currently not implemented), but the page title might give a hint. |
|
| |
|
| ; lang: Two letter language code to link to another language version than the English one. The language will not be shown (currently not implemented), but the page title might give a hint.
| | ; oldid: Oldid from the end of the Wikipedia permalink URL to use when linking to a specific article revision. Can be found through the page history. |
| | |
| ; oldid: Oldid from the end of the Wikipedia permalink URL to use when linking to a specific article revision. Can be found through the page history. | |
| | |
| ; diff: If not empty a link to a diff comparing the oldid revision with the previous revision will be shown. Instead of a regular link and a permalink a permalink and a link to a diff will be shown.
| |
|
| |
|
| == Examples == | | == Examples == |
| <nowiki>See the {{wikipedia|FlightGear}} article on Wikipedia.</nowiki> | | <nowiki>{{wikipedia|FlightGear}}</nowiki> |
| See the {{wikipedia|FlightGear}} article on Wikipedia.
| | {{wikipedia|FlightGear}} |
| | |
| <nowiki>See the {{wikipedia|FlightGear|lang=sv}} article on the Swedish Wikipedia.</nowiki>
| |
| See the {{wikipedia|FlightGear|lang=sv}} article on Swedish Wikipedia.
| |
|
| |
|
| <nowiki>The Wikipedia article by the time of the {{wikipedia|release of FlightGear 3.0|oldid=596124837}}.</nowiki> | | <nowiki>{{wikipedia|FlightGear|lang=sv}}</nowiki> |
| The Wikipedia article by the time of the {{wikipedia|release of FlightGear 3.0|oldid=596124837}}.
| | {{wikipedia|FlightGear|lang=sv}} |
|
| |
|
| <nowiki>Someone {{wikipedia|FlightGear#History|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia.</nowiki> | | <nowiki>{{wikipedia|FlightGear|oldid=596124837}}</nowiki> |
| Someone {{wikipedia|FlightGear#History|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia.
| | {{wikipedia|FlightGear|oldid=596124837}} |
|
| |
|
| == Related templates == | | == Related templates == |