Difference between revisions of "Template:Navbox Translations"

From Wynncraft Wiki
Jump to: navigation, search
(changed regex to match until the final slash to support quest subpages)
(fixing whitespace trailing at the end of quest pages)
 
Line 1: Line 1:
<includeonly>{{#vardefine:name|{{#titleparts:{{FULLPAGENAME}}|{{{1|1}}}}}}}
+
<includeonly>{{#vardefine:name|{{#titleparts:{{FULLPAGENAME}}|{{{1|1}}}}}}}{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||[[en:{{#var:name}}]]}}{{ #dpl: redirects = include
{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||[[en:{{#var:name}}]]}}
 
{{ #dpl: redirects = include
 
 
| namespace = {{NAMESPACE}}
 
| namespace = {{NAMESPACE}}
 
| titlematch = {{#var:name}}/%
 
| titlematch = {{#var:name}}/%
Line 7: Line 5:
 
| replaceintitle = /.*\//,
 
| replaceintitle = /.*\//,
 
| format = ,\n[[%TITLE%:{{#var:name}}]],,
 
| format = ,\n[[%TITLE%:{{#var:name}}]],,
 
}}{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}||[[Category:Translation|{{SUBPAGENAME}}]]}}</includeonly><noinclude>{{Navbox Translations/doc}}[[Category:Navigation templates]][[Category:Templates]]</noinclude>
}}
 
{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}||[[Category:Translation|{{SUBPAGENAME}}]]}}
 
</includeonly><noinclude>{{Navbox Translations/doc}}[[Category:Navigation templates]][[Category:Templates]]</noinclude>
 

Latest revision as of 21:20, 24 February 2021

Use this template in quest pages if translations have been created at subpages with the according language identifier as suffix. It will automatically display links to all available translations in the sidebar. Preferred usage, should be at the end of the page:

Translations

{{Navbox Translations}}

Suffix

Master list:

  • Czech: /cs
  • German: /de
  • English:
  • Spanish: /es
  • Finnish: /fi
  • French: /fr
  • Hebrew: /he
  • Hungarian: /hu
  • Italian: /it
  • Japanese: /ja
  • Korean: /kr
  • Dutch: /nl
  • Norwegian: /no
  • Brazilian Portuguese: /pt-br
  • Russian: /ru
  • Swedish: /sv
  • Thai: /th
  • Ukrainian: /uk
  • Vietnamese: /vi
  • Chinese: /zh
  • Chinese (Taiwan): /zh-tw
  • Cantonese: /zh-yue