Template:MonsterRow
|- | {{{monsterid|'''unk'''}}} | '''[[{{{link|{{{name}}}}}}|{{{name}}}]]''' | {{{location}}} | {{{hp}}} | {{{attack}}} | {{{defense}}} | {{{init}}} | {{#if:{{{Mval|}}}|{{meat range|{{{Mval}}}}}|'''{{{meat|None}}}'''}} | {{{element}}} | {{{phylum}}} | {{{physical}}} | <span class="plainlinks" style="font-size:smaller;text-align:right;"> ([{{fullurl:Data:{{{link|{{{name|}}}}}}|action=edit}} Edit metadata])</span>'''
Usage
Use this template through a dynamic formatting of the data page. Monsters whose names are different from the pagename they are stored on--likely due to conflicts, such as with golden ring (monster)--will need to have a link=
entry on their data page whose value is the actual name of their page.
This template assumes it will be used inside a table.
Example
{| style="text-align: left; margin: auto" cellpadding=5 cellspacing=0 border="1px" class="sortable" |- ! ID ! Monster ! Location ! HP ! Attack ! Defense ! Initiative ! Meat ! Element ! Phylum ! PhysRes ! Links {{Data:Sabre-toothed lime|format=MonsterRow}} {{Data:golden ring (monster)|format=MonsterRow}} |}
Yields
ID | Monster | Location | HP | Attack | Defense | Initiative | Meat | Element | Phylum | PhysRes | Links |
---|---|---|---|---|---|---|---|---|---|---|---|
70 | sabre-toothed lime | The Daily Dungeon | 8 | 14 | 12 | 60 | 12-18 | none | beast | none | (Edit metadata)
|
643 | golden ring | A Sinister Dodecahedron | Scales with player stats | Scales with player stats | Scales with player stats | 0 | None | none | construct | none | (Edit metadata) |