Template:Translation: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
Created page with "<includeonly><!-- -->{{#cargo_query: tables = Translation = T, Translation = E | join on = T.target_id = E.target_id | where = T.name = {{{1}}} AND T.language = {{{2|en}}} | fields = T.name | limit = 1 | more results text = }}<!-- ################################################################################ --></includeonly><noinclude> Retrieves the {{b|name}} value from the {{b|Translation}} Cargo table for a target id, in the desired lan..." |
No edit summary |
||
| Line 2: | Line 2: | ||
-->{{#cargo_query: | -->{{#cargo_query: | ||
tables = | tables = | ||
Translation = T | Translation = T | ||
| where = | | where = | ||
T.name = {{{1}}} | T.name = "{{{1}}}" | ||
AND T.language = {{{2|en}}} | AND T.language = "{{{2|en}}}" | ||
| fields = | | fields = | ||
T.name | T.name | ||
Revision as of 14:24, 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: No results
2. Japanese
Input: {{Translation | nature | ja}}
Output: No results


