Template:Wikipedia: Difference between revisions
Jump to navigation
Jump to search
m (oops, wrong place) |
(Using plainlink style class for permalink as well.) |
||
Line 1: | Line 1: | ||
<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> | <span class="plainlinks">[http://{{{lang|en}}}.wikipedia.org/wiki/{{urlencode:{{{1|Main Page}}}|wiki}} {{{1|Main Page}}}]</span> {{#if: {{{oldid|}}} | (<span class="plainlinks">[http://{{{lang|en}}}.wikipedia.org/w/index.php?title={{urlencode:{{{1|}}}|wiki}}&oldid={{{oldid|}}} permalink]</span>) }} [[File:Wikipedia icon 32px.png|15px|alt="Wikipedia article"|link=http://{{{lang|en}}}.wikipedia.org/wiki/{{urlencode:{{{1|Main Page}}}|wiki}}]]<noinclude> | ||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ |
Revision as of 16:06, 6 June 2014
Main Page File:Wikipedia icon 32px.png
The following template description is not displayed when the template is inserted in an article.
Goal
This template can be used for links to Wikipedia pages.
Usage
{{wikipedia|page|lang=|oldid=}}
All parameters are optional.
- page
- Page title to link to.
- 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.
Examples
{{wikipedia|FlightGear}}
FlightGear File:Wikipedia icon 32px.png
{{wikipedia|FlightGear|lang=sv}}
FlightGear File:Wikipedia icon 32px.png
{{wikipedia|FlightGear|oldid=596124837}}
FlightGear (permalink) File:Wikipedia icon 32px.png
Related templates
- {{cite web}}