Template:Translation: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 4: Line 4:
     Translation = T
     Translation = T
| where =
| where =
     T.target_id = "nature"
     T.target_id = "{{{1}}}"
     AND T.language = "en"
     AND T.language = "en"
| fields =
| fields =
Line 10: Line 10:
| limit =
| limit =
     1
     1
| default = foo
| default =
| more results text = moree
    -
| more results text =


}}<!--
}}<!--
Line 26: Line 27:
1. English
1. English


{{Color|yellow|Input:}} <code><nowiki>{{Translation | nature | en}}</nowiki></code>
{{Color|yellow|Input:}} <code><nowiki>{{Translation|nature|en}}</nowiki></code>


{{Color|lime|Output:}} {{Translation | nature | en}}
{{Color|lime|Output:}} {{Translation|nature|en}}


----
----

Revision as of 14:32, 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: -