Template:Translated tag: Difference between revisions
Template page
More actions
mNo edit summary |
switch {{autotranslate}} to a module call |
||
| (140 intermediate revisions by 69 users not shown) | |||
| Line 1: | Line 1: | ||
< | {{#ifeq:{{NAMESPACE}}|{{ns:4}}||<!-- ignore commons namespace for demonstration pages --> | ||
{{#switch:{{FULLPAGENAME}} | |||
|{{{ns|{{{ns1|{{ns:10}}}}}}}}:{{ucfirst:{{{page|{{{page1}}}}}}}}{{{sub|/{{SUBPAGENAME}}}}} | |||
|{{{ns2|{{ns:10}}}}}:{{ucfirst:{{{page2}}}}}{{{sub|/{{SUBPAGENAME}}}}} | |||
|{{{ns3|{{ns:10}}}}}:{{ucfirst:{{{page3}}}}}{{{sub|/{{SUBPAGENAME}}}}} | |||
|{{{ns4|{{ns:10}}}}}:{{ucfirst:{{{page4}}}}}{{{sub|/{{SUBPAGENAME}}}}} = <!-- for any exceptions --> | |||
|#default = | |||
{{#switch:localisation|{{{1}}}|{{{2}}}=<!-- it may be used directly so the message doesn't apply -->|#default = | |||
< | {{#invoke:Autotranslate|autotranslate | ||
|base=Template:Translated tag/i18n | |||
{{ #switch: {{{ | |lang={{{lang|}}} | ||
| | |template={{{template|{{#ifexist:{{BASEPAGENAME}}|{{BASEPAGENAME}}|{{#titleparts:{{PAGENAME}}|1}}}}}}} | ||
| | }} | ||
| | }}<!-- | ||
auto-categorizer | |||
-->{{#ifeq:{{FULLPAGENAME}}|{{ns:10}}:{{BASEPAGENAME}}/{{SUBPAGENAME}} | |||
}} | | {{DEFAULTSORT:{{PAGENAME}}}}<!-- | ||
-->{{{localcat|[[Category:{{#ifexist:Template:Translated tag/local category-{{SUBPAGENAME}} | |||
| {{translated tag/local category-{{SUBPAGENAME}}|{{{1}}}}} | |||
| Commons templates-{{SUBPAGENAME}} }}]]}}}<!-- | |||
-->[[Category:Translated {{#switch:{{lc:{{{1}}}}} | |||
| cleanup = media cleanup templates | |||
| license = license tags | |||
| marker = marker templates | |||
| problem = problem tags | |||
| restriction = restriction tags | |||
| header = header templates | |||
| infobox = infobox templates | |||
| navigational = navigational templates | |||
| protection = protection templates | |||
| source = source templates | |||
| documentation = documentation templates | |||
| user = user templates | |||
| localisation = templates for localisation | |||
| templates needing categories | |||
}}]] | |||
| {{#ifeq:{{NAMESPACE}}|{{ns:6}}|[[Category:Images using translated tags]]}}<!-- check for misuse --> | |||
}}<!-- | |||
end auto-categorizer | |||
-->}} | |||
}}<noinclude>{{documentation}}</noinclude> | |||