Template:Manufacturer/EnumImage: Difference between revisions
m (syntax) |
(remove class functionality description (can be hacked into through options)) |
||
Line 24: | Line 24: | ||
| <!-- Anonymous parameter. The desired manufacturer of the weapon, case insensitive. Invalid strings will render nothing. --> | | <!-- Anonymous parameter. The desired manufacturer of the weapon, case insensitive. Invalid strings will render nothing. --> | ||
|options <!-- The desired image options. --> | |options <!-- The desired image options. --> | ||
}} | }} | ||
</pre> | </pre> |
Revision as of 14:47, 21 December 2023
Purpose
Shortcut template for all equipment manufacturers. Contains mouseover for the manufacturer name and disables link functionality.
Parameter List
{{Manufacturer | <!-- Anonymous parameter. The desired manufacturer of the weapon, case insensitive. Invalid strings will render nothing. --> |options <!-- The desired image options. --> }}
For manufacturers, the valid list of strings, case insensitive, are:
- GRM
- general resource manufacturer
- g
- g.r.m
- g.r.m.
- grm
- Yohmei
- y
- yohmei corporation
- yohmei corp
- yohmei
- TENORA WORKS
- t
- tenora works
- tenora
- Kubara
- k
- kubara product
- kubara
For image options, a guide on syntax can be found here: [1]
Examples
Icon for "yohmei"
{{Manufacturer|yohmei}}
Function: CargoSQLQuery::run Query: SELECT `mwhd_cargo__Manufacturers`.`_pageID` AS `cargo_backlink_page_id_Manufacturers`,`name` AS `name` FROM `mwhd_cargo__Manufacturers` WHERE sort_order = yohmei ORDER BY `mwhd_cargo__Manufacturers`.`_pageID`,`name` LIMIT 100
Icon for "GRM"
{{Manufacturer|GRM}}
Function: CargoSQLQuery::run Query: SELECT `mwhd_cargo__Manufacturers`.`_pageID` AS `cargo_backlink_page_id_Manufacturers`,`name` AS `name` FROM `mwhd_cargo__Manufacturers` WHERE sort_order = GRM ORDER BY `mwhd_cargo__Manufacturers`.`_pageID`,`name` LIMIT 100
Icon for "GRM", Options="16px"
{{Manufacturer|GRM|options=16px}}
Function: CargoSQLQuery::run Query: SELECT `mwhd_cargo__Manufacturers`.`_pageID` AS `cargo_backlink_page_id_Manufacturers`,`name` AS `name` FROM `mwhd_cargo__Manufacturers` WHERE sort_order = GRM ORDER BY `mwhd_cargo__Manufacturers`.`_pageID`,`name` LIMIT 100
Icon for "asdasd"
{{Manufacturer|asdasd}}
Function: CargoSQLQuery::run Query: SELECT `mwhd_cargo__Manufacturers`.`_pageID` AS `cargo_backlink_page_id_Manufacturers`,`name` AS `name` FROM `mwhd_cargo__Manufacturers` WHERE sort_order = asdasd ORDER BY `mwhd_cargo__Manufacturers`.`_pageID`,`name` LIMIT 100