Template:Link/render: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
refactoring article -> link |
||
| 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. If '''article''' is not provided, the term will not be linked. | 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| | <pre><nowiki>{{Link/render|filename=human_icon.png|link=Temple|lang=en|text=Temple}}</nowiki></pre> | ||
{{Link/render|filename=human_icon.png| | {{Link/render|filename=human_icon.png|link=Temple|lang=en|text=Temple}} | ||
<pre><nowiki>{{Link/render|filename=human_icon.png| | <pre><nowiki>{{Link/render|filename=human_icon.png|link=Temple|lang=pl|text=Świątynia}}</nowiki></pre> | ||
{{Link/render|filename=human_icon.png| | {{Link/render|filename=human_icon.png|link=Temple|lang=pl|text=Świątynia}} | ||
<pre><nowiki>{{Link/render| | <pre><nowiki>{{Link/render|link=Temple|lang=en|text=Temple}}</nowiki></pre> | ||
{{Link/render| | {{Link/render|link=Temple|lang=en|text=Temple}} | ||
<pre><nowiki>{{Link/render| | <pre><nowiki>{{Link/render|link=Temple|lang=pl|text=Świątynia}}</nowiki></pre> | ||
{{Link/render| | {{Link/render|link=Temple|lang=pl|text=Świątynia}} | ||
| Line 33: | Line 33: | ||
</noinclude><includeonly><span style="white-space: nowrap;">{{#if:{{{filename|}}}|[[File:{{{filename}}}{{!}}x30px{{!}}link={{{ | </noinclude><includeonly><span style="white-space: nowrap;">{{#if:{{{filename|}}}|[[File:{{{filename}}}{{!}}x30px{{!}}link={{{link|}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}]]}} {{#if:{{{link|}}}|[[{{{link}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}|{{{text}}}]]|{{{text}}}}}</span></includeonly> | ||
Revision as of 05:33, 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|link=Temple|lang=en|text=Temple}}
{{Link/render|filename=human_icon.png|link=Temple|lang=pl|text=Świątynia}}
{{Link/render|link=Temple|lang=en|text=Temple}}
{{Link/render|link=Temple|lang=pl|text=Świątynia}}
{{Link/render|lang=en|text=Temple}}
Temple
{{Link/render|lang=pl|text=Świątynia}}
Świątynia


