Difference between revisions of "Template:IconImage"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(24 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{TemplateDocumentation | ||
|name = IconImage | |name = IconImage | ||
|description = This template is used to show an icon image for all items, enhancements, etc. It handles making sure they are uniform in size. | |description = This template is used to show an icon image for all items, enhancements, etc. It handles making sure they are uniform in size. | ||
|example1 = <nowiki>{{IconImage|Arcanotechnician}}</nowiki> | |category=Shared Templates | ||
|example1output = {{IconImage|Arcanotechnician}} | |example1 = <nowiki>{{IconImage|Enhancement Arcanotechnician}}</nowiki> | ||
|example2 = <nowiki>{{IconImage|Arcanotechnician | |example1output = {{IconImage|Enhancement Arcanotechnician}} | ||
|example2output = {{IconImage|Arcanotechnician | |example2 = <nowiki>{{IconImage|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician}}</nowiki> | ||
|example3 = <nowiki>{{IconImage|Arcanotechnician | |example2output = {{IconImage|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician}} | ||
|example3output = {{IconImage|Arcanotechnician | |example3 = <nowiki>{{IconImage|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician|Arcanotechnician (Enhancement)}}</nowiki> | ||
|example3output = {{IconImage|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician|Arcanotechnician (Enhancement)}} | |||
|example4 = <nowiki>{{IconImage|Arcanotechnician_core_Arcanotechnician}}</nowiki> | |||
|example4output = {{IconImage|Arcanotechnician_core_Arcanotechnician}} | |||
|parameter1name = Generated name | |parameter1name = Generated name | ||
|parameter1description = The name of the icon that was generated by the outer template, used if the user defined name is empty. | |parameter1description = The name of the icon that was generated by the outer template, used if the user defined name is empty. | ||
|parameter2name = User Defined Name | |parameter2name = User Defined Name | ||
|parameter2description = The name of the icon that was entered as part of the | |parameter2description = The name of the icon that was entered as part of the outer template | ||
|parameter3name = Link | |parameter3name = Link | ||
|parameter3description = The page you want to link to for the icon. | |parameter3description = The page you want to link to for the icon. | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<onlyinclude>[[File:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}_Icon.png|link={{{3|}}}|36px|x36px|]]</onlyinclude> | <onlyinclude>{{PageExists|File:{{#if: {{{2|}}}|{{{2|}}}|{{{1}}}}}_Icon.png||{{#ifeq: {{#sub:{{FULLPAGENAME}}|0|9}}|Template:||[[Category: Missing Icons]]}}}}[[File:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}_Icon.png|link={{{3|}}}|36px|x36px|]]</onlyinclude> |
Latest revision as of 22:35, 23 September 2022
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|Enhancement Arcanotechnician}} | |
{{IconImage|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician}} | |
{{IconImage|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician|Arcanotechnician (Enhancement)}} | |
{{IconImage|Arcanotechnician_core_Arcanotechnician}} | 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.
[[File:{{{1}}}_Icon.png|link=|36px|x36px|]]