Template:SemanticMonsterData/doc: Difference between revisions
NyxAeravir (talk | contribs) (Created doc page for Template:SemanticMonsterData. This documentation is currently incomplete due to other templates used by THIS template not existing yet.) |
NyxAeravir (talk | contribs) m (Removed raid comment.) |
||
Line 41: | Line 41: | ||
*<nowiki>#css</nowiki> is used to resize the images. | *<nowiki>#css</nowiki> is used to resize the images. | ||
*Rows and columns are changed depending on <nowiki>{{#hashvalue:Data|Type}}</nowiki>. | *Rows and columns are changed depending on <nowiki>{{#hashvalue:Data|Type}}</nowiki>. | ||
**''Normal'' | **''Normal'' omits the top "location" field. | ||
*Monster categories are handled at the bottom. | *Monster categories are handled at the bottom. | ||
*Please take into account <nowiki>{{#hashvalue:Data|Type}}</nowiki> (the different monster types) when making any edits. | *Please take into account <nowiki>{{#hashvalue:Data|Type}}</nowiki> (the different monster types) when making any edits. |
Revision as of 01:29, 2 March 2023
This template sets semantic monster data to the page and renders the page layout.
Using Form:Monster will automatically place this onto a specified page.
Template properties:
name family file ext field locations list dungeon locations list speed element melee hits explosive damage aggro multi aggro aggro range aggro speed drops equip list common drops misc list common heavy stander mana deflector natural shield type section type missions list mainstream field boss skills
For editing this template
- This template uses semantic media wiki. See here for a quick tutorial.
- See Template:SemanticMonsterData for main monster properties.
- Template:SemanticMonsterDifficultyData is used as the subobject for varying monster difficulties.
Tips
- Avoid cleaning up the code to avoid unintended bugs. (unless you're very familiar with mediawiki)
- Especially newlines and indenting.
- There is a lot of conditional statements mixed into the tables.
- It's recommended to copy and edit in a third party code editor to help with highlighting.
- #css is used to resize the images.
- Rows and columns are changed depending on {{#hashvalue:Data|Type}}.
- Normal omits the top "location" field.
- Monster categories are handled at the bottom.
- Please take into account {{#hashvalue:Data|Type}} (the different monster types) when making any edits.