Template:5e Monster Data: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<includeonly> ---- '''Spell data:'''<br /> <div style="overflow:auto; width:100%; font-size:0.75em;"> {{#iferror: |Not found|{{#cargo_query: tables=5eMonster,Pages_Info |join...")
 
mNo edit summary
 
(19 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
----
----
'''Spell data:'''<br />
<div style="display:block; overflow:auto; max-width:90vw; padding:0 0.5em;">
<div style="overflow:auto; width:100%; font-size:0.75em;">
'''''Monster data''''' <span class="mw-customtoggle-myDivision-MonsterData"><sup>+</sup></span>
{{#iferror: |Not found|{{#cargo_query:
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-myDivision-MonsterData">
{{#cargo_query:
tables=5eMonster,Pages_Info
tables=5eMonster,Pages_Info
|join on=5eMonster.Page_Name=Pages_Info.Page_Name
|join on=5eMonster._pageName=Pages_Info._pageName
|where={{#if: {{{1|}}}|5eMonster.Monster_Name='{{{1}}}'|5eMonster.Monster_Name={{PAGENAME}}|}}
|where=5eMonster.Monster_Name='{{#if: {{{1|}}}|{{{1}}}|{{PAGENAME}} }}'
|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.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.Sort_Text=Sort Text,5eMonster.Monster_Size=Size,5eMonster.Type,5eMonster.Monster_Tags=Subtypes,5eMonster.Monster_Alignment=Alignment,5eMonster.Hit_Points=HP,5eMonster.Movement_Type,5eMonster.Challenge_Rating=CR,5eMonster.Monster_Features=Features,5eMonster.Legendary_Monster=Legendary,5eMonster.Has_Lair,5eMonster.NPC, Pages_Info.Canon,Pages_Info.Pointer,Pages_Info.UA,Pages_Info.User,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=5eMonster,5e_Features
|join on=5eMonster.Page_Name=5e_Features.Page_Name
|where={{#if: {{{1|}}}|5eMonster.Monster_Name='{{{1}}}'|5eMonster.Monster_Name={{PAGENAME}}|}}
|fields=CONCAT( '[[', 5eMonster._pageName, '|', 5eMonster.Monster_Name, ']]' )=Monster,5e_Features.Features
|order by=5eMonster.Sort_Text
|limit=100
|format=table
|more results text=More Monsters
|default=Not Found
}}--></div></includeonly><noinclude>
===Syntax===
===Syntax===
<pre>{{5e Monster Data|optMonsterName}}</pre>
<pre>{{5e Monster Data|optMonsterName}}</pre>
Line 32: Line 23:
{{5e Monster Data}}
{{5e Monster Data}}


{{5e Monster Data|Acolyte}}
{{5e Monster Data|Kobold}}


[[Category:5e Templates]]
[[Category:5e Templates]]
</noinclude>
</noinclude>

Latest revision as of 17:09, 12 September 2022

Syntax

{{5e Monster Data|optMonsterName}}

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



Monster data +

Not Found



Monster data +

Kobold (Sort Text: Kobold AAA Common 5e, Size: Small, Type: Humanoid, Subtypes: Kobold, Alignment: Lawful Evil, HP: 5, CR: 1/8, Features: Pack Tactics Sunlight Sensitivity Dagger Sling, Has Lair: No, NPC: No, Canon: Yes, Pointer: No, UA: No, User: No, Sources: SRD-OGL v5.1)