Template:5e Monster List: Difference between revisions
No edit summary |
(testing) |
||
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={{#if: {{{2|}}}|(5eMonster.Type= | |where={{#if: {{{2|}}}|(5eMonster.Type='{{{1|}}}' AND 5eMonster.Monster_Tags HOLDS '{{{2}}}')|(5eMonster.Type='{{{1|}}}' OR 5eMonster.Monster_Tags HOLDS '{{{1}}}')|}}{{#if: {{{5eh|}}}| AND (Pages_Info.Pointer=0 OR Pages_Info.Pointer IS NULL)| 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,Pages_Info.Canon,Pages_Info.Pointer,Pages_Info.UA,Pages_Info.User,Pages_Info.Sources,Pages_Info.Hidden | |fields=5eMonster._pageName | ||
<!--|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,Pages_Info.Canon,Pages_Info.Pointer,Pages_Info.UA,Pages_Info.User,Pages_Info.Sources,Pages_Info.Hidden--> | |||
|order by=5eMonster.Sort_Text | |order by=5eMonster.Sort_Text | ||
|format=template | |format=template | ||
|template=5e Monster List Row | <!--|template=5e Monster List Row--> | ||
|template=5e Monster Row Preprocess | |||
|limit=1000 | |limit=1000 | ||
|more results text=More {{Type Array|{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}}} | |more results text=More {{Type Array|{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}}} | ||
Line 40: | Line 42: | ||
<pre>{{5e Monster List|Gnoll}}</pre> | <pre>{{5e Monster List|Gnoll}}</pre> | ||
{{5e Monster List| | {{5e Monster List|Drow}} |
Revision as of 16:57, 13 May 2020
Syntax
{{5e Monster List|type|subtype}}
Normally type is not used and only one subtype is specified.
Add'l Fields
|5eh= <!--blank, true if 5eh. Used by Admin only-->
Example
{{5e Monster List|Gnoll}}
Function: CargoSQLQuery::run Query: SELECT `rly2_cargo__Pages_Info`.`_pageID` AS `cargo_backlink_page_id_Pages_Info`,`rly2_cargo__5eMonster`.`_pageID` AS `cargo_backlink_page_id_5eMonster`,COUNT(`rly2_cargo__5eMonster`.`_pageName`) AS `_pageName)` FROM `rly2_cargo__5eMonster` LEFT OUTER JOIN `rly2_cargo__Pages_Info` ON ((`rly2_cargo__5eMonster`.`_pageName`=`rly2_cargo__Pages_Info`.`_pageName`)) WHERE (`rly2_cargo__5eMonster`.`Type`="Drow" OR `rly2_cargo__5eMonster`.`_ID` IN (SELECT `_rowID` FROM `rly2_cargo__5eMonster__Monster_Tags` WHERE `_value`= "Drow") )AND (`rly2_cargo__Pages_Info`.`Hidden`=0 OR `rly2_cargo__Pages_Info`.`Hidden` IS NULL) ORDER BY `rly2_cargo__Pages_Info`.`_pageID`,`rly2_cargo__5eMonster`.`_pageID`,COUNT(`rly2_cargo__5eMonster`.`_pageName`) LIMIT 100
Function: CargoSQLQuery::run Query: SELECT `rly2_cargo__Pages_Info`.`_pageID` AS `cargo_backlink_page_id_Pages_Info`,`rly2_cargo__5eMonster`.`_pageID` AS `cargo_backlink_page_id_5eMonster`,`rly2_cargo__5eMonster`.`_pageName` AS `_pageName` FROM `rly2_cargo__5eMonster` LEFT OUTER JOIN `rly2_cargo__Pages_Info` ON ((`rly2_cargo__5eMonster`.`_pageName`=`rly2_cargo__Pages_Info`.`_pageName`)) WHERE (`rly2_cargo__5eMonster`.`Type`='Drow' OR `rly2_cargo__5eMonster`.`_ID` IN (SELECT `_rowID` FROM `rly2_cargo__5eMonster__Monster_Tags` WHERE `_value`= 'Drow') )AND (`rly2_cargo__Pages_Info`.`Hidden`=0 OR `rly2_cargo__Pages_Info`.`Hidden` IS NULL) ORDER BY `rly2_cargo__5eMonster`.`Sort_Text` LIMIT 100
Monster | Size | Type | Tags | Alignment | HP | CR | Marked | Source |
---|