From Brotato Wiki
(INITIAL \o/ --- only supports items atm) |
(Update to support both items and weapons, using 2 new templates: AutoStatsCard_Item, AutoStatsCard_Weapon) |
||
Line 1: | Line 1: | ||
<includeonly><onlyinclude><!-- | <includeonly><onlyinclude><!-- | ||
-->{{ | -->{{#switch: {{lc:{{GetType|{{{1|}}}}}}} | ||
| item = {{AutoStatsCard_Item|{{{1|}}}}} | |||
| weapon = {{AutoStatsCard_Weapon|{{{1|}}}}} | |||
| #default = 0 | |||
| | |||
}}<!-- | }}<!-- | ||
--></onlyinclude></includeonly><noinclude> | --></onlyinclude></includeonly><noinclude> | ||
Creates a [[Template:StatsCard|StatsCard]] with automatically populated data, using only | Creates a [[Template:StatsCard|StatsCard]] with automatically populated data, using only a weapon or item name. | ||
Uses one of two templates, depending on the type of the thing specified: | |||
* [[Template:AutoStatsCard_Item]] | |||
* [[Template:AutoStatsCard_Weapon]] | |||
==Examples== | ==Examples== | ||
Line 26: | Line 27: | ||
|<pre>{{AutoStatsCard|Anvil}}</pre> | |<pre>{{AutoStatsCard|Anvil}}</pre> | ||
|{{AutoStatsCard|Anvil}} | |{{AutoStatsCard|Anvil}} | ||
|- | |||
|<pre>{{AutoStatsCard|Chopper}}</pre> | |||
|{{AutoStatsCard|Chopper}} | |||
|- | |||
|<pre>{{AutoStatsCard|Flamethrower}}</pre> | |||
|{{AutoStatsCard|Flamethrower}} | |||
|} | |} | ||
</noinclude> | </noinclude> |
Latest revision as of 23:47, 7 November 2024
Creates a StatsCard with automatically populated data, using only a weapon or item name.
Uses one of two templates, depending on the type of the thing specified:
Examples
Code | Result |
---|---|
{{AutoStatsCard|Acid}} |
|
{{AutoStatsCard|Anvil}} |
|
{{AutoStatsCard|Chopper}} |
Chopper
|
{{AutoStatsCard|Flamethrower}} |