User:VivaRomania/Sandbox: Difference between revisions

From TF2 Classified Wiki
Jump to navigation Jump to search
VivaRomania (talk | contribs)
m New translation link template idea
VivaRomania (talk | contribs)
m Test a complete failure, turning it into a template didn't stop Random from breaking on the /fa main page.
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Welcome to my Sandbox where I work on random stuff. If you think any of these are good enough to use, feel free to take the code and turn them into an actual templates and put them into use.
Even though these localization files have a template warning not to delete them despite them showing up in [[Special:UnusedFiles]], I'm going to link to them here so they don't show up there anymore.
 
* [[File:tf2classic english.txt]]
== Translation link template ==
* [[File:tf2classic bulgarian.txt]]
'''Translators get to deal with a slight pain in the ass when creating links to other articles, as they have to give every link a custom name and add in the language code to the link. As an example:'''
* [[File:tf2classic italian.txt]]
: <nowiki>[[Weapons/fr|Weapons]]</nowiki>
* [[File:tf2classic polish.txt]]
'''I imagine that can get tiring after a while. My proposal is as follows. This code has been tested and is perfectly functional:'''
* [[File:tf2classic spanish.txt]]
:<nowiki>[[{{{1}}}/{{PAGELANGUAGE}}|{{ #if: {{{2|}}} | {{{2}}} | {{{1}}} }}]]</nowiki>
* [[File:tf2classic turkish.txt]]
'''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:'''
* [[File:tf2classic romanian.txt]]
:<nowiki>{{t|Weapons}}</nowiki>
* [[File:tf2classic french.txt]]
'''Or to specify a custom word or phrase for the link:'''
* [[File:tf2classic brazilian.txt]]
:<nowiki>{{t|Weapons|weaponry}}</nowiki>
* [[File:tf2classic finnish.txt]]
 
* [[File:tf2classic german.txt]]
== Possible [[Template:Nav classes]]? ==
* [[File:tf2classic russian.txt]]
{| class="mw-collapsible navbox" width=100% cellpadding=1 align="center" style="text-align:center; font-size:90%; background: #E5E0DC; border: 1px solid #583A31;"
* [[File:tf2classic hungarian.txt]]
! class="header" style="font-size:110%; background: #8B6D64; padding: 0.2em 0.4em;" height=25| <div style="float:left;vertical-align:middle;">{{navbar|Nav gamemodes|plain=1}}</div>[[:Category:Classes|Classes]]
* [[File:tf2classic schinese.txt]]
|-
! <div class="mp-classContainer">
<div class="mp-class">[[File:{{Main Page Class Portrait|Scout}}|link=Scout]]<br><b>[[Scout]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Soldier}}|link=Soldier]]<br><b>[[Soldier]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Pyro}}|link=Pyro]]<br><b>[[Pyro]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Demoman}}|link=Demoman]]<br><b>[[Demoman]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Heavy}}|link=Heavy]]<br><b>[[Heavy]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Engineer}}|link=Engineer]]<br><b>[[Engineer]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Medic}}|link=Medic]]<br><b>[[Medic]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Sniper}}|link=Sniper]]<br><b>[[Sniper]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Spy}}|link=Spy]]<br><b>[[Spy]]</b></div>
<div class="mp-class">[[File:{{Main Page Class Portrait|Civilian}}|link=Civilian]]<br><b>[[Civilian]]</b></div>
<div class="mp-class" style="border-radius:8px;background-color:hsla(0, 0%, 10%, 0.2);">[[File:{{Main Page Class Portrait|Mercenary}}|link=Mercenary]]<br><b><i>[[Mercenary]]</i></b></div>
</div>
|}

Latest revision as of 03:59, 19 June 2025