Vorlage:Pagename2en: Unterschied zwischen den Versionen

Aus Terraria Wiki
Wechseln zu: Navigation, Suche
(sync :: en revid:1038174::)
K ({{tr0}} → {{tr/lua}})
 
(2 dazwischenliegende Versionen desselben/derselben Benutzers/Benutzerin werden nicht angezeigt)
Zeile 1: Zeile 1:
 
{{tr/lua|{{{1|{{#titleparts:{{PAGENAME}}}}}}}|en}}
<includeonly><!--
 
 
NOTE: this template is relatively slow, so you should consider to cache its result for reuse.
 
 
-->{{#dplvar:set|tr:lang|{{{lang|{{lang}}}}}}}<!--
 
-->{{#vardefine:trpagename|{{{1|{{#titleparts:{{PAGENAME}}}}}}}}}<!--
 
 
-->{{#var:_pagename2en_cache:{{#dplvar:tr:lang}}:{{#var:trpagename}}|<!--
 
-->{{#vardefine:_output|}}<!--
 
-->{{#ifeq:{{#dplvar:tr:lang}}|en|<!--
 
-->{{#vardefine:_output|{{#var:trpagename}}}}<!-- en, no need to translate
 
-->|<!--
 
-->{{#if:{{langList|isOnWiki|{{#dplvar:tr:lang}}}}|<!--
 
-->{{#rmatch:{{#var:trpagename}}|\/{{#dplvar:tr:lang}}(${{!}}\/)|{{#vardefine:_output|{{#replace:{{#var:trpagename}}|/{{#dplvar:tr:lang}}|}}}}}}<!--
 
-->}}<!--
 
-->}}<!--
 
 
-->{{#vardefineecho:_pagename2en_cache:{{#dplvar:tr:lang}}:{{#var:trpagename}}|<!--
 
-->{{#var:_output|<!--
 
// loading glossary database, only do once per page.
 
-->{{#if:{{#dplvar:_revtr-{{#dplvar:tr:lang}}-loaded}}||<!--
 
-->{{#vardefine:_|{{pagename2en/db-{{#dplvar:tr:lang}}}}}}<!-- hide error for non-exist db.
 
-->{{#dplvar:set|_revtr-{{#dplvar:tr:lang}}-loaded|OK}}<!--
 
-->}}<!--
 
-->{{#or:{{#dplvar:_revtr-{{#dplvar:tr:lang}}:{{#var:trpagename}}}}|{{#var:trpagename}}}}<!-- varname example: _revtr-it:Fish
 
-->}}<!--
 
-->}}<!--
 
 
-->}}<!--
 
 
--></includeonly><noinclude>{{doc}}</noinclude>
 

Aktuelle Version vom 11. April 2021, 01:06 Uhr

Pagename2en