Template:Rank/EnumImage: Difference between revisions
m (Mika moved page Template:Rank to Template:Rank/EnumImage without leaving a redirect: template naming conflict) |
(linebreak removal) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#switch: {{lc:{{{1|}}}}} | ||
{{#switch: {{lc:{{{1|}}}}} | |||
|0 | |0 | ||
|c = {{EnumImage|image=Icon C.gif|name=C Rank|options={{{options|}}}}} | |c = {{EnumImage|image=Icon C.gif|name=C Rank|options={{{options|}}}}} | ||
Line 15: | Line 14: | ||
==Parameter List== | ==Parameter List== | ||
<pre> | <pre> | ||
{{Rank | {{Rank/EnumImage | ||
| <!-- Anonymous parameter. The desired equipment rank, case insensitive. Invalid strings will render nothing. --> | | <!-- Anonymous parameter. The desired equipment rank, case insensitive. Invalid strings will render nothing. --> | ||
|options <!-- The desired image options. If options aren't provided, the link to the image is disabled. --> | |options <!-- The desired image options. If options aren't provided, the link to the image is disabled. --> | ||
Line 37: | Line 36: | ||
==Examples== | ==Examples== | ||
===0=== | ===0=== | ||
<pre>{{Rank|0}}</pre> | <pre>{{Rank/EnumImage|0}}</pre> | ||
{{Rank|0}} | {{Rank/EnumImage|0}} | ||
===S, options="26px"=== | ===S, options="26px"=== | ||
<pre>{{Rank|S|options=26px}}</pre> | <pre>{{Rank/EnumImage|S|options=26px}}</pre> | ||
{{Rank|S|options=26px}} | {{Rank/EnumImage|S|options=26px}} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:27, 23 March 2024
Purpose
Shortcut template for all equipment ranks.
Parameter List
{{Rank/EnumImage | <!-- Anonymous parameter. The desired equipment rank, case insensitive. Invalid strings will render nothing. --> |options <!-- The desired image options. If options aren't provided, the link to the image is disabled. --> }}
For ranks, the valid list of strings, case insensitive, are:
- C
- c
- 0
- B
- b
- 1
- A
- a
- 2
- S
- s
- 3
For image options, a guide on syntax can be found here: [1]
Examples
0
{{Rank/EnumImage|0}}
S, options="26px"
{{Rank/EnumImage|S|options=26px}}