« Modèle:Translatable » : différence entre les versions
m Changed protection level for "Template:Translatable": Fully protected via cascading protection, autoconfirmed protection is misleading ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
prepare for translation |
||
Ligne 1 : | Ligne 1 : | ||
{{#ifeq:{{pagelang|{{{1|{{FULLPAGENAME}}}}}}}| | <noinclude> | ||
<languages/> | |||
</noinclude>{{#ifeq:{{pagelang|{{{1|{{FULLPAGENAME}}}}}}}| | |||
|{{{1|{{FULLPAGENAME}}}}} | |{{{1|{{FULLPAGENAME}}}}} | ||
|{{#invoke:String|sub|{{{1|{{FULLPAGENAME}}}}} | |{{#invoke:String|sub|{{{1|{{FULLPAGENAME}}}}} | ||
Ligne 6 : | Ligne 8 : | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{ | {{Documentation|content= | ||
<translate> | |||
== Examples == | == Examples == | ||
</translate> | |||
* | * {{tlx|translatable}} | ||
{{translatable}} | {{translatable}} | ||
* | * {{tlx|translatable|2=<translate>Page name</translate>}} | ||
{{translatable|Page name}} | {{translatable|1=<translate>Page name</translate>}} | ||
* | * {{tlx|translatable|2=<translate>Page name</translate>/{{#ifeq:{{pagelang2}}|en|<!--then-->ja|<!--else-->{{pagelang2}} }} }} | ||
{{translatable|Page name/ja}} | {{translatable|1=<translate>Page name</translate>/{{#ifeq:{{pagelang2}}|en|ja|{{pagelang2}} }} }} | ||
}} | }} |
Version du 26 mai 2021 à 11:31
<languages/> {{#ifeq:{{#ifeq:|en |{{#ifeq:{{#titleparts:Modèle:Translatable||-1}}|en
| }}
| }}| |Modèle:Translatable |Modèle:Translatable
}}
<translate>
Examples
</translate>
{{#ifeq:{{#ifeq:|en |{{#ifeq:{{#titleparts:Modèle:Translatable||-1}}|en
| }}
| }}| |Modèle:Translatable |Modèle:Translatable
}}
{{#ifeq:{{#ifeq:|en |{{#ifeq:{{#titleparts:<translate>Page name</translate>||-1}}|en
| }}
| }}| |<translate>Page name</translate> |<translate>Page name</translate>
}}
{{#ifeq:{{#ifeq:|en |{{#ifeq:{{#titleparts:<translate>Page name</translate>/{{#ifeq:Modèle:Pagelang2|en|ja|Modèle:Pagelang2 }}||-1}}|en
| }}
| }}| |<translate>Page name</translate>/{{#ifeq:Modèle:Pagelang2|en|ja|Modèle:Pagelang2 }} |<translate>Page name</translate>/{{#ifeq:Modèle:Pagelang2|en|ja|Modèle:Pagelang2 }}
}}
{{#if:<translate>
Examples
</translate>
{{#ifeq:{{#ifeq:|en |{{#ifeq:{{#titleparts:Modèle:Translatable||-1}}|en
| }}
| }}| |Modèle:Translatable |Modèle:Translatable
}}
{{#ifeq:{{#ifeq:|en |{{#ifeq:{{#titleparts:<translate>Page name</translate>||-1}}|en
| }}
| }}| |<translate>Page name</translate> |<translate>Page name</translate>
}}
{{#ifeq:{{#ifeq:|en |{{#ifeq:{{#titleparts:<translate>Page name</translate>/{{#ifeq:Modèle:Pagelang2|en|ja|Modèle:Pagelang2 }}||-1}}|en
| }}
| }}| |<translate>Page name</translate>/{{#ifeq:Modèle:Pagelang2|en|ja|Modèle:Pagelang2 }} |<translate>Page name</translate>/{{#ifeq:Modèle:Pagelang2|en|ja|Modèle:Pagelang2 }}
}}| [[Category:Template documentation pages{{#translation:}}]] }}
[[Category:Internationalization templates{{#translation:}}]]