Template:5e Monster Data: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
----
----
'''Monster data:'''<br />
<div style="<!--border-style:solid; border-width:1px; border-color:#0000ff; border-radius:0.5em;--> padding:0 0.5em;">
<div style="overflow:auto; width:90%; font-size:0.75em;">
'''''Monster data''''' <span class="mw-customtoggle-myDivision"><sup>+</sup></span>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision">
{{#cargo_query:
{{#cargo_query:
tables=5eMonster,Pages_Info
tables=5eMonster,Pages_Info
Line 9: Line 10:
|fields=CONCAT( '[[', 5eMonster._pageName, '|', 5eMonster.Monster_Name, ']]' )=Monster,5eMonster.Monster_Size=Size,5eMonster.Type,5eMonster.Monster_Tags=Subtypes,5eMonster.Monster_Alignment=Alignment,5eMonster.Hit_Points=HP,5eMonster.Challenge_Rating=CR,5eMonster.Monster_Features=Features,5eMonster.Legendary_Monster=Legendary,5eMonster.Has_Lair,5eMonster.NPC, 5eMonster.Canon,5eMonster.Pointer,5eMonster.Hidden,5eMonster.UA,Pages_Info.Sources
|fields=CONCAT( '[[', 5eMonster._pageName, '|', 5eMonster.Monster_Name, ']]' )=Monster,5eMonster.Monster_Size=Size,5eMonster.Type,5eMonster.Monster_Tags=Subtypes,5eMonster.Monster_Alignment=Alignment,5eMonster.Hit_Points=HP,5eMonster.Challenge_Rating=CR,5eMonster.Monster_Features=Features,5eMonster.Legendary_Monster=Legendary,5eMonster.Has_Lair,5eMonster.NPC, 5eMonster.Canon,5eMonster.Pointer,5eMonster.Hidden,5eMonster.UA,Pages_Info.Sources
|order by=5eMonster.Sort_Text
|order by=5eMonster.Sort_Text
|limit=100
|limit=10
|format=table
|format=list
|more results text=More Monsters
|more results text=More Monsters
|default=Not Found
|default=Not Found
}}
}}
<!--{{#cargo_query:
</div><!--collapsable--></div></includeonly><noinclude>
tables=5e_Features,5eMonster
|join on=5eMonster.Page_Name=5e_Features.Page_Name
|where=5eMonster.Monster_Name='{{#if: {{{1|}}}|{{{1}}}|{{PAGENAME}} }}'
|fields=5e_Features.Features
|limit=100
|format=table
|more results text=More Features
|default=Not Found
}}--></div></includeonly><noinclude>
===Syntax===
===Syntax===
<pre>{{5e Monster Data|optMonsterName}}</pre>
<pre>{{5e Monster Data|optMonsterName}}</pre>

Revision as of 06:49, 9 March 2020

Syntax

{{5e Monster Data|optMonsterName}}

Note: For monster names with an apostrophe ('), you must double the apostrophe ('').



Monster data +

Error: No field named "Canon" found for the database table "5eMonster".



Monster data +

Error: No field named "Canon" found for the database table "5eMonster".