Template:ForEachLanguage: Difference between revisions
AndrewSayers (talk | contribs) Remove redundant } |
AndrewSayers (talk | contribs) No edit summary |
||
Line 9: | Line 9: | ||
"required": true, | "required": true, | ||
"description": "Template to call", | "description": "Template to call", | ||
"example": "ForEachTranslation/ | "example": "ForEachTranslation/Element" | ||
}, | }, | ||
"2": { | "2": { |
Revision as of 13:26, 8 August 2025
Call a template for each language supported by the wiki
Parameter | Description | Type | Status | |
---|---|---|---|---|
Template | 1 | Template to call
| Template | required |
2 | 2 | Passed through to template | Unknown | optional |
3 | 3 | Passed through to template | Unknown | optional |
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 |
9 | 9 | Passed through to template | Unknown | optional |
<Template> will be called once for each language supported by the wiki, with the language code as the first parameter, and up to 8 further positional parameters.
To add a new language to the wiki, add a block like this to the template (make sure the list remains alphabetically sorted):
{{{{{1}}}|<language-code>|{{{2|}}}|{{{3|}}}|{{{4|}}}|{{{5|}}}|{{{6|}}}|{{{7|}}}|{{{8|}}}|{{{9|}}}}}
If you update this page, please update all other pages in Category:LanguageMachinery.