Template:Wikipedia

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
-
<includeonly>[http://en.wikipedia.org{{localurl:{{if|test={{{1|}}}|then={{{1}}}|else={{PAGENAME}}}}}} {{PAGENAME}}]{{{2| at the Wikipedia}}}</includeonly><noinclude>
+
<includeonly>[http://en.wikipedia.org{{localurl:{{if|test={{{1|}}}|then={{{1}}}|else={{PAGENAME}}}}}} {{{2|{{PAGENAME}}}}}]{{{3| at the Wikipedia}}}</includeonly><noinclude>
A link to Wikipedia page.
A link to Wikipedia page.
Line 7: Line 7:
will produce:
will produce:
-
{{wikipedia}}
+
[http://en.wikipedia.org/wiki/PAGENAME PAGENAME]
-
where the link points to: http://en.wikipedia.org/wiki/Wikipedia
+
where PAGENAME is the name of the page and the link points to: http://en.wikipedia.org/wiki/PAGENAME
 +
With 2 parameters:
-
While an extended form:
+
<nowiki>{{</nowiki>wikipedia|Vathy, Samos}}
 +
 
 +
will produce:
 +
 
 +
{{wikipedia|Vathy, Samos}}
 +
 
 +
where the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos
 +
 
 +
 
 +
A more extended form:
 +
 
 +
<nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy}}
 +
 
 +
will produce:
 +
 
 +
{{wikipedia|sailing|Vathy, Samos|Vathy}}
 +
 
 +
where the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos
 +
 
 +
A more extended form:
  <nowiki>{{</nowiki>wikipedia|sailing| some text at the end}}
  <nowiki>{{</nowiki>wikipedia|sailing| some text at the end}}

Revision as of 14:51, 20 February 2016

A link to Wikipedia page.

The most common use:

{{wikipedia}}

will produce:

PAGENAME

where PAGENAME is the name of the page and the link points to: http://en.wikipedia.org/wiki/PAGENAME

With 2 parameters:

{{wikipedia|Vathy, Samos}}

will produce:

Wikipedia at the Wikipedia

where the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos


A more extended form:

{{wikipedia|Vathy, Samos|Vathy}}

will produce:

Vathy, Samos

where the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos

A more extended form:

{{wikipedia|sailing| some text at the end}}

will produce:

some text at the end at the Wikipedia

where the link points to: http://en.wikipedia.org/wiki/Sailing


Another variation:

{{wikipedia||}}

gives:

Wikipedia at the Wikipedia

take a note that there is no trailing text in this case.

Personal tools
advertisement
Friends of Cruisers Wiki