Check out my first novel, midnight's simulacra!
Template:Translatable: Difference between revisions
MediaWiki>Shirayuki m (simplify) |
m (1 revision imported) |
||
(No difference)
|
Latest revision as of 03:18, 27 November 2024
<languages /> {{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}}|en |{{#ifeq:{{#titleparts:Template:Translatable||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}| |Template:Translatable |{{#invoke:String|sub|Template:Translatable
|1 |{{#expr:{{#invoke:String|len|Template:Translatable}}-{{#invoke:String|len|{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}}|en
|{{#ifeq:{{#titleparts:Template:Translatable||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}}}-1}}
}}
}} {{#ifeq: Translatable | sandbox
|
Template:Template sandbox notice
}}Template:Template otherTemplate:Documentation/start box2 {{#switch: {{#if:Template:Lua
<translate>
Examples
</translate>
{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}}|en |{{#ifeq:{{#titleparts:Template:Translatable||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}| |Template:Translatable |{{#invoke:String|sub|Template:Translatable
|1 |{{#expr:{{#invoke:String|len|Template:Translatable}}-{{#invoke:String|len|{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}}|en
|{{#ifeq:{{#titleparts:Template:Translatable||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}}}-1}}
}}
}}
{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}}|en |{{#ifeq:{{#titleparts:<translate> Page name</translate>||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}| |<translate> Page name</translate> |{{#invoke:String|sub|<translate> Page name</translate>
|1 |{{#expr:{{#invoke:String|len|<translate> Page name</translate>}}-{{#invoke:String|len|{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}}|en
|{{#ifeq:{{#titleparts:<translate> Page name</translate>||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}}}-1}}
}}
}}
{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}}|en |{{#ifeq:{{#titleparts:<translate> Page name</translate>/en||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}| |<translate> Page name</translate>/en |{{#invoke:String|sub|<translate> Page name</translate>/en
|1 |{{#expr:{{#invoke:String|len|<translate> Page name</translate>/en}}-{{#invoke:String|len|{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}}|en
|{{#ifeq:{{#titleparts:<translate> Page name</translate>/en||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}}}-1}}
}}
}}|1|0}}{{#if:|1|0}}{{#ifexist:|1|0}}{{#ifexist:Template:Documentation/docspace:Template:Documentation/template page/doc|1|0}} | 1000 | 1001 | 1010 | 1011 | 1100 | 1101 | 1110 | 1111 = Template:Lua
<translate>
Examples
</translate>
{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}}|en |{{#ifeq:{{#titleparts:Template:Translatable||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}| |Template:Translatable |{{#invoke:String|sub|Template:Translatable
|1 |{{#expr:{{#invoke:String|len|Template:Translatable}}-{{#invoke:String|len|{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}}|en
|{{#ifeq:{{#titleparts:Template:Translatable||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}
|{{#invoke:Template translation|getLanguageSubpage|Template:Translatable}} }}}}-1}}
}}
}}
{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}}|en |{{#ifeq:{{#titleparts:<translate> Page name</translate>||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}| |<translate> Page name</translate> |{{#invoke:String|sub|<translate> Page name</translate>
|1 |{{#expr:{{#invoke:String|len|<translate> Page name</translate>}}-{{#invoke:String|len|{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}}|en
|{{#ifeq:{{#titleparts:<translate> Page name</translate>||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>}} }}}}-1}}
}}
}}
{{#ifeq:{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}}|en |{{#ifeq:{{#titleparts:<translate> Page name</translate>/en||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}| |<translate> Page name</translate>/en |{{#invoke:String|sub|<translate> Page name</translate>/en
|1 |{{#expr:{{#invoke:String|len|<translate> Page name</translate>/en}}-{{#invoke:String|len|{{#ifeq:{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}}|en
|{{#ifeq:{{#titleparts:<translate> Page name</translate>/en||-1}}|en
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}
|{{#invoke:Template translation|getLanguageSubpage|<translate> Page name</translate>/en}} }}}}-1}}
}}
}} | 0110 | 0111 = {{ {{{1}}} }} | 0001 | 0011 = {{ Template:Documentation/docspace:Template:Documentation/template page/doc }} | 0000 | 0100 | 0010 | 0101 = }} Template:Documentation/end box2
[[Category:Internationalization templates{{#translation:}}]]