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 (Commented out line on monster form page.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
This template sets semantic monster data to the page and renders the page layout. <br/> | This template sets semantic monster data to the page and renders the page layout. <br/><br/> | ||
Using [[Form:Monster]] will automatically place this onto a specified page. <br/> | <!-- Using [[Form:Monster]] will automatically place this onto a specified page. <br/> (This is not being used for now, as NyxAeravir does not want to delve into the mess that is setting up form pages yet.--> | ||
Template properties: | Template properties: | ||
<pre> | <pre> | ||
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. |
Latest revision as of 01:30, 2 March 2023
This template sets semantic monster data to the page and renders the page layout.
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[edit]
- 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[edit]
- 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.