Template:Wikipedia
From CruisersWiki
(Difference between revisions)
Line 7: | Line 7: | ||
will produce: | will produce: | ||
- | [http://en.wikipedia.org/wiki/PAGENAME PAGENAME] | + | [http://en.wikipedia.org/wiki/PAGENAME PAGENAME] at the Wikipedia |
where PAGENAME is the name of the page and the link points to: http://en.wikipedia.org/wiki/PAGENAME | where PAGENAME is the name of the page and the link points to: http://en.wikipedia.org/wiki/PAGENAME | ||
- | With | + | |
+ | With 1 parameter: | ||
<nowiki>{{</nowiki>wikipedia|Vathy, Samos}} | <nowiki>{{</nowiki>wikipedia|Vathy, Samos}} | ||
Line 17: | Line 18: | ||
will produce: | will produce: | ||
- | + | [http://en.wikipedia.org/wiki/Vathy,_Samos PAGENAME] at the Wikipedia | |
where the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos | where the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos | ||
- | + | With 2 parameters: | |
<nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy}} | <nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy}} | ||
Line 28: | Line 29: | ||
will produce: | will produce: | ||
- | {{wikipedia | + | {{wikipedia|Vathy, Samos|Vathy}} |
- | + | (the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos) | |
- | |||
- | + | With 3 parameters: | |
- | + | <nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy| some text at the end}} | |
- | + | will produce: | |
- | + | {{wikipedia|Vathy, Samos|Vathy| some text at the end}} | |
Another variation: | Another variation: | ||
- | <nowiki>{{</nowiki>wikipedia||}} | + | <nowiki>{{</nowiki>wikipedia|||}} |
gives: | gives: | ||
- | {{wikipedia||}} | + | {{wikipedia|||}} |
take a note that there is no trailing text in this case. | take a note that there is no trailing text in this case. |
Revision as of 14:57, 20 February 2016
A link to Wikipedia page.
The most common use:
{{wikipedia}}
will produce:
PAGENAME at the Wikipedia
where PAGENAME is the name of the page and the link points to: http://en.wikipedia.org/wiki/PAGENAME
With 1 parameter:
{{wikipedia|Vathy, Samos}}
will produce:
PAGENAME at the Wikipedia
where the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos
With 2 parameters:
{{wikipedia|Vathy, Samos|Vathy}}
will produce:
Vathy at the Wikipedia
(the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos)
With 3 parameters:
{{wikipedia|Vathy, Samos|Vathy| some text at the end}}
will produce:
Another variation:
{{wikipedia|||}}
gives:
Wikipedia at the Wikipedia
take a note that there is no trailing text in this case.