Difference between revisions of "Template:Rarity"

From A3! Wiki
m
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly>{{#switch: {{{rarity|}}}
 
<includeonly>{{#switch: {{{rarity|}}}
|ssr|SSR=[[File:SSR_icon.png|x20px|middle|link=|SSR]]
+
|ssr|SSR=[[File:SSR_icon.png|x{{{size|20}}}px|middle|link=|SSR]]
|sr|SR=[[File:SR_icon.png|x20px|middle|link=|SR]]
+
|ssr++|SSR++=[[File:SSR++_icon.png|x{{{size|20}}}px|middle|link=|SSR++]]
|r|R=[[File:R_icon.png|x20px|middle|link=|SR]]
+
|sr|SR=[[File:SR_icon.png|x{{{size|20}}}px|middle|link=|SR]]
|n|N=[[File:N_icon.png|x20px|middle|link=|N]]
+
|sr++|SR++=[[File:SR++_icon.png|x{{{size|20}}}px|middle|link=|SR++]]
|}}</includeonly>
+
|r|R=[[File:R_icon.png|x{{{size|20}}}px|middle|link=|SR]]
 +
|r++|R++=[[File:R++_icon.png|x{{{size|20}}}px|middle|link=|R++]]
 +
|n|N=[[File:N_icon.png|x{{{size|20}}}px|middle|link=|N]]
 +
|}}</includeonly><noinclude>
 +
<pre>{{Rarity
 +
|rarity=ssr,ssr++,sr,sr++,r,r++,n
 +
|size=optional;default 20
 +
}}</pre>
  
<noinclude>
+
{{Rarity|rarity=SSR|size=30}}
Produces a rarity icon with a set height intended to fit on a line, no link. Accepts SSR, SR, R and N (upper or lower case) as attribute for rarity.
 
 
 
==Example==
 
<pre>{{Rarity|rarity=SSR}}</pre>
 
 
{{Rarity|rarity=SSR}}
 
{{Rarity|rarity=SSR}}
<pre>{{Rarity|rarity=SR}}</pre>
 
{{Rarity|rarity=SR}}
 
<pre>{{Rarity|rarity=R}}</pre>
 
{{Rarity|rarity=R}}
 
<pre>{{Rarity|rarity=N}}</pre>
 
{{Rarity|rarity=N}}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 16:47, 1 December 2017

{{Rarity
|rarity=ssr,ssr++,sr,sr++,r,r++,n
|size=optional;default 20
}}

SSR SSR