Template:Wikipedia/doc
From CruisersWiki
(Difference between revisions)
m |
|||
(3 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
A link to a Wikipedia page. | A link to a Wikipedia page. | ||
- | The most common use: | + | <nowiki>{{</nowiki>wikipedia|''wikipedia page name''|''link text''|''suppress " at the Wikipedia"''}}</nowiki> |
+ | |||
+ | ;Parameters | ||
+ | * 1 - wikipedia page name | ||
+ | * 2 - text of the link | ||
+ | * 3 - notail - suppress " at the Wikipedia" at the end | ||
+ | |||
+ | all parameters are optional. | ||
+ | |||
+ | ====The most common use:==== | ||
<nowiki>{{</nowiki>wikipedia}} | <nowiki>{{</nowiki>wikipedia}} | ||
Line 10: | Line 20: | ||
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 1 parameter:==== | |
- | With 1 parameter: | + | |
<nowiki>{{</nowiki>wikipedia|Vathy, Samos}} | <nowiki>{{</nowiki>wikipedia|Vathy, Samos}} | ||
Line 21: | Line 30: | ||
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:==== | |
- | With 2 parameters: | + | |
<nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy}} | <nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy}} | ||
Line 32: | Line 40: | ||
(the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos) | (the link points to: http://en.wikipedia.org/wiki/Vathy,_Samos) | ||
+ | ====With 3 parameters:==== | ||
- | + | <nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy|notail}} | |
- | + | ||
- | <nowiki>{{</nowiki>wikipedia|Vathy, Samos|Vathy| | + | |
will produce: | will produce: | ||
- | {{wikipedia|Vathy, Samos|Vathy| | + | {{wikipedia|Vathy, Samos|Vathy|notail}} |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + |
Latest revision as of 09:15, 21 February 2016
A link to a Wikipedia page.
{{wikipedia|wikipedia page name|link text|suppress " at the Wikipedia"}}</nowiki>
- Parameters
- 1 - wikipedia page name
- 2 - text of the link
- 3 - notail - suppress " at the Wikipedia" at the end
all parameters are optional.
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|notail}}
will produce: