Difference between revisions of "Template:Icons"

From Star Trek Timelines Wiki
Jump to navigation Jump to search
Line 6: Line 6:
 
|{{User:CodeHydro/sandbox5|{{{name|}}}|Uncommon}}{{safesubst:#ifexpr:{{{2|5}}}>2|<nowiki></nowiki>
 
|{{User:CodeHydro/sandbox5|{{{name|}}}|Uncommon}}{{safesubst:#ifexpr:{{{2|5}}}>2|<nowiki></nowiki>
 
{{!}}}}}}{{safesubst:#ifexpr:({{{1|0}}}<4) and ({{{2|5}}}>2)
 
{{!}}}}}}{{safesubst:#ifexpr:({{{1|0}}}<4) and ({{{2|5}}}>2)
|{{User:CodeHydro/sandbox5|{{{name|}}}|Rare}}.png]]{{safesubst:#ifexpr:{{{2|5}}}>3|<nowiki></nowiki>
+
|{{User:CodeHydro/sandbox5|{{{name|}}}|Rare}}{{safesubst:#ifexpr:{{{2|5}}}>3|<nowiki></nowiki>
 
{{!}}}}}}{{safesubst:#ifexpr:({{{1|0}}}<5) and ({{{2|5}}}>3)
 
{{!}}}}}}{{safesubst:#ifexpr:({{{1|0}}}<5) and ({{{2|5}}}>3)
 
|{{User:CodeHydro/sandbox5|{{{name|}}}|SuperRare}}{{safesubst:#ifexpr:{{{2|5}}}>4|<nowiki></nowiki>
 
|{{User:CodeHydro/sandbox5|{{{name|}}}|SuperRare}}{{safesubst:#ifexpr:{{{2|5}}}>4|<nowiki></nowiki>
Line 13: Line 13:
 
Just because [[User:CodeHydro]] hates manually typing things. Automatic checks if item icon exists. If not, substitutes placeholder, which, when clicked, links to the destination where the file should be uploaded (saving editors from having to editing the item page itself when uploading and guaranteeing that item name will match format of others of same rarity.
 
Just because [[User:CodeHydro]] hates manually typing things. Automatic checks if item icon exists. If not, substitutes placeholder, which, when clicked, links to the destination where the file should be uploaded (saving editors from having to editing the item page itself when uploading and guaranteeing that item name will match format of others of same rarity.
  
2nd and 3rd params are just like that of [[Template:ItemX/init]]
+
1st and 2nd params are just like that of [[Template:ItemX/init]] and represent stars (and can be omited in the same manner; if 2nd is given, 1st may not be blank)
  
 +
<pre>
 
{| class=wikitable
 
{| class=wikitable
 
! scope="row" | Icon
 
! scope="row" | Icon
 
| {{{{FULLPAGENAME}}|name=HyposprayTOS|0|2}}
 
| {{{{FULLPAGENAME}}|name=HyposprayTOS|0|2}}
 +
|}
 +
</pre>
 +
 +
{| class=wikitable
 +
! scope="row" | Icon
 +
| {{{{FULLPAGENAME}}|name=HyposprayTOS|0|2}}
 +
|}
 +
 +
 +
 +
 +
Item filed under one name for low rarities but another for high rarities? No problem!
 +
 +
<pre>
 +
{| class=wikitable
 +
! scope="row" | Icon
 +
| {{{{FULLPAGENAME}}|name=FeragoitGoulash|1|3}} || {{{{FULLPAGENAME}}|name=PlomeekSoup|4|5}}
 +
|}
 +
</pre>
 +
 +
{| class=wikitable
 +
! scope="row" | Icon
 +
| {{{{FULLPAGENAME}}|name=FeragoitGoulash|1|3}} || {{{{FULLPAGENAME}}|name=PlomeekSoup|4|5}}
 
|}
 
|}

Revision as of 13:31, 2 July 2016

Just because User:CodeHydro hates manually typing things. Automatic checks if item icon exists. If not, substitutes placeholder, which, when clicked, links to the destination where the file should be uploaded (saving editors from having to editing the item page itself when uploading and guaranteeing that item name will match format of others of same rarity.

1st and 2nd params are just like that of Template:ItemX/init and represent stars (and can be omited in the same manner; if 2nd is given, 1st may not be blank)

{| class=wikitable
! scope="row" | Icon
| {{{{FULLPAGENAME}}|name=HyposprayTOS|0|2}}
|}
Icon Template:Icons Template:Icons Template:Icons



Item filed under one name for low rarities but another for high rarities? No problem!

{| class=wikitable
! scope="row" | Icon
| {{{{FULLPAGENAME}}|name=FeragoitGoulash|1|3}} || {{{{FULLPAGENAME}}|name=PlomeekSoup|4|5}}
|}
Icon Template:Icons Template:Icons Template:Icons Template:Icons Template:Icons