Template:Wikipedia
From CruisersWiki
(Difference between revisions)
(http instead of https) |
|||
Line 1: | Line 1: | ||
- | [http://en.wikipedia.org{{localurl:{{if|test={{{1|}}}|then={{{1}}}|else={{PAGENAME}}}}}} {{PAGENAME}}]{{{2| at the Wikipedia}}}<noinclude> | + | <includeonly>[http://en.wikipedia.org{{localurl:{{if|test={{{1|}}}|then={{{1}}}|else={{PAGENAME}}}}}} {{PAGENAME}}]{{{2| at the Wikipedia}}}</includeonly><noinclude> |
+ | A link to Wikipedia page. | ||
- | + | The most common use: | |
+ | <nowiki>{{</nowiki>wikipedia}} | ||
+ | |||
+ | will produce: | ||
+ | |||
+ | {{wikipedia}} | ||
+ | |||
+ | where the link points to: http://en.wikipedia.org/wiki/Wikipedia | ||
+ | |||
+ | |||
+ | While an extended form: | ||
+ | |||
+ | <nowiki>{{</nowiki>wikipedia|sailing| some text at the end}} | ||
+ | |||
+ | will produce: | ||
+ | |||
+ | {{wikipedia|sailing| some text at the end}} | ||
+ | |||
+ | where the link points to: http://en.wikipedia.org/wiki/Sailing | ||
+ | |||
+ | |||
+ | Another variation: | ||
+ | |||
+ | <nowiki>{{</nowiki>wikipedia||}} | ||
+ | |||
+ | gives: | ||
+ | |||
+ | {{wikipedia||}} | ||
+ | |||
+ | take a note that there is no trailing text in this case. | ||
[[Category:Templates|Wikipedia]] | [[Category:Templates|Wikipedia]] | ||
</noinclude> | </noinclude> |
Revision as of 15:09, 22 April 2015
A link to Wikipedia page.
The most common use:
{{wikipedia}}
will produce:
Wikipedia at the Wikipedia
where the link points to: http://en.wikipedia.org/wiki/Wikipedia
While an 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.