Template:Link/render: Difference between revisions
From Heroes of Might and Magic: Olden Era Official Wiki
No edit summary |
removed the space between the icon and the name |
||
| Line 36: | Line 36: | ||
</noinclude><includeonly>{{#if:{{{filename|}}}|<span style="white-space: nowrap;">[[File:{{{filename}}}{{!}}{{{size|x32px}}}{{!}}link={{{link|}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}]] | </noinclude><includeonly>{{#if:{{{filename|}}}|<span style="white-space: nowrap;">[[File:{{{filename}}}{{!}}{{{size|x32px}}}{{!}}link={{{link|}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}]]}}{{#if:{{{link|}}}|[[{{{link}}}{{#ifeq:{{{lang|en}}}|en||/{{{lang}}}}}|{{#if:{{{color|}}}|<span style="color:{{{color|}}}">{{{text}}}</span>|{{{text}}}}}]]|{{#if:{{{color|}}}|<span style="color:{{{color|}}}">{{{text}}}</span>|{{{text}}}}}}}{{#if:{{{filename|}}}|</span>}}</includeonly> | ||
Revision as of 18:57, 21 June 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=en|text=Temple|size=64px|color=lime}}
{{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


