Template:Translation: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 37: | Line 37: | ||
{{Color|lime|Output:}} {{Translation|nature|ja}} | {{Color|lime|Output:}} {{Translation|nature|ja}} | ||
---- | |||
3. Missing id | |||
{{Color|yellow|Input:}} <code><nowiki>{{Translation|foo|en}}</nowiki></code> | |||
{{Color|lime|Output:}} {{Translation|foo|en}} | |||
</noinclude> | </noinclude> | ||
Revision as of 14:36, 14 July 2026
Retrieves the name value from the Translation Cargo table for a target id, in the desired language.
This is very similar to the Label template, but is more generic, allowing you to pull any id
from the Translation table, not just those prefixed with wiki_.
Usage
1. English
Input: {{Translation|nature|en}}
Output: Grove
2. Japanese
Input: {{Translation|nature|ja}}
Output: グローヴ
3. Missing id
Input: {{Translation|foo|en}}
Output: —


