Template:Sandbox/Aurelain/LinkIcon: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{
<includeonly><!--
-->{{
#cargo_query:
#cargo_query:
tables =
tables =
Line 35: Line 36:
===Usage===
===Usage===


<pre><nowiki>{{LinkIcon|type=faction|id=human|suffix=_icon.png}}</nowiki></pre>
{{Color|yellow|Input:}} <code><nowiki>{{LinkIcon|type=faction|id=human|suffix=_icon.png}}</nowiki></code>
{{LinkIcon|type=faction|id=human|suffix=_icon.png}}
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon|type=faction|id=human|suffix=_icon.png}}
 
----
<pre><nowiki>{{LinkIcon|type=faction|id=human|suffix=_icon.png|lang=pl}}</nowiki></pre>
{{Color|yellow|Input:}} <code><nowiki>{{LinkIcon|type=faction|id=human|suffix=_icon.png|lang=pl}}</nowiki></code>
{{LinkIcon|type=faction|id=human|suffix=_icon.png|lang=pl}}
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon|type=faction|id=human|suffix=_icon.png|lang=pl}}
 
----
<pre><nowiki>{{LinkIcon|type=faction|id=human|suffix=_icon.png|size=64px}}</nowiki></pre>
{{Color|yellow|Input:}} <code><nowiki>{{LinkIcon|type=faction|id=human|suffix=_icon.png|size=64px}}</nowiki></code>
{{Sandbox/Aurelain/LinkIcon|type=faction|id=human|suffix=_icon.png|size=64px}}
{{Color|lime|Output:}} {{Sandbox/Aurelain/LinkIcon|type=faction|id=human|suffix=_icon.png|size=64px}}


</noinclude>
</noinclude>

Revision as of 21:14, 25 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.

Usage

Input: {{LinkIcon|type=faction|id=human|suffix=_icon.png}} Output: Temple


Input: {{LinkIcon|type=faction|id=human|suffix=_icon.png|lang=pl}} Output: Świątynia


Input: {{LinkIcon|type=faction|id=human|suffix=_icon.png|size=64px}} Output: Temple