From Brotato Wiki
(INITIAL \o/) |
(use PAGENAME example) |
||
Line 7: | Line 7: | ||
The code generates a table of starting weapons for the specified character, using their <code>startingwpns</code> value from [[Template:Character_Data]]. | The code generates a table of starting weapons for the specified character, using their <code>startingwpns</code> value from [[Template:Character_Data]]. | ||
It's intended for us on a character's own page. | It's intended for us on a character's own page. Doing this lets you refer to the page name, instead of specifying the character name, ie: | ||
<pre>{{GenerateCharacterStartingWeaponsTable|name={{PAGENAME}}}}</pre> | |||
==Example== | ==Example== |
Latest revision as of 21:14, 5 November 2024
This template uses a module, which is a Lua script that can run custom code:
Module:GetStartingWeaponsTableForCharacter
The code generates a table of starting weapons for the specified character, using their startingwpns
value from Template:Character_Data.
It's intended for us on a character's own page. Doing this lets you refer to the page name, instead of specifying the character name, ie:
{{GenerateCharacterStartingWeaponsTable|name={{PAGENAME}}}}
Example
Code:
{{GenerateCharacterStartingWeaponsTable|name=Mutant}}
Result: