Difference between revisions of "Template:Vh"
Jump to navigation
Jump to search
Rand Linden (talk | contribs) |
Rand Linden (talk | contribs) |
||
Line 1: | Line 1: | ||
[[Viewerhelp:{{{1}}}{{#var:lang}}|{{{2|{{{1}}}}}}]]<noinclude> | {{#if:{{{2|}}} | ||
|[[Viewerhelp:{{{1}}}{{#var:lang}}|{{{2|{{{1}}}}}}]] | |||
|[[Viewerhelp:{{{1}}}|{{{1}}}]]}}<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. | |||
Examples: | Examples: | ||
Line 18: | Line 22: | ||
{{vh|Contents|TOC}} | {{vh|Contents|TOC}} | ||
== Localized page == | |||
{{Translated Help Article|fr|Test}} | |||
{{VhTest|À propos du terrain - Média}} | |||
and | |||
{{VhTest|About Land - Media|À propos du terrain - Média}} | |||
[[Category:Viewer Help Templates]]</noinclude> | [[Category:Viewer Help Templates]]</noinclude> |
Revision as of 14:34, 29 September 2011
[[Viewerhelp:{{{1}}}|{{{1}}}]] 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.
Examples:
{{vh|Contents}}
Yields:
{{vh|Contents|TOC}}
Yields:
Localized page
and