Difference between revisions of "Template:IconImage"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 19: | Line 19: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>[[File:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}_Icon.png|link={{{3|}}}|36px|x36px|]]</onlyinclude> | <onlyinclude>{{#ifexist: File:{{#if: {{{2|}}}|{{{2|}}}|{{{1}}}}}_Icon.png||[[Category: Missing Icons}}}}[[File:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}_Icon.png|link={{{3|}}}|36px|x36px|]]</onlyinclude> |
Revision as of 20:50, 16 December 2019
IconImage[edit]
This template is used to show an icon image for all items, enhancements, etc. It handles making sure they are uniform in size.
Example Usage | |
{{IconImage||Arcanotechnician}} | {{#ifexist: File:Arcanotechnician_Icon.png||[[Category: Missing Icons}}}}File:Arcanotechnician Icon.png |
{{IconImage|Arcanotechnician_core_Arcanotechnician|Arcanotechnician}} | {{#ifexist: File:Arcanotechnician_Icon.png||[[Category: Missing Icons}}}}File:Arcanotechnician Icon.png |
{{IconImage|Arcanotechnician_core_Arcanotechnician|Arcanotechnician|Arcanotechnician (Enhancement)}} | {{#ifexist: File:Arcanotechnician_Icon.png||[[Category: Missing Icons}}}}File:Arcanotechnician Icon.png |
{{IconImage|Arcanotechnician_core_Arcanotechnician}} | {{#ifexist: File:Arcanotechnician_core_Arcanotechnician_Icon.png||[[Category: Missing Icons}}}}File:Arcanotechnician core Arcanotechnician Icon.png |
Usage[edit]
{{IconImage|(Generated name)|(User Defined Name)|(Link)}}
Parameter Documentation | |
Generated name | The name of the icon that was generated by the outer template, used if the user defined name is empty. |
User Defined Name | The name of the icon that was entered as part of the outer template |
Link | The page you want to link to for the icon. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{#ifexist: File:{{{1}}}_Icon.png||[[Category: Missing Icons}}}}[[File:{{{1}}}_Icon.png|link=|36px|x36px|]]