Difference between revisions of "Template:Winlink test"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with '<span style="text-transform:uppercase">[[Viewerhelp:{{{1}}}|{{{2|{{{1}}}}}}]]</span><noinclude> Creates a link to an article, and displays text in ALL CAPITALS (per Viewer 2.0 c...')
 
m
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span style="text-transform:uppercase">[[Viewerhelp:{{{1}}}|{{{2|{{{1}}}}}}]]</span><noinclude>
{{#ifeq: {{#var:lang}} | {{#sub:{{{1}}}|-3}} | {{#vardefine:ext|}} | {{#vardefine:ext|{{#var:lang}}}} }}
{{#if:{{{2}}}|{{#vardefine:ext|}}|}}
<span style="text-transform:uppercase">[[Viewerhelp:{{{1}}}{{#var:ext}}|{{{2|{{{1}}}}}}]]</span>


Creates a link to an article, and displays text in ALL CAPITALS (per Viewer 2.0 convention).
Last 3 of param: {{#sub:{{{1}}}|-3}}


Parameters:
'''Lang code is {{#var:lang}}'''
* 1 = Title of article to link to without the "Viewerhelp:" namespace string, e.g. "About - Credits"
 
* 2 = Text to display; default is value of parameter #1
Ext code is {{#var:ext}}
[[Category:Viewer Help Templates]]
 
So article linked to is {{{1}}}{{#var:ext}}
 
 
 
 
<noinclude>
 
If the lang code is equal to the last three characters of the article title (e.g. "/de"), then define var "ext" to be lang. 
</noinclude>
</noinclude>

Latest revision as of 10:27, 7 October 2010


[[Viewerhelp:{{{1}}}|{{{1}}}]]

Last 3 of param: }}}

Lang code is

Ext code is

So article linked to is {{{1}}}




If the lang code is equal to the last three characters of the article title (e.g. "/de"), then define var "ext" to be lang.