Badge time.png   The Paragon Wiki Archive documents the state of City of Heroes/Villains as it existed on December 1, 2012.

Difference between revisions of "Template:ISalvageImage"

From Paragon Wiki Archive
Jump to: navigation, search
(another fix...)
 
(12 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Image:Salvage_{{#switch:{{{1}}}|Alchemical Silver=AlchemicalSilver|{{{1}}}.png}}|{{{2}}}]]<noinclude>
+
[[{{#if:{{#ifexist:{{{1}}} Salvage|{{SMWStrip|{{#ask: [[{{{1}}} Salvage]]|?Image#-|limit=1|default=|format=template|template=SMWEcho}}}}}}|{{SMWStrip|{{#ask: [[{{{1}}} Salvage]]|?Image#-|limit=1|format=template|template=SMWEcho}}}}|File:Icon clue generic.png}}|24px|{{{2|}}}]]<noinclude>{{Documentation}}</noinclude>
 
+
Given the name of a salvage, returns an icon for the salvage.  The second parameter is passed to the <nowiki>[[Image:...|]]</nowiki> as an additional parameter.
+
 
+
==Examples==
+
{|class="wikitable"
+
| <pre>{{ISalvageImage|Boresight}}</pre> || {{ISalvageImage|Boresight}}
+
|-
+
| <pre>{{ISalvageImage|Alchemical Silver|30px}}</pre> || {{ISalvageImage|Alchemical Silver|30px}}
+
|}
+
</noinclude>
+

Latest revision as of 20:42, 4 January 2015

Icon clue generic.png
[edit] [purge] Documentation

Given the name of an invention salvage, returns an icon for the salvage. The second parameter is passed to the [[Image:...|]] as an additional parameter.

Usage

{{ISalvageImage|salvage name|optional parameters}}

where:

salvage name
This is the name of the salvage, as spelled out in the game. Sorry, there are no abbreviations.
optional parameters
Optional parameters passed to the MediaWiki [[Image:...|]] tag. See its documentation for details.

Examples

{{ISalvageImage|Boresight}}
Salvage Boresight.png
{{ISalvageImage|Alchemical Silver|30px}}
Salvage AlchemicalSilver.png

See also