Template:5e Monster List: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
(adjusted "where" to limit selection to 1 and 2 if 2 is not null)
Line 2: Line 2:
tables=5eMonster, Pages_Info
tables=5eMonster, Pages_Info
|join on=5eMonster._pageName=Pages_Info._pageName
|join on=5eMonster._pageName=Pages_Info._pageName
|where=(5eMonster.Type="{{#if: {{{1|}}}|{{{1}}}}}" OR 5eMonster.Monster_Tags HOLDS "{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}") AND (Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)
|where={{#if: {{{2|}}}|(5eMonster.Type="{{{1|}}}" AND 5eMonster.Monster_Tags HOLDS "{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}")|(5eMonster.Type="{{{1|}}}" OR 5eMonster.Monster_Tags HOLDS "{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}")|}} AND (Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)
|fields=COUNT(5eMonster._pageName)
|fields=COUNT(5eMonster._pageName)
}} {{Type Array|{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}}}
}} {{Type Array|{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}}}
Line 20: Line 20:
tables=5eMonster, Pages_Info
tables=5eMonster, Pages_Info
|join on=5eMonster._pageName=Pages_Info._pageName
|join on=5eMonster._pageName=Pages_Info._pageName
|where=(5eMonster.Type="{{{1|}}}" OR 5eMonster.Monster_Tags HOLDS "{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}") AND (Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)
|where={{#if: {{{2|}}}|(5eMonster.Type="{{{1|}}}" AND 5eMonster.Monster_Tags HOLDS "{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}")|(5eMonster.Type="{{{1|}}}" OR 5eMonster.Monster_Tags HOLDS "{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}")|}} AND (Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)
|fields=5eMonster._pageName,5eMonster.Monster_Name,5eMonster.Monster_Size,5eMonster.Type,5eMonster.Monster_Tags,5eMonster.Monster_Alignment,5eMonster.Hit_Points,5eMonster.Hit_Dice,5eMonster.Challenge_Rating,5eMonster.Experience_Points,5eMonster.Monster_Features,5eMonster.Canon,5eMonster.Pointer,5eMonster.UA,Pages_Info.User,Pages_Info.Sources
|fields=5eMonster._pageName,5eMonster.Monster_Name,5eMonster.Monster_Size,5eMonster.Type,5eMonster.Monster_Tags,5eMonster.Monster_Alignment,5eMonster.Hit_Points,5eMonster.Hit_Dice,5eMonster.Challenge_Rating,5eMonster.Experience_Points,5eMonster.Monster_Features,5eMonster.Canon,5eMonster.Pointer,5eMonster.UA,Pages_Info.User,Pages_Info.Sources
|order by=5eMonster.Sort_Text
|order by=5eMonster.Sort_Text

Revision as of 17:25, 25 March 2020

Syntax

{{5e Monster List|type|subtype}}

Normally type is not used and only one subtype is specified.

Example

{{5e Monster List|Gnoll}}
Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)

Gnolls

Cannot access the database: :real_connect(): (HY000/1226): User 'a1618b_wiki5' has exceeded the 'max_user_connections' resource (current value: 10)
Monster Size Type Tags Alignment HP CR Marked Source