Template:Icon link: Difference between revisions

Template page
mNo edit summary
m (add span element to prevent wrapping)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[File:{{{1}}}.png|{{{2|24px}}}|link={{{1}}}|frameless|text-bottom]][[{{{1}}}]]{{Clear}}</includeonly><noinclude>  
<includeonly><span style="width:100%;white-space: nowrap;">[[File:{{{1}}}.png|{{{2|24px}}}|link={{{1}}}|frameless|]][[{{{1}}}]]</span></includeonly><noinclude>
== How to use ==
== How to use ==
Use this template if you want to link to (for example) an item page, while adding an image next to the link.
Use this template if you want to link to (for example) an item page, while adding an image next to the link.
Line 8: Line 8:
<nowiki> {{Icon_link|Hardened Metals}} </nowiki>
<nowiki> {{Icon_link|Hardened Metals}} </nowiki>
{{Icon_link|Hardened Metals}}  
{{Icon_link|Hardened Metals}}  
==Example with pixels ==
==Example with pixels ==
<nowiki> {{Icon_link|Hardened Metals|40px}} </nowiki>
<nowiki> {{Icon_link|Hardened Metals|40px}} </nowiki>
{{Icon_link|Hardened Metals|40px}}
{{Icon_link|Hardened Metals|40px}}  
 
 
{{Icon_link|Hardened Metals}} {{Icon_link|Hardened Metals}}
 
</noinclude>
</noinclude>

Latest revision as of 14:21, 16 March 2023

How to use

Use this template if you want to link to (for example) an item page, while adding an image next to the link.

{{Icon_link | item | width in px (default 24px)}}

Example

{{Icon_link|Hardened Metals}} Hardened Metals.pngHardened Metals

Example with pixels

{{Icon_link|Hardened Metals|40px}} Hardened Metals.pngHardened Metals

Cookies help us deliver our services. By using our services, you agree to our use of cookies.