Difference between revisions of "Template:IconImage"

From DDO Compendium
m (Undo revision 11235 by Tealeaf (talk))
m
Line 16: Line 16:
|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.
|parameter4name=extension
|parameter4description=Extension, whether or not _icon.png is added at the end
|parameter4values=
* noext = No '''_icon.png''' (just '''.png''')
* custom = No Extension at all, custom file type is required
}}
}}
</noinclude>
</noinclude>
<onlyinclude>[[File:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}_Icon.png|link={{{3|}}}|36px|x36px|]]</onlyinclude>
<onlyinclude>[[File:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}{{#switch: {{#loc: {{{4|}}}}}
|custom=
|noext=.png
|#default=_Icon.png
}}|link={{{3|}}}|36px|x36px|]]</onlyinclude>

Revision as of 17:23, 5 July 2018

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}}File:Arcanotechnician Icon.png
{{IconImage|Arcanotechnician_core_Arcanotechnician|Arcanotechnician}}File:Arcanotechnician Icon.png
{{IconImage|Arcanotechnician_core_Arcanotechnician|Arcanotechnician|Arcanotechnician (Enhancement)}}File:Arcanotechnician Icon.png
{{IconImage|Arcanotechnician_core_Arcanotechnician}}File:Arcanotechnician core Arcanotechnician Icon.png

Usage[edit]

{{IconImage|(Generated name)|(User Defined Name)|(Link)|(extension)}}

Parameter Documentation
Generated nameThe name of the icon that was generated by the outer template, used if the user defined name is empty.
User Defined NameThe name of the icon that was entered as part of the out template
LinkThe page you want to link to for the icon.
extensionExtension, whether or not _icon.png is added at the end
Possible Values:
  • noext = No _icon.png (just .png)
  • custom = No Extension at all, custom file type is required

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|]]