Template:Link/render: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>


This template is used by [[Template:Link]] as the base for rendering a link with an icon in front of it.  If '''filename''' is not provided, no icon will be rendered.
This template is used by [[Template:Link]] as the base for rendering a link with an icon in front of it.  If '''filename''' is not provided, no icon will be rendered.  If '''article''' is not provided, the term will not be linked.


<pre><nowiki>{{Link/render|filename=human_icon.png|article=Temple|lang=en|text=Temple}}</nowiki></pre>
<pre><nowiki>{{Link/render|filename=human_icon.png|article=Temple|lang=en|text=Temple}}</nowiki></pre>
Line 23: Line 23:




</noinclude><includeonly><span style="white-space: nowrap;">{{#if:{{{filename|}}}|[[File:{{{filename}}}{{!}}x30px{{!}}link={{{article}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}]]}} [[{{{article}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}|{{{text}}}]]</span></includeonly>
<pre><nowiki>{{Link/render|lang=en|text=Temple}}</nowiki></pre>
 
{{Link/render|lang=en|text=Temple}}
 
 
<pre><nowiki>{{Link/render|lang=pl|text=Świątynia}}</nowiki></pre>
 
{{Link/render|lang=pl|text=Świątynia}}
 
 
</noinclude><includeonly><span style="white-space: nowrap;">{{#if:{{{filename|}}}|[[File:{{{filename}}}{{!}}x30px{{!}}link={{{article|}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}]]}} {{#if:{{{article|}}}|[[{{{article}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}|{{{text}}}]]|{{{text}}}}}</span></includeonly>

Revision as of 04:16, 16 May 2026


This template is used by Template:Link as the base for rendering a link with an icon in front of it. If filename is not provided, no icon will be rendered. If article is not provided, the term will not be linked.

{{Link/render|filename=human_icon.png|article=Temple|lang=en|text=Temple}}

Temple


{{Link/render|filename=human_icon.png|article=Temple|lang=pl|text=Świątynia}}

Świątynia


{{Link/render|article=Temple|lang=en|text=Temple}}

Temple


{{Link/render|article=Temple|lang=pl|text=Świątynia}}

Świątynia


{{Link/render|lang=en|text=Temple}}

Temple


{{Link/render|lang=pl|text=Świątynia}}

Świątynia