Template:5e Subrace List: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<includeonly><div style="overflow:auto; max-width:85vw; font-size:0.75rem;"> {|class="zebra sortable" !Race !Subrace !Abilities !Size<br />Change !Speed<br />Change !Darkvisio...")
 
No edit summary
Line 1: Line 1:
<includeonly><div style="overflow:auto; max-width:85vw; font-size:0.75rem;">
<includeonly><div style="overflow:auto; max-width:85vw; font-size:0.75rem;">
{|class="zebra sortable"
{|class="zebra sortable"
!Race
{{#if: {{{hiderace|}}}|<!--skip race-->|!Race|}}
!Subrace
!Subrace
!Abilities
!Abilities
Line 25: Line 25:
|fields=5e_Subrace._pageName,5e_Subrace.Race,5e_Subrace.Race_NS,5e_Subrace.Subrace,5e_Subrace.Sort_Text,5e_Subrace.Ability_Mods,5e_Subrace.Size,5e_Subrace.Speed,5e_Subrace.Darkvision,5e_Subrace.Features,5e_Subrace.Summary,Pages_Info.Canon,Pages_Info.Hidden,Pages_Info.Pointer,Pages_Info.UA,Pages_Info.User,Pages_Info.Sources
|fields=5e_Subrace._pageName,5e_Subrace.Race,5e_Subrace.Race_NS,5e_Subrace.Subrace,5e_Subrace.Sort_Text,5e_Subrace.Ability_Mods,5e_Subrace.Size,5e_Subrace.Speed,5e_Subrace.Darkvision,5e_Subrace.Features,5e_Subrace.Summary,Pages_Info.Canon,Pages_Info.Hidden,Pages_Info.Pointer,Pages_Info.UA,Pages_Info.User,Pages_Info.Sources
|format=template
|format=template
|template=5e Subrace Line
|template={{#if: {{{hiderace|}}}|5e Subrace Line Hiderace|5e Subrace Line|}}
}}
}}
|}</includeonly><noinclude>
|}</includeonly><noinclude>
Line 31: Line 31:
<pre>{{5e Subrace List|race}}}</pre>
<pre>{{5e Subrace List|race}}}</pre>
===Optional Fields===
===Optional Fields===
<pre>|5eh= <!--blank or true, admin only-->
<pre>
|5eh= <!--blank or true, admin only-->
|hiderace= <!--blank or true-->
</pre>
 
==Example==
==Example==
<pre>{{5e Subrace List|Halfling}}</pre>
<pre>{{5e Subrace List|Halfling}}</pre>
Line 37: Line 41:
produces...
produces...


{{5e Subrace List|Halfling}}
{{5e Subrace List|Halfling|hiderace=true}}


[[Category:5e Templates|Subrace List 5e]]
[[Category:5e Templates|Subrace List 5e]]
</noinclude>
</noinclude>

Revision as of 13:30, 8 June 2020

Syntax

{{5e Subrace List|race}}}

Optional Fields

|5eh= <!--blank or true, admin only-->
|hiderace= <!--blank or true-->

Example

{{5e Subrace List|Halfling}}

produces...

Error 1054: Unknown column 'rly2_cargo__Pages_Info.Hidden' in 'where clause'

Function: CargoSQLQuery::run Query: SELECT `rly2_cargo__Pages_Info`.`_pageID` AS `cargo_backlink_page_id_Pages_Info`,`rly2_cargo__5e_Subrace`.`_pageID` AS `cargo_backlink_page_id_5e_Subrace`,COUNT(`rly2_cargo__5e_Subrace`.`_pageName`) AS `_pageName)` FROM `rly2_cargo__5e_Subrace` LEFT OUTER JOIN `rly2_cargo__Pages_Info` ON ((`rly2_cargo__5e_Subrace`.`_pageName`=`rly2_cargo__Pages_Info`.`_pageName`)) WHERE `rly2_cargo__5e_Subrace`.`Race`="Halfling" AND (`rly2_cargo__Pages_Info`.`Hidden`=0 OR `rly2_cargo__Pages_Info`.`Hidden` IS NULL) ORDER BY `rly2_cargo__Pages_Info`.`_pageID`,`rly2_cargo__5e_Subrace`.`_pageID`,COUNT(`rly2_cargo__5e_Subrace`.`_pageName`) LIMIT 100

official and unofficial races.
Error: No field named "Hidden" found for the database table "Pages_Info".
Subrace Abilities Size
Change
Speed
Change
Darkvision
(if change)
Features Summary Source Notes Source