Template:Rarity: Difference between revisions
(add star mouseover caption) |
(add documentation) |
||
Line 1: | Line 1: | ||
{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
| 1 | | 1 | ||
| 2 | | 2 | ||
Line 17: | Line 17: | ||
| 16 = [[File:{{{1}}}.png{{!}}alt={{{1}}}★{{!}}link=|{{{1}}}★]] | | 16 = [[File:{{{1}}}.png{{!}}alt={{{1}}}★{{!}}link=|{{{1}}}★]] | ||
| #default = {{{1|}}} | | #default = {{{1|}}} | ||
}} | }}</includeonly><noinclude> | ||
==Purpose== | |||
A template that resolves rarity into star pngs. Useful for infoboxes. | |||
==Examples== | |||
===1★=== | |||
<pre>{{Rarity|1}}</pre> | |||
{{Rarity|1}} | |||
===15★=== | |||
<pre>{{Rarity|15}}</pre> | |||
{{Rarity|15}} | |||
===30★=== | |||
<pre>{{Rarity|30}}</pre> | |||
{{Rarity|30}} | |||
</noinclude> |
Revision as of 01:25, 20 December 2023
Purpose
A template that resolves rarity into star pngs. Useful for infoboxes.
Examples
1★
{{Rarity|1}}
15★
{{Rarity|15}}
30★
{{Rarity|30}}
30