Difference between revisions of "Template:IconImageWithLink"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) Tag: Manual revert |
||
(4 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
|description = This template is used to show an icon image for all items, enhancements, etc. It handles making sure they are uniform in size. - Links to image file | |description = This template is used to show an icon image for all items, enhancements, etc. It handles making sure they are uniform in size. - Links to image file | ||
|category=Shared Templates | |category=Shared Templates | ||
|example1 = <nowiki>{{IconImageWithLink|Arcanotechnician}}</nowiki> | |example1 = <nowiki>{{IconImageWithLink|Enhancement Arcanotechnician}}</nowiki> | ||
|example1output = {{IconImageWithLink|Arcanotechnician}} | |example1output = {{IconImageWithLink|Enhancement Arcanotechnician}} | ||
|example2 = <nowiki>{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Arcanotechnician}}</nowiki> | |example2 = <nowiki>{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician}}</nowiki> | ||
|example2output = {{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Arcanotechnician}} | |example2output = {{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician}} | ||
|example3 = <nowiki>{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Arcanotechnician|Arcanotechnician (Enhancement)}}</nowiki> | |example3 = <nowiki>{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician|Arcanotechnician (Enhancement)}}</nowiki> | ||
|example3output = {{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Arcanotechnician|Arcanotechnician (Enhancement)}} | |example3output = {{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician|Arcanotechnician (Enhancement)}} | ||
|example4 = <nowiki>{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician}}</nowiki> | |example4 = <nowiki>{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician}}</nowiki> | ||
|example4output = {{IconImageWithLink|Arcanotechnician_core_Arcanotechnician}} | |example4output = {{IconImageWithLink|Arcanotechnician_core_Arcanotechnician}} | ||
Line 19: | Line 19: | ||
}} | }} | ||
</noinclude> | </noinclude> | ||
<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=File:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}_Icon.png|36px|x36px|]]</onlyinclude> |
Latest revision as of 18:09, 24 September 2022
IconImageWithLink[edit]
This template is used to show an icon image for all items, enhancements, etc. It handles making sure they are uniform in size. - Links to image file
Example Usage | |
{{IconImageWithLink|Enhancement Arcanotechnician}} | ![]() |
{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician}} | ![]() |
{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician|Enhancement Arcanotechnician|Arcanotechnician (Enhancement)}} | ![]() |
{{IconImageWithLink|Arcanotechnician_core_Arcanotechnician}} | File:Arcanotechnician core Arcanotechnician Icon.png |
Usage[edit]
{{IconImageWithLink|(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=File:{{{1}}}_Icon.png|36px|x36px|]]