Difference between revisions of "Template:Vh"

From Second Life Wiki
Jump to navigation Jump to search
m (Protected "Template:Vh": Viewer 2 help ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Viewerhelp:{{{1}}}|{{{2|{{{1}}}}}}]]<noinclude>
<includeonly>{{#if:{{{2|}}}
Convenience template to link to Viewer help articles.  Parameters:
|[[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.


Examples:
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}}


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

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