Template:Link/render: Difference between revisions

From Heroes of Might and Magic: Olden Era Official Wiki
m 76561198026315966 moved page Template:Link/renderIcon to Template:Link/render without leaving a redirect
No edit summary
Line 3: Line 3:
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.


<pre><nowiki>{{Link/renderIcon|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>


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




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


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




<pre><nowiki>{{Link/renderIcon|article=Temple|lang=en|text=Temple}}</nowiki></pre>
<pre><nowiki>{{Link/render|article=Temple|lang=en|text=Temple}}</nowiki></pre>


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




<pre><nowiki>{{Link/renderIcon|article=Temple|lang=pl|text=Świątynia}}</nowiki></pre>
<pre><nowiki>{{Link/render|article=Temple|lang=pl|text=Świątynia}}</nowiki></pre>


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




</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>
</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>

Revision as of 01:55, 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.

{{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