Template:5e Subclass List: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#cargo_query:
<includeonly><div style="display:block; overflow:auto; max-width: 90vw; max-height:90vh;">{{#cargo_query:
tables=5e_Subclass, Pages_Info
tables=5e_Subclass, Pages_Info
|join on=5e_Subclass._pageName=Pages_Info._pageName
|join on=5e_Subclass._pageName=Pages_Info._pageName
|where={{#if: {{{showhidden|}}}|5e_Subclass.Class_Name='{{{1|}}}' AND (Pages_Info.Pointer=0 OR Pages_Info.Pointer IS NULL)|5e_Subclass.Class_Name='{{{1|}}}' AND (Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)}}
|where=5e_Subclass.Class_Name HOLDS '{{{1|}}}'
|fields=COUNT(5e_Subclass._pageName)
|fields=COUNT(5e_Subclass._pageName)
}} subclasses.
}} subclasses.
Line 16: Line 16:
tables=5e_Subclass, Pages_Info
tables=5e_Subclass, Pages_Info
|join on=5e_Subclass._pageName=Pages_Info._pageName
|join on=5e_Subclass._pageName=Pages_Info._pageName
|where={{#if: {{{showhidden|}}}|5e_Subclass.Class_Name='{{{1|}}}' AND (Pages_Info.Pointer=0 OR Pages_Info.Pointer IS NULL)|5e_Subclass.Class_Name='{{{1|}}}' AND (Pages_Info.Hidden=0 OR Pages_Info.Hidden IS NULL)}}
|where=5e_Subclass.Class_Name HOLDS '{{{1|}}}'|<!--no deprecated-->5e_Subclass.Class_Name HOLDS '{{{1|}}}'
|fields=5e_Subclass._pageName,5e_Subclass.Subclass_Name,5e_Subclass.Subclass_Summary,5e_Subclass.Subclass_Features,Pages_Info.Sources,Pages_Info.Licenses,Pages_Info.Canon,Pages_Info.Pointer,Pages_Info.User,Pages_Info.UA,Pages_Info.Hidden
|fields=5e_Subclass._pageName,5e_Subclass.Subclass_Name,5e_Subclass.Subclass_Summary,5e_Subclass.Subclass_Features,Pages_Info.Sources,Pages_Info.Licenses,Pages_Info.Canon,Pages_Info.Pointer,Pages_Info.User,Pages_Info.UA
|order by=5e_Subclass.Sort_Text
|order by=5e_Subclass.Sort_Text
|format=template
|format=template
|template=5e Subclass Row
|template=5e Subclass Row
}}
}}
|}</includeonly><noinclude>
|}</div></includeonly><noinclude>
==Use==
==Use==
Generates a table showing the subclasses for a {{srd5lc|Class}}.
Generates a table showing the subclasses for a {{srd5lc|Class}}.
Line 29: Line 29:
<pre>{{5e Subclass List|className}}</pre>
<pre>{{5e Subclass List|className}}</pre>
===Add'l Entries===
===Add'l Entries===
<pre>|showhidden=<!-- blank, true will show hidden. Admin only --></pre>
<pre>
|showhidden=<!-- blank, true will show hidden. Admin only-->
|showdeprecated=<!-- blank, true will show deprecated. Admin only-->
</pre>


==Example==
==Example==

Latest revision as of 11:51, 23 May 2023

Use

Generates a table showing the subclasses for a class.

Syntax

{{5e Subclass List|className}}

Add'l Entries

|showhidden=<!-- blank, true will show hidden. Admin only-->
|showdeprecated=<!-- blank, true will show deprecated. Admin only-->

Example

{{5e Subclass List|Artificer}}

produces...

5 subclasses.
Subclass Summary Features Flags License Source
Alchemist Artificer that specializes in the use of chemicals and materials. Tool Proficiency, Alchemist Spells, Alchemical Savant, Experimental Elixir, Restorative Reagents, Chemical Mastery Canon, Pointer Fair Use Eberron Rising from the Last War
Armorer These artificers specialize in armor and protection. Tools of the Trade, Armorer Spells, Arcane Armor, Armor Model, Extra Attack, Armor Modifications, Perfected Armor Canon, Pointer Fair Use Tasha's Cauldron of Everything
Artillerist Artificer that specializes in explosives, defenses, and sidearms. Tool Proficiency, Artillerist Spells, Eldritch Cannon, Arcane Firearm, Explosive Cannon, Fortified Position Canon, Pointer Fair Use Eberron Rising from the Last War
Battle Smith Artificer that specializes in protection and healing. Tool Proficiency, Battle Smith Spells, Battle Ready, Steel Defender, Extra Attack, Arcane Jolt, Improved Defender Canon, Pointer Fair Use Eberron Rising from the Last War
Nightstalker Artifice Vampire Hunter, Witch Hunter, Dragon Hunter, Ghost Hunter Enmity, Esoteric Knowledge, Nightstalker Magic, Construct Scout, Extra Attack, Iron Resolve, Turn Creatures of Enmity, Additional Scout User Creation CC-BY-SA Rlyehable