Template:Hero data/doc
Jump to navigation
Jump to search
- Retrieves hero data from Module:Heroes/data.
- Description
- This template contains various independently retrievable hero data items. This template is the interface for Module:Heroes/data.
- Syntax
{{Hero data|<heroname>|<datatype>|<output>|<prepend>|<append>|<separator>|<t_name>|<index>}}
{{hd|<heroname>|<datatype>|<output>|<prepend>|<append>|<separator>|<t_name>|<index>}}}
- Parameters
- 1/heroname - Required
- 2/datatype - Required
- 3/output - Required if datatype in {stats, roles, classes, abilities}, otherwise not needed
For use with output=custom
- prepend - Optional
- append - Optional
- separator - Optional
- index - Optional
For use with output=template
- t_name - Optional
- Example
{{hd|Iggy & Scorch|apiname}} {{hd|Iggy & Scorch|roles|csv}} {{hd|Countess|roles|custom|prepend=<<<|append=>>>|separator=-}} {{hd|Countess|roles|custom|index=2}}
- ...yields:
IggyScorch
Midlane,Offlane
<<<Midlane>>>-<<<Jungle>>>
Jungle