Difference between revisions of "Template:Vdc"

From Team Fortress Wiki
Jump to: navigation, search
m (Moved EN to the top of translations; fixed (hopefully) links to translated versions of VDC's Main Page and added {{lang icon|en}} to languages which the Main Pag has not been trasnlated to.)
(Added automatic lang icons if uselang is not used, added the ability to remove the links, fixed the main page links not linking properly in other languages.)
Line 1: Line 1:
<includeonly>{{#if:{{{uselang|}}}|<span class="plainlinks">[{{FULLURL:vdc:{{FULLPAGENAMEE:{{{1|Main Page}}}}}|uselang={{{uselang}}} }} {{{2|{{{1|Main Page}}}}}}]</span>|[[vdc:{{FULLPAGENAMEE:{{{1|Main Page}}}}}|{{{2|{{{1|Main Page}}}}}}]]}}&nbsp;{{lang
+
<includeonly>{{#if:{{{uselang|}}}|<span class="plainlinks">[{{FULLURL:vdc:{{FULLPAGENAMEE:{{{1|Main Page}}}}}|uselang={{{uselang}}} }} {{{2|{{{1|Main Page}}}}}}]</span>|[[vdc:{{FULLPAGENAMEE:{{{1|Main Page}}}}}|{{{2|{{{1|Main Page}}}}}}]]{{if lang|non-en=&nbsp;{{lang icon}}}}}}&nbsp;{{lang
 
  | en = on the
 
  | en = on the
 
  | ar = على
 
  | ar = على
Line 21: Line 21:
 
  | zh-hans = ,源于
 
  | zh-hans = ,源于
 
  | zh-hant = 來自於
 
  | zh-hant = 來自於
  }} {{lang
+
  }} {{#ifeq:{{lc:{{{link|}}}}}|no|{{lang
  | en = [[vdc:Main Page|Valve Developer Community]]
+
  | en = Valve Developer Community
  | ar = [[vdc:Main Page|Valve Developer Community]] {{lang icon|en}}
+
| ar = Valve Developer Community
  | cs = [[vdc:Main Page|Valve Developer Community]] {{lang icon|en}}
+
| cs = Valve Developer Community
  | da = [[vdc:Main Page|Valve Developer Community]] {{lang icon|en}}
+
| da = Valve Developer Community
| de = [[vdc:Main Page?uselang=de|Valve Entwickler-Community]]
+
| de = Valve Entwickler-Community
  | es = [[vdc:Main Page?uselang=es|Comunidad de Desarrolladores de Valve]]
+
| es = Comunidad de Desarrolladores de Valve
  | fi = [[vdc:Main Page?uselang=fi|Valve Developer Community]]
+
| fi = Valve Developer Community
  | fr = [[vdc:Main Page?uselang=fr|Valve Developer Community]]
+
  | fr = Valve Developer Community
  | hu = [[vdc:Main Page|Valve Developer Community]] {{lang icon|en}}
+
| hu = Valve Developer Community
  | it = [[vdc:Main Page?uselang=it|Valve Developer Community]]
+
| it = Valve Developer Community
  | ko = [[vdc:Main Page?uselang=ko|Valve Developer Community]]
+
  | ko = Valve Developer Community
  | nl = [[vdc:Main Page?uselang=nl|Valve Developer Community]]
+
| nl = Valve Developer Community
  | no = [[vdc:Main Page|Valve Utviklerfellesskapet]] {{lang icon|en}}
+
| no = Valve Utviklerfellesskapet
  | pl = [[vdc:Main Page?uselang=pl|Społeczności programistów Valve]]
+
| pl = Społeczności programistów Valve
  | pt = [[vdc:Main Page|Valve Developer Community]] {{lang icon|en}}
+
| pt = Valve Developer Community
  | pt-br = [[vdc:Main Page?uselang=pt-br|comunidade de desenvolvedores da Valve]]
+
  | pt-br = comunidade de desenvolvedores da Valve
  | ro = [[vdc:Main Page|Valve Developer Community]] {{lang icon|en}}
+
| ro = Valve Developer Community
  | ru = [[vdc:Main Page?uselang=ru|Сообществе разработчиков Valve]]
+
| ru = Сообществе разработчиков Valve
  | sv = [[vdc:Main Page?uselang=sv|Valve Developer Community]]
+
| sv = Valve Developer Community
  | zh-hans = [[vdc:Main Page?uselang=zh|Valve 开发者社区]]
+
| zh-hans = Valve 开发者社区
  | zh-hant = [[vdc:Main Page?uselang=zh-tw|Valve 開發者社群]]}}</includeonly><noinclude>
+
| zh-hant = Valve 開發者社群
 +
}}|{{#if:{{{uselang|}}}|<span class="plainlinks">[{{FULLURL:vdc:{{FULLPAGENAMEE:Main Page}}|uselang={{{uselang|de}}}}} {{lang
 +
| en = Valve Developer Community
 +
| ar = Valve Developer Community
 +
| cs = Valve Developer Community
 +
| da = Valve Developer Community
 +
| de = Valve Entwickler-Community
 +
  | es = Comunidad de Desarrolladores de Valve
 +
  | fi = Valve Developer Community
 +
| fr = Valve Developer Community
 +
| hu = Valve Developer Community
 +
  | it = Valve Developer Community
 +
| ko = Valve Developer Community
 +
| nl = Valve Developer Community
 +
  | no = Valve Utviklerfellesskapet
 +
| pl = Społeczności programistów Valve
 +
| pt = Valve Developer Community
 +
| pt-br = comunidade de desenvolvedores da Valve
 +
  | ro = Valve Developer Community
 +
| ru = Сообществе разработчиков Valve
 +
| sv = Valve Developer Community
 +
  | zh-hans = Valve 开发者社区
 +
| zh-hant = Valve 開發者社群
 +
}}]</span>|<span class="plainlinks">[{{FULLURL:vdc:{{FULLPAGENAMEE:Main Page}}}} {{lang
 +
| en = Valve Developer Community
 +
| ar = Valve Developer Community
 +
| cs = Valve Developer Community
 +
| da = Valve Developer Community
 +
  | de = Valve Entwickler-Community
 +
| es = Comunidad de Desarrolladores de Valve
 +
| fi = Valve Developer Community
 +
| fr = Valve Developer Community
 +
  | hu = Valve Developer Community
 +
| it = Valve Developer Community
 +
| ko = Valve Developer Community
 +
  | nl = Valve Developer Community
 +
| no = Valve Utviklerfellesskapet
 +
| pl = Społeczności programistów Valve
 +
  | pt = Valve Developer Community
 +
  | pt-br = comunidade de desenvolvedores da Valve
 +
  | ro = Valve Developer Community
 +
  | ru = Сообществе разработчиков Valve
 +
  | sv = Valve Developer Community
 +
  | zh-hans = Valve 开发者社区
 +
  | zh-hant = Valve 開發者社群
 +
}}]</span> {{if lang|non-en={{lang icon}}}}}}}}</includeonly><noinclude>
 
{{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ko, nl, no, pl, pt, pt-br, ro, ru, sv, zh-hans, zh-hant}}
 
{{translation switching|en, ar, cs, da, de, es, fi, fr, hu, it, ko, nl, no, pl, pt, pt-br, ro, ru, sv, zh-hans, zh-hant}}
 
{{Doc begin}}
 
{{Doc begin}}
* {{tlx|vdc|TF2 Design Theory}} generates {{vdc|TF2 Design Theory}}
+
* {{tlx|vdc|Team Fortress 2 Design Theory}} generates {{vdc|Team Fortress 2 Design Theory}}
* {{tlx|vdc|TF2 Design Theory|obscure link name}} generates {{vdc|TF2 Design Theory|obscure link name}}
+
* {{tlx|vdc|Team Fortress 2 Design Theory|link=no}} generates {{vdc|Team Fortress 2 Design Theory|link=no}}
 +
* {{tlx|vdc|Team Fortress 2 Design Theory|obscure link name}} generates {{vdc|Team Fortress 2 Design Theory|obscure link name}}
 
* {{tlx|vdc|Your First Map|uselang{{=}}es}} generates {{vdc|Your First Map|uselang=es}}. Note that the link leads to the Spanish version of the page. However, this will not work for all pages; it will only work for those using the up to date system instead of the deprecated template [[vdc:Template:Lang|Template:Lang]].
 
* {{tlx|vdc|Your First Map|uselang{{=}}es}} generates {{vdc|Your First Map|uselang=es}}. Note that the link leads to the Spanish version of the page. However, this will not work for all pages; it will only work for those using the up to date system instead of the deprecated template [[vdc:Template:Lang|Template:Lang]].
  
 
[[Category:Link insertion templates|Vdc]]
 
[[Category:Link insertion templates|Vdc]]
 
</noinclude>
 
</noinclude>

Revision as of 15:57, 9 December 2024

Documentation for Vdc