Difference between revisions of "Template:Vh"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
[[Viewerhelp:{{{1}}}{{#var:lang}}|{{{2|{{{1}}}}}}]]<noinclude>
{{#if:{{{2|}}}
Convenience template to link to Viewer help articles.  Parameters:
|[[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}}


Note: Unlike [[Template:win]] and [[Template:winlink]] this does NOT capitalize text.
== 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 15: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:

Contents

{{vh|Contents|TOC}}

Yields:

TOC

Localized page

Template:VhTest

and

Template:VhTest