Template:ForEachTranslation: Difference between revisions
Appearance
AndrewSayers (talk | contribs) Created page with "<includeonly>{{ForEachLanguage|ForEachTranslation/Element|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}}}</includeonly><noinclude><templatedata> { "description": "Call a template for each translation of this page", "params": { "1": { "label": "Template", "type": "wiki-template-name", "required": true, "description": "Template to call", "example": "MyTemplate/Element"..." |
AndrewSayers (talk | contribs) No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{ForEachLanguage|ForEachTranslation/Element|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}}}</includeonly><noinclude><templatedata> | <includeonly>{{ForEachLanguage|ForEachTranslation/Element|{{{1}}}|{{{2}}}|{{UpstreamPageName|{{{3}}}}}|{{{4}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}}}</includeonly><noinclude><templatedata> | ||
{ | { | ||
"description": "Call a template for each translation of this page", | "description": "Call a template for each translation of this page", | ||
Line 46: | Line 46: | ||
"8": { | "8": { | ||
"label": "8", | "label": "8", | ||
"required": false, | "required": false, | ||
"description": "Passed through to template" | "description": "Passed through to template" | ||
Line 57: | Line 52: | ||
} | } | ||
</templatedata> | </templatedata> | ||
Calls [[{{FULLPAGENAME}}/Element]] once for each language. | |||
</noinclude> | </noinclude> |
Latest revision as of 15:28, 8 August 2025
Call a template for each translation of this page
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template | 1 | Template to call
| Template | required |
Namespace | 2 | Namespace of the associated page
| String | required |
Page | 3 | Page to get translations for
| Page name | required |
4 | 4 | Passed through to template | Unknown | optional |
5 | 5 | Passed through to template | Unknown | optional |
6 | 6 | Passed through to template | Unknown | optional |
7 | 7 | Passed through to template | Unknown | optional |
8 | 8 | Passed through to template | Unknown | optional |
Calls Template:ForEachTranslation/Element once for each language.