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
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="overflow:auto; max-width:85vw; font-size:0.75rem;">
<includeonly>
{|class="zebra sortable"
{{#cargo_query:
!Race
table=5e_Subrace, Pages_Info
|join on=5e_Subrace._pageName=Pages_Info._pageName
|where=5e_Subrace.Race="{{{1|}}}"
|fields=COUNT(5e_Subrace._pageName)
}} official and unofficial races.<br />
<div style="display:block; overflow:auto; max-width:85vw; max-height:90vh; ">
{|class="zebra sortable small"
{{#if: {{{showrace|}}}|!Race|}}
!Subrace
!Subrace
!Abilities
!Abilities
Line 8: Line 15:
!Darkvision<br />(if change)
!Darkvision<br />(if change)
!Features
!Features
!Summary
<!--!Summary-->
!Source Notes
!Source Notes
!Source
!Source
|-
|-
{{#cargo_query:
table=5e_Subrace, Pages_Info
|join on=5e_Subrace._pageName=Pages_Info._pageName
|where=5e_Subrace.Race="{{{1|}}}" AND {{#if: {{{5eh|}}}|(Pages_Info.Pointer=0 OR Pages_Info.Pointer IS NULL)|(Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)|}}
|fields=COUNT(5e_Subrace._pageName)
}} official and unofficial races.<br />
{{#cargo_query:
{{#cargo_query:
tables=5e_Subrace,Pages_Info
tables=5e_Subrace,Pages_Info
|join on=5e_Subrace._pageName=Pages_Info._pageName
|join on=5e_Subrace._pageName=Pages_Info._pageName
|where=5e_Subrace.Race="{{{1|}}}" AND {{#if: {{{5eh|}}}|(Pages_Info.Pointer=0 OR Pages_Info.Pointer IS NULL)|(Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)|}}
|where=5e_Subrace.Race="{{{1|}}}"
|order by=5e_Subrace.Race,5e_Subrace.Sort_Text
|order by=5e_Subrace.Race,5e_Subrace.Sort_Text
|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.Pointer,Pages_Info.UA,Pages_Info.User,Pages_Info.Sources
|named args=yes
|format=template
|format=template
|template=5e Subrace Line
|template={{#if: {{{showrace|}}}|5e Subrace Line Show Race|5e Subrace Line Hide Race|}}
}}
}}
|}</includeonly><noinclude>
|}
</div></includeonly><noinclude>
==Syntax==
==Syntax==
<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-->
|showrace= <!--blank or true-->
</pre>
 
==Example==
==Example==
<pre>{{5e Subrace List|Halfling}}</pre>
<pre>{{5e Subrace List|Halfling}}</pre>
Line 37: Line 44:
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>

Latest revision as of 19:34, 1 April 2024

Syntax[edit]

{{5e Subrace List|race}}}

Optional Fields[edit]

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

Example[edit]

{{5e Subrace List|Halfling}}

produces...


5 official and unofficial races.

Subrace Abilities Size
Change
Speed
Change
Darkvision
(if change)
Features Source Notes Source
Ghostwise Wisdom +1 Silent Speech Canon, Pointer Sword Coast Adventurer's Guide
Lightfoot Charisma +1 Naturally Stealthy Canon SRD-OGL v5.1
Longshanks Choice of one: Strength +1 Wisdom +1 Medium Stealthy, Longstride, Less Nimble, Racial Weapons Training User Creation Rlyehable
Lotusden Halfling Wisdom +1 Child of the Wood, Timberwalk Canon, Pointer Explorer's Guide to Wildemount
Stout Constitution +1 Stout Resilience Canon, Pointer Player's Handbook (5e)