Template:Sandbox/Aurelain/LinkIcon: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
AND T_en.type = '{{{type}}}' AND T_en.language = 'en' | AND T_en.type = '{{{type}}}' AND T_en.language = 'en' | ||
AND T_disp.type = '{{{type}}}' AND T_disp.language = '{{{lang|en}}}' | AND T_disp.type = '{{{type}}}' AND T_disp.language = '{{{lang|en}}}' | ||
|fields = T_en.name = link, T_disp.name = text, T_disp.language = lang, CONCAT('{{{prefix|}}}', T_en.target_id,'{{{suffix|.png}}}') = filename, CONCAT('{{{size}}}') = size | |fields = T_en.name = link, T_disp.name = text, T_disp.language = lang, CONCAT('{{{prefix|}}}', T_en.target_id,'{{{suffix|.png}}}') = filename, {{#if:{{{size|}}} | CONCAT('{{{size}}}') = size }} | ||
|format = template | |format = template | ||
|template= Sandbox/Aurelain/Link/render | |template= Sandbox/Aurelain/Link/render | ||
Revision as of 10:09, 20 June 2026
This template is meant to handle the linking of articles in a way that is language-agnostic, meaning that it can be used in language-aware infoboxes and other contexts which need to be able to handle multiple languages. This template only works with concepts which have their translation managed by Cargo.
{{LinkIcon|type=faction|id=human|suffix=_icon.png}}
{{LinkIcon|type=faction|id=human|suffix=_icon.png|lang=pl}}
{{LinkIcon|type=faction|id=human|suffix=_icon.png|size=64px}}


