Difference between revisions of "Template:Winlink test"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
{{#ifeq: {{#var:lang}} | {{#sub:{{{1}}}|-3}} | {{#vardefine:ext|}} | {{#vardefine:ext|{{#var:lang}}}} }}
{{#ifeq: {{#var:lang}} | {{#sub:{{{1}}}|-3}} | {{#vardefine:ext|}} | {{#vardefine:ext|{{#var:lang}}}} }}
<span style="text-transform:uppercase">[[Viewerhelp:{{{1}}}{{#var:ext}}|{{{2|{{{1}}}}}}]]</span>
<span style="text-transform:uppercase">[[Viewerhelp:{{{1}}}{{#var:ext}}|{{{2|{{{1}}}}}}]]</span>
Last 3 of param: {{#sub:{{{1}}}|-3}}


'''Lang code is {{#var:lang}}'''
'''Lang code is {{#var:lang}}'''
Line 9: Line 11:
<noinclude>
<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
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>

Revision as of 09:20, 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.