Difference between revisions of "Template:Vh"
Jump to navigation
Jump to search
Rand Linden (talk | contribs) m (1 revision: Viewer Help Templates) |
Rand Linden (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Viewerhelp:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude> | <includeonly>{{#if:{{{2|}}} | ||
|[[Viewerhelp:{{{1}}}{{#var:lang}}|{{{2|{{{1}}}}}}]] | |||
|[[Viewerhelp:{{{1}}}|{{{1}}}]]}}</includeonly><noinclude> | |||
Creates a link to Viewer help articles. Parameters: | |||
* 1 = Name of help article WITHOUT Viewerhelp: namespace | * 1 = Name of help article WITHOUT Viewerhelp: namespace | ||
* 2 (optional) = Text to display, if not name of article. | * 2 (optional) = Text to display, if not name of article. | ||
IMPORTANT: If you provide only one parameter, it must be the actual name of the article you want to link to (in the target language). If you provide two parameters, then this template will expect the #lang variable to be set (in a localization template) and will use it to qualify the destination page with the corresponding locale code. | |||
== Use in English page == | |||
<nowiki>{{vh|Contents}}</nowiki> | <nowiki>{{vh|Contents}}</nowiki> | ||
Line 18: | Line 22: | ||
{{vh|Contents|TOC}} | {{vh|Contents|TOC}} | ||
== Use in a localized page == | |||
{{Translated Help Article|fr|Test}} | |||
<nowiki>{{VhTest|À propos du terrain - Média}}</nowiki> | |||
Yields: | |||
{{VhTest|À propos du terrain - Média}} | |||
and | |||
<nowiki>{{VhTest|About Land - Media|À propos du terrain - Média}}</nowiki> | |||
Yields: | |||
{{VhTest|About Land - Media|À propos du terrain - Média}} | |||
[[Category:Viewer Help Templates]]</noinclude> | [[Category:Viewer Help Templates]]</noinclude> |
Latest revision as of 14:37, 29 September 2011
Creates a link to Viewer help articles. Parameters:
- 1 = Name of help article WITHOUT Viewerhelp: namespace
- 2 (optional) = Text to display, if not name of article.
IMPORTANT: If you provide only one parameter, it must be the actual name of the article you want to link to (in the target language). If you provide two parameters, then this template will expect the #lang variable to be set (in a localization template) and will use it to qualify the destination page with the corresponding locale code.
Use in English page
{{vh|Contents}}
Yields:
{{vh|Contents|TOC}}
Yields:
Use in a localized page
{{VhTest|À propos du terrain - Média}}
Yields:
and
{{VhTest|About Land - Media|À propos du terrain - Média}}
Yields: