Difference between revisions of "Templates"

From Epic Paths
Jump to navigation Jump to search
(Added the new Templates created for the Monster forms)
 
(50 intermediate revisions by the same user not shown)
Line 2: Line 2:


== Forms ==
== Forms ==
* [[Template:Equipment_Item]]
** [[Template:Equipment_Armor]]
** [[Template:Equipment_Weapon]]
* [[Template:Feat]]
* [[Template:Feat]]
*[[Template:Monster]]
** [[Template:Feat_Weapon_Training]]: Used for Weapon Training Feats. Styles "Benefit" field such that querying "Feats" table will still return a good result.
**[[Template:StandardAction]]
* [[Template:MagicItem]]
**[[Template:FullroundAction]]
* [[Template:Monster]]
**[[Template:MoveAction]]
**[[Template:SwiftAction]]
**[[Template:ImmediateAction]]
**[[Template:FreeAction]]
**[[Template:SpecialQualities]]
* [[Template:OGL_Entry]]: To define the entries for various OGL sources. Used in Template:OGL
* [[Template:OGL_Entry]]: To define the entries for various OGL sources. Used in Template:OGL


== Cargo Tables ==
== Cargo Tables ==
=== Equipment ===
* [[Template:Equipment Table]]: Displays an equipment-table filtered by main category and optionally subcategory.
* [[Template:EquipmentTable_Shop]]: Displays an equipment-table filtered by shop (possible multiple).
* [[Template:EquipmentCardList Category]]: Displays a grid of equipment descriptions filtered by main category and optionally subcategory.
** [[Template:EquipmentCardList Item]]: Used in above list.
* [[Template:ArmorsTable]]: Displays an equipment-table with armor stats filtered by armor type
* [[Template:WeaponsTable]]: Displays an equipment-table with weapon stats filtered by where clause
** [[Template:WeaponsTable Training]]: WeaponsTable filtered by training feat
** [[Template:WeaponsTable Type]]: WeaponsTable filtered by weapon type
=== Feats ===
=== Feats ===
* [[Template:FeatsTable Category]]: Displays a featlist-table filtered by main category.
* [[Template:FeatsTable Category]]: Displays a featlist-table filtered by main category.
Line 20: Line 28:


* [[Template:FeatsCardList Category]]: Displays a list of feat cards filtered by main category.
* [[Template:FeatsCardList Category]]: Displays a list of feat cards filtered by main category.
* [[Template:FeatsCardList Card]]: Used in the above lists.
* [[Template:FeatsCardList SubCategory]]: Displays a list of feat cards filtered by subcategory.
** [[Template:FeatsCardList Card]]: Used in the above lists.
 
=== Magic Items ===
* [[Template:MagicItemTable Type]]: Displays a magic items-table filtered by type of item.
* [[Template:MagicItemTable Slot]]: Displays a magic items-table of gear items filtered by slot.
* [[Template:MagicItemCardList Type]]: Displays a grid of magic item descriptions filtered by type.
* [[Template:MagicItemCardList Slot]]: Displays a grid of gear item magic item descriptions filtered by slot.
** [[Template:MagicItemCardList Item]]: Used in above lists.


=== Monsters ===
=== Monsters ===


* None Yet
* [[Template:MonsterAction]]: Used in Template:Monster as the template for displaying all the below information. Each template below directs directly to Template:MonsterAction.
** [[Template:StandardAction]]
** [[Template:FullroundAction]]
** [[Template:MoveAction]]
** [[Template:SwiftAction]]
** [[Template:ImmediateAction]]
** [[Template:FreeAction]]
** [[Template:SpecialQualities]]
** [[Template:Weaknesses]]
* [[Template:MonsterListLinks‎‎]]: Bulleted list of Monster Name, CR and XP, each linking to the monster's page
** [[Template:MonsterListLinksByRegion‎‎]]
* [[Template:MonsterListAbreviated‎‎]]: Grid of Monster Stat Blocks filtered by type, category or custom
** [[Template:MonsterListAbreviated‎‎ByRegion]]
* [[Template:MonsterListAbreviatedItem‎‎]]: Monster Stat Block for above grid
 
== Non-Cargo Data ==
* [[Template:Archetype]]: Formats the header information for an archetype
** [[Template:ArchetypeLevel]]: Formats the information for a level, primarily the small statistics table and <nowiki>[edit]</nowiki> link leading to the level subpage. ArchetypeLevel expects to be on a subpage ("/1st", "/2nd", etc) compared to the main Archetype.
*** [[Template:ArchetypeSection]]: Creates the 2-column design used to show a class ability: title, rules-column and example-column.
** Note that OGL is not part of any of the templates and needs to be added separately to the Archetype page.


== Layout ==
== Layout ==
Line 37: Line 72:
* [[Template:Grid]]: Used to order content into columns which dynamically reorganizes if the screen becomes too small. Also contains options for borders and background color.
* [[Template:Grid]]: Used to order content into columns which dynamically reorganizes if the screen becomes too small. Also contains options for borders and background color.


* [[Template:Break]]: Create a wikitext paragraph break (I.E. place where you want text to break to a new paragraph).
* [[Template:Hanging]]: All paragraphs within will have hanging text by 1em.
* [[Template:IfNotEmpty]]: Show a value if not empty, including pre and post-text.
* [[Template:KS]]: Keeping spacing returns given parameter.
*[[Template:UcWords]]: Capitalizes all words in the input (with some extra seperators beyond space)
=== InfoBox ===
* [[Template:InfoBox]]: Create a right-floating infobox
* [[Template:InfoBoxHeader]]: Create a header for an infobox
* [[Template:InfoBoxData]]: Create a data section for an infobox
=== Cards ===
* [[Template:Box]]: Creates a very simple box around some text, with adjustable border and background color.
* [[Template:OptionalBox]]: Creates a box styled for rules which depends on the gamestate (for instance character level).
* [[Template:SuccessFailureBox]]: Creates a box styled for showing success and failure on checks
* [[Template:Card]]: Creates a card with adjustable title, size and background color.
* [[Template:Card]]: Creates a card with adjustable title, size and background color.
* [[Template:AbilityCard]]: Creates a card styled to be used for Class Abilities.
** [[Template:AbilityCard]]: Creates a card styled to be used for Class Abilities.
* [[Template:ChoiceCard]]: Creates a card styled to be used for player choices.
** [[Template:ChoiceCard]]: Creates a card styled to be used for player choices.
* [[Template:HintCard]]: Creates a card styled to be used for hints, examples and tutorials.
** [[Template:HintCard]]: Creates a card styled to be used for hints, examples and tutorials.
* [[Template:ModifierCard]]: Creates a card styled to be used for Modifiers to Class Abilities.
** [[Template:ModifierCard]]: Creates a card styled to be used for Modifiers to Class Abilities.
 
** [[Template:ReactionCard]]: Creates a card styled to be used for Reaction Actions.
* [[Template:Break]]: Create a wikitext paragraph break (I.E. place where you want text to break to a new paragraph).
** [[Template:AdminNotes]]: Creates a card styled to show admin info. Should be updated at some point to be invisible to normal users.


== Navigation ==
== Navigation ==
* [[Template:Link]]: Formats a link to scrape structure from the visible link text.
* [[Template:Link]]: Formats a link to scrape structure from the visible link text.
* [[Template:link_feat]]: Links to a subpage of "Feats" .
* [[Template:link_cm]]: Links to headings of "Combat Maneuvers".
* [[Template:link_feat]]: Links to a subpage of "Feats".
* [[Template:link_item]]: Links to a subpage of "Equipment".
* [[Template:link_mi]]: Links to a subpage of "Magic Items".
* [[Template:link_mm]]: Links to headings of "Morale Maneuvers".
*[[Template:range]]: Creates a tip-text for a specific range, including a link to the range.
 
* [[Template:TipText_Immunity]]: Creates a tip-text for a specific immunity, including a link to the immunity.
 
== Mappers ==
* [[Template:Mapper_Age]]: Transform a year into an age category (and optionally year of birth)
*[[Template:Mapper_CR]]: Transforms an XP integer into a CR string
* [[Template:Mapper_Cost]]: Transforms an Gold Pieces float into a string of gp, sp or cp
 
=== Lists ===
* [[Template:Final_And]]: Maps a comma-separated list so the last comma is replaced with "and"
* [[Template:Space After Comma]]: Maps a comma-separated list so that each comma has one (and only one) space after it
 
== Values ==
 
* [[Template:Value Year]]: Contains the value of the current year. (remember to update)
 
== [[Tags]] ==
 
* Action Tags
** [[Template:TagStandard]]
** [[Template:TagMove]]
** [[Template:TagFullround]]
** [[Template:TagSwift]]
** [[Template:TagReaction]]
** [[Template:TagImmediate]]
** [[Template:TagFree]]
* Ability Score Tags
** [[Template:TagStr]]
** [[Template:TagDex]]
** [[Template:TagCon]]
** [[Template:TagInt]]
** [[Template:TagWis]]
** [[Template:TagCha]]
* Other Tags
** [[Template:TagDC]]: Shows what DC a task has.
** [[Template:TagSkill]]: Shows what skill a task uses.
** [[Template:TagComp]]: Marks an item as making the player Compromised.
** [[Template:TagMount]]: Item is used while mounted.
* Range
** [[Template:TagSelf]]: Marks an ability as having a range of "self"
** [[Template:TagTouch]]: Marks an ability as having a range of "touch"
 
== Logic ==
* If logic
** [[Template:IfAnd]]: Requires up to 5 variables to be non-empty.
** [[Template:IfEqAny]]: If input equals any of up to 6 variables.

Latest revision as of 18:57, 14 May 2022

Forms

Cargo Tables

Equipment

Feats

Magic Items

Monsters

Non-Cargo Data

  • Template:Archetype: Formats the header information for an archetype
    • Template:ArchetypeLevel: Formats the information for a level, primarily the small statistics table and [edit] link leading to the level subpage. ArchetypeLevel expects to be on a subpage ("/1st", "/2nd", etc) compared to the main Archetype.
    • Note that OGL is not part of any of the templates and needs to be added separately to the Archetype page.

Layout

  • Template:BreadCrumbs: Used to create a hierarchy path that floats right. Used on most pages.
  • Template:OGL: Shows the Open Gaming License for the Pathfinder RPG Core Rulebook, as well as any books included in the parameter
  • Template:TOC: Create a right-aligned Table of Contents. Can add extra variables.
  • Template:Heading: Create a heading without an edit-link.
  • Template:EditHeading: Create a heading with an edit-link which links to editing the entire page. Useful for headings inside a template, which would otherwise link to editing the template.
  • Template:Columns: Used to arrange a section of text into columns from 2 to 4.
  • Template:Grid: Used to order content into columns which dynamically reorganizes if the screen becomes too small. Also contains options for borders and background color.
  • Template:Break: Create a wikitext paragraph break (I.E. place where you want text to break to a new paragraph).
  • Template:Hanging: All paragraphs within will have hanging text by 1em.
  • Template:IfNotEmpty: Show a value if not empty, including pre and post-text.
  • Template:KS: Keeping spacing returns given parameter.
  • Template:UcWords: Capitalizes all words in the input (with some extra seperators beyond space)

InfoBox

Cards

Navigation

Mappers

Lists

Values

Tags

Logic