Template:Wikipedia: Difference between revisions
Jump to navigation
Jump to search
(Noting that language will not be shown and that the the page title might give a hint; etc) |
(Use plainlinks to hide the external icon, now that we have a W icon) |
||
Line 1: | Line 1: | ||
[http://{{{lang|en}}}.wikipedia.org/wiki/{{urlencode:{{{1|Main Page}}}|wiki}} {{{1|Main Page}}}] {{#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}}</span> {{{1|Main Page}}}] {{#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> | ||
{{Informative template|1= | {{Informative template|1= | ||
__NOTOC__ | __NOTOC__ |
Revision as of 11:05, 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}}