Template:Rank/EnumImage: Difference between revisions
m (one day i'll use find and replace like i build the meta template to support) |
(linebreak quirk for template syntax) |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{lc:{{{1|}}}}} | <includeonly> | ||
{{#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|}}}}} |
Revision as of 12:17, 31 December 2023
Purpose
Shortcut template for all equipment ranks.
Parameter List
{{Rank | <!-- 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|0}}
No results
S, options="26px"
{{Rank|S|options=26px}}
Error 1054: Unknown column 'S' in 'WHERE'
Function: CargoSQLQuery::run Query: SELECT `mwhd_cargo__Ranks`.`_pageID` AS `cargo_backlink_page_id_Ranks`,`name` AS `name` FROM `mwhd_cargo__Ranks` WHERE sort_order = S ORDER BY `mwhd_cargo__Ranks`.`_pageID`,`name` LIMIT 100