Template:Manufacturer/EnumImage: Difference between revisions

From Phantasy Star Universe Clementine
(refactor template for enumimage to futureproof)
(add ids)
Line 1: Line 1:
<includeonly>{{#switch: {{lc:{{{1|}}}}}
<includeonly>{{#switch: {{lc:{{{1|}}}}}
|00
|general resource manufacturer
|general resource manufacturer
|g
|g
Line 5: Line 6:
|g.r.m.
|g.r.m.
|grm = {{EnumImage|image=GRM-logo.png|name=G.R.M.|options={{{options|}}}}}
|grm = {{EnumImage|image=GRM-logo.png|name=G.R.M.|options={{{options|}}}}}
|k
|01
|kubara product
|kubara = {{EnumImage|image=Kubara_logo.png|name=Kubara|options={{{options|}}}}}
|y
|y
|yohmei corporation
|yohmei corporation
|yohmei corp
|yohmei corp
|yohmei = {{EnumImage|image=Yomei-logo.png|name=Yohmei|options={{{options|}}}}}
|yohmei = {{EnumImage|image=Yomei-logo.png|name=Yohmei Corp|options={{{options|}}}}}
|02
|t
|t
|tenora works
|tenora works
|tenora = {{EnumImage|image=Tenora-logo.png|name=TENORA WORKS|options={{{options|}}}}}
|tenora = {{EnumImage|image=Tenora-logo.png|name=TENORA WORKS|options={{{options|}}}}}
|03
|k
|kubara product
|kubara = {{EnumImage|image=Kubara_logo.png|name=Kubara product|options={{{options|}}}}}
|#default =  
|#default =  
}}</includeonly><noinclude>
}}</includeonly><noinclude>
==Purpose==
==Purpose==
Shortcut template for all equipment manufacturers. Contains mouseover for the manufacturer name.
Shortcut template for all equipment manufacturers. Currently, clothing manufacturers are not supported. Contains mouseover for the manufacturer string that would appear ingame.
==Parameter List==
==Parameter List==
<pre>
<pre>
{{Manufacturer
{{Manufacturer
|        <!-- Anonymous parameter. The desired manufacturer of the weapon, case insensitive. Invalid strings will render nothing. -->
|        <!-- Anonymous parameter. The desired manufacturer name or weapon manufacturer's octet, 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 28: Line 32:
For manufacturers, the valid list of strings, case insensitive, are:
For manufacturers, the valid list of strings, case insensitive, are:
; GRM:
; GRM:
*00
*general resource manufacturer
*general resource manufacturer
*g
*g
Line 34: Line 39:
*grm
*grm
; Yohmei:
; Yohmei:
*01
*y
*y
*yohmei corporation
*yohmei corporation
Line 39: Line 45:
*yohmei
*yohmei
; TENORA WORKS:
; TENORA WORKS:
*02
*t
*t
*tenora works
*tenora works
*tenora
*tenora
; Kubara:
; Kubara:
*03
*k
*k
*kubara product
*kubara product

Revision as of 02:26, 22 December 2023

Purpose

Shortcut template for all equipment manufacturers. Currently, clothing manufacturers are not supported. Contains mouseover for the manufacturer string that would appear ingame.

Parameter List

{{Manufacturer
|         <!-- Anonymous parameter. The desired manufacturer name or weapon manufacturer's octet, 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 manufacturers, the valid list of strings, case insensitive, are:

GRM
  • 00
  • general resource manufacturer
  • g
  • g.r.m
  • g.r.m.
  • grm
Yohmei
  • 01
  • y
  • yohmei corporation
  • yohmei corp
  • yohmei
TENORA WORKS
  • 02
  • t
  • tenora works
  • tenora
Kubara
  • 03
  • k
  • kubara product
  • kubara

For image options, a guide on syntax can be found here: [1]

Examples

Icon for "yohmei"

{{Manufacturer|yohmei}}
Error 1054: Unknown column 'yohmei' in 'WHERE'

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}}
Error 1054: Unknown column 'GRM' in 'WHERE'

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}}
Error 1054: Unknown column 'GRM' in 'WHERE'

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|link="

{{Manufacturer|GRM|options=16px{{!}}link=}}
Error 1054: Unknown column 'GRM' in 'WHERE'

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}}
Error 1054: Unknown column 'asdasd' in 'WHERE'

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