Template:5e Subclass List: Difference between revisions

From Rlyehwiki
Jump to navigation Jump to search
(Created page with "<includeonly>{| class="zebra sortable small" !Subclass !Summary !Features !Flags !License !Source |- {{#cargo_query: tables=5e_Subclass, Pages_Info |join on=5e_Subclass._pageN...")
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| class="zebra sortable small"
<includeonly><div style="display:block; overflow:auto; max-width: 90vw; max-height:90vh;">{{#cargo_query:
tables=5e_Subclass, Pages_Info
|join on=5e_Subclass._pageName=Pages_Info._pageName
|where=5e_Subclass.Class_Name HOLDS '{{{1|}}}'
|fields=COUNT(5e_Subclass._pageName)
}} subclasses.
{| class="zebra sortable small"
!Subclass
!Subclass
!Summary
!Summary
Line 10: 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=5e_Subclass.Class_Name='{{{1|}}}' {{#if: {{{showhidden|}}}|<!--skip-->|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
|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 21: Line 28:
==Syntax==
==Syntax==
<pre>{{5e Subclass List|className}}</pre>
<pre>{{5e Subclass List|className}}</pre>
===Add'l Entries===
<pre>
|showhidden=<!-- blank, true will show hidden. Admin only-->
|showdeprecated=<!-- blank, true will show deprecated. Admin only-->
</pre>


==Example==
==Example==
<pre>{{5e Subclass List|Barbarian}}</pre>
<pre>{{5e Subclass List|Artificer}}</pre>


produces...
produces...


{{5e Subclass List|Barbarian}}
{{5e Subclass List|Artificer}}


[[Category:5e Templates]]
[[Category:5e Templates]]
[[Category:5e Subclasses]]
[[Category:5e Subclasses]]
</noinclude>
</noinclude>

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