Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:VivaRomania/Sandbox: Difference between revisions

From TF2 Classified Wiki
VivaRomania (talk | contribs)
m New translation link template idea
VivaRomania (talk | contribs)
m Making the translation link idea less stupid. I forgot that the 2nd param would be absolutely required to provide a translated string, and made the idiot choice to make it optional.
Line 5: Line 5:
: <nowiki>[[Weapons/fr|Weapons]]</nowiki>
: <nowiki>[[Weapons/fr|Weapons]]</nowiki>
'''I imagine that can get tiring after a while. My proposal is as follows. This code has been tested and is perfectly functional:'''
'''I imagine that can get tiring after a while. My proposal is as follows. This code has been tested and is perfectly functional:'''
:<nowiki>[[{{{1}}}/{{PAGELANGUAGE}}|{{ #if: {{{2|}}} | {{{2}}} | {{{1}}} }}]]</nowiki>
:<nowiki>[[{{{1}}}/{{PAGELANGUAGE}}|{{{2}}}]]</nowiki>
'''To keep the template name short, [[Template:t]] could be used. I initially wanted to use [[Template:tl]] for this, but theres already a stock template under that name. Usage would be:'''
'''To keep the template name short, [[Template:t]] could be used. I initially wanted to use [[Template:tl]] for this, but theres already a stock template under that name. Usage would be:'''
:<nowiki>{{t|Weapons}}</nowiki>
:<nowiki>{{t|Weapons|Оружие}}</nowiki>
'''Or to specify a custom word or phrase for the link:'''
:<nowiki>{{t|Weapons|weaponry}}</nowiki>


== Possible [[Template:Nav classes]]? ==
== Possible [[Template:Nav classes]]? ==