Here's a quick primer on setting up the new spell pages so they show up in the spell lists correctly.
Special Code
Content Sections
Each ==== splits the page into different content sections.
The Spell List pages read certain sections to populate the different columns: school, level, etc. The list of content sections, their order, and whether they're used by any spell list is below.
Later content sections are a repeat of information given earlier in the Spell Details section, unfortunately the current format of the spell pages don't give a good way to utilize the earlier information for this purpose, so it was duplicated later on the page.
====
[[module...
... Spell Details ...
====
[[include...
====
//Evocation//
====
Cantrip
====
1 Action
====
120 Feet
====
Instantaneous
====
V, S
====
[[include...
Content Section | Information | Used in Spell List |
---|---|---|
1 | Empty | N |
2 | Spell Detail | N |
3 | Hide Content Include Begin | N |
4 | Spell School | Y |
5 | Spell Level | Y |
6 | Casting Time | Y |
7 | Range | Y |
8 | Duration | Y |
9 | Components | Y |
10 | Hide Content Include End | N |
Special Formatting
Formatting is used to denote certain special properties of spells, such as Ritual R under Casting Time, or Dunamancy D under Spell School. Superscript is added using ^^ around the desired text.
Hiding Tags
The module hides the tags on the page from the users, not entirely necessary, but the pages look cleaner if the tags aren't visible.
[[module css]]
.page-tags {
display: none;
}
[[/module]]
Hiding Content
These include statements hide anything in between them from showing up on the page. This was used to hide the duplicate information used by the spell lists.
You can actually specify certain users to show these sections to, but I don't have a list of people who have edit permissions on the site, so it's just hidden from everyone.
[[include :snippets:suo BEGIN CODE |unique=first |type=showto]]
...
[[include :snippets:suo END CODE]]
Tags
Each spell list shows pages with a specific set of tags; the Artificer Cantrip list shows any spells with the artificer and cantrip tags. Click on the Tags button at the bottom of the page, and it will pull a text box where you can enter them. Below is the list of tags the spell lists are set up to take advantage of.
Type | Tag |
---|---|
Class | Artificer, Bard, Cleric, Druid, Paladin, Ranger, Sorcerer, Warlock, Wizard |
Level | Cantrip, First, Second, Third, Fourth, Fifth, Sixth, Seventh, Eighth, Ninth |
School | Abjuraion, Conjuration, Divination, Enchantment, Evocation, Illusion, Necromancy, Transmutation |
Special | Ritual, Dunamancy, Technomagic |
Each Tag that applies needs to be entered, separated by a space.