Template:Wikipedia: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Permalink label: permalink → perm)
m (Reverted edits by Bugman (talk) to last revision by Red Leader)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span class="plainlinks">[http://{{{lang|en}}}.wikipedia.org/<!--
<span class="plainlinks">[https://{{{lang|en}}}.wikipedia.org/<!--
-->{{#if: {{{diff|}}}  <!-- Is there a diff parameter and a permalink should be used? -->
-->{{#if: {{{diff|}}}  <!-- Is there a diff parameter and a permalink should be used? -->
  |  <!-- Yes there is a diff parameter, use permalink -->
  |  <!-- Yes there is a diff parameter, use permalink -->
Line 11: Line 11:
  |  <!-- No, there is no alternative text -->
  |  <!-- No, there is no alternative text -->
  {{{1|Main Page}}}
  {{{1|Main Page}}}
}}]</span> <!--
}}]</span><!--
-->{{#if: {{{oldid|}}}  <!-- Is there an oldid parameter? -->
-->{{#if: {{{oldid|}}}  <!-- Is there an oldid parameter? -->
  |  <!-- Yes there is 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}}<!--
  &nbsp;(<span class="plainlinks">[https://{{{lang|en}}}.wikipedia.org/w/index.php?title={{urlencode:{{{1|Main Page}}}|wiki}}<!--
  -->{{#if: {{{diff|}}}  <!-- Is there also a non-empty diff parameter? -->
  -->{{#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 -->
   |  <!-- Yes, there there also a non-empty diff parameter, show a link to the diff -->
Line 22: Line 22:
  }}<!--
  }}<!--
  -->]</span>)
  -->]</span>)
}} [[File:Wikipedia icon 15px.png|Wikipedia article]]<noinclude>
}}{{#if: {{{noicon|}}} | | &#32;[[File:Wikipedia icon 15px.png|This is a link to a Wikipedia article|link=Template:Wikipedia]] }}<noinclude>
{{Informative template|1=
{{Informative template|1=
__NOTOC__
__NOTOC__
== Goal ==
== Goal ==
This template can be used for links to Wikipedia pages.
This template can be used for links to Wikipedia pages.
<!-- Adding this template to a page will automatically add [[:Category:...]] to that page. -->


== Usage ==
== Usage ==
  <nowiki>{{</nowiki>'''wikipedia'''<nowiki>|</nowiki>''page title''<nowiki>|</nowiki>''alternative text''<nowiki>|</nowiki>''lang=''<nowiki>|</nowiki>''oldid=''<nowiki>|</nowiki>''diff=''<nowiki>}}</nowiki>
  {{obr}}'''wikipedia'''{{!}}''page title''{{!}}''alternative text''{{!}}''noicon=''{{!}}''lang=''{{!}}''oldid=''{{!}}''diff=''{{cbr}}


All parameters are optional.
All parameters are optional.
Line 37: Line 36:


; alternative text:  Alternative text to be shown instead of the page title.
; alternative text:  Alternative text to be shown instead of the page title.
; noicon:            If true, the little Wikipedia icon ([[File:Wikipedia icon 15px.png]]) will not be shown.


; 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.
Line 47: Line 48:
  <nowiki>See the {{wikipedia|FlightGear}} article on Wikipedia.</nowiki>
  <nowiki>See the {{wikipedia|FlightGear}} article on Wikipedia.</nowiki>
See the {{wikipedia|FlightGear}} article on Wikipedia.
See the {{wikipedia|FlightGear}} article on Wikipedia.
<nowiki>External link: {{wikipedia|FlightGear|FlightGear (Wikipedia)|noicon=1}}</nowiki>
External link: {{wikipedia|FlightGear|FlightGear (Wikipedia)|noicon=1}}


  <nowiki>See the {{wikipedia|FlightGear|lang=sv}} article on the Swedish Wikipedia.</nowiki>
  <nowiki>See the {{wikipedia|FlightGear|lang=sv}} article on the Swedish Wikipedia.</nowiki>
Line 61: Line 65:


== Related templates ==
== Related templates ==
* {{tl|mediawiki}}
* {{tl|cite web}}
* {{tl|cite web}}



Latest revision as of 09:42, 24 May 2019

Main Page This is a link to a Wikipedia article

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 title|alternative text|noicon=|lang=|oldid=|diff=}}

All parameters are optional.

page title
Page title to link to. Defaults to Main Page.
alternative text
Alternative text to be shown instead of the page title.
noicon
If true, the little Wikipedia icon (Wikipedia icon 15px.png) will not be shown.
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.
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

See the {{wikipedia|FlightGear}} article on Wikipedia.

See the FlightGear This is a link to a Wikipedia article article on Wikipedia.

External link: {{wikipedia|FlightGear|FlightGear (Wikipedia)|noicon=1}}

External link: FlightGear (Wikipedia)

See the {{wikipedia|FlightGear|lang=sv}} article on the Swedish Wikipedia.

See the FlightGear This is a link to a Wikipedia article article on Swedish Wikipedia.

The Wikipedia article by the time of the {{wikipedia|FlightGear|release of FlightGear 3.0|oldid=596124837}}.

The Wikipedia article by the time of the release of FlightGear 3.0 (perm) This is a link to a Wikipedia article.

Someone {{wikipedia|FlightGear|mentioned the HondaJet take-down request|oldid=611503439|diff=yep}} on Wikipedia.

Someone mentioned the HondaJet take-down request (diff) This is a link to a Wikipedia article on Wikipedia.

Known issues

  • You can not link to a section using a number sign (#) when using oldid or diff.

Related templates