Difference between revisions of "Template:Vh"

From Second Life Wiki
Jump to navigation Jump to search
 
Line 8: Line 8:
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.
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:
== Use in English page ==


  <nowiki>{{vh|Contents}}</nowiki>
  <nowiki>{{vh|Contents}}</nowiki>
Line 22: Line 22:
{{vh|Contents|TOC}}
{{vh|Contents|TOC}}


== Localized page ==
== Use in a localized page ==


{{Translated Help Article|fr|Test}}
{{Translated Help Article|fr|Test}}

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:

Contents

{{vh|Contents|TOC}}

Yields:

TOC

Use in a localized page

{{VhTest|À propos du terrain - Média}}

Yields:

Template:VhTest

and

{{VhTest|About Land - Media|À propos du terrain - Média}}

Yields:

Template:VhTest