Difference between revisions of "Templates"
Jump to navigation
Jump to search
(20 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
== Forms == | == Forms == | ||
* [[Template:Equipment_Item]] | * [[Template:Equipment_Item]] | ||
** [[Template:Equipment_Armor]] | |||
** [[Template:Equipment_Weapon]] | ** [[Template:Equipment_Weapon]] | ||
* [[Template:Feat]] | * [[Template:Feat]] | ||
** [[Template:Feat_Weapon_Training]]: Used for Weapon Training Feats. Styles "Benefit" field such that querying "Feats" table will still return a good result. | ** [[Template:Feat_Weapon_Training]]: Used for Weapon Training Feats. Styles "Benefit" field such that querying "Feats" table will still return a good result. | ||
* [[Template:MagicItem]] | |||
* [[Template:Monster]] | * [[Template:Monster]] | ||
* [[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 | ||
Line 16: | Line 18: | ||
** [[Template:EquipmentCardList Item]]: Used in above list. | ** [[Template:EquipmentCardList Item]]: Used in above list. | ||
* [[Template:ArmorsTable]]: Displays an equipment-table with armor stats filtered by armor type | * [[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]]: Displays an equipment-table with weapon stats filtered by where clause | ||
** [[Template:WeaponsTable Training]]: WeaponsTable filtered by training feat | ** [[Template:WeaponsTable Training]]: WeaponsTable filtered by training feat | ||
Line 27: | 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 SubCategory]]: Displays a list of feat cards filtered by subcategory. | |||
** [[Template:FeatsCardList Card]]: Used in the above lists. | ** [[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 === | ||
Line 41: | Line 50: | ||
** [[Template:Weaknesses]] | ** [[Template:Weaknesses]] | ||
* [[Template:MonsterListLinks]]: Bulleted list of Monster Name, CR and XP, each linking to the monster's page | * [[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]]: Grid of Monster Stat Blocks filtered by type, category or custom | ||
** [[Template:MonsterListAbreviatedByRegion]] | |||
* [[Template:MonsterListAbreviatedItem]]: Monster Stat Block for above grid | * [[Template:MonsterListAbreviatedItem]]: Monster Stat Block for above grid | ||
Line 64: | Line 75: | ||
* [[Template:Hanging]]: All paragraphs within will have hanging text by 1em. | * [[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: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) | *[[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 === | === Cards === | ||
* [[Template:Box]]: Creates a very simple box around some text, with adjustable border and background color. | * [[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: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. | ||
Line 82: | Line 101: | ||
* [[Template:link_feat]]: Links to a subpage of "Feats". | * [[Template:link_feat]]: Links to a subpage of "Feats". | ||
* [[Template:link_item]]: Links to a subpage of "Equipment". | * [[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 == | == 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:Final_And]]: Maps a comma-separated list so the last comma is replaced with "and" | ||
* [[Template: | * [[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]] == | == [[Tags]] == | ||
Line 110: | Line 142: | ||
** [[Template:TagComp]]: Marks an item as making the player Compromised. | ** [[Template:TagComp]]: Marks an item as making the player Compromised. | ||
** [[Template:TagMount]]: Item is used while mounted. | ** [[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
- Template:Equipment_Item
- Template:Feat
- Template:Feat_Weapon_Training: Used for Weapon Training Feats. Styles "Benefit" field such that querying "Feats" table will still return a good result.
- Template:MagicItem
- Template:Monster
- Template:OGL_Entry: To define the entries for various OGL sources. Used in Template:OGL
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
- Template:FeatsTable Category: Displays a featlist-table filtered by main category.
- Template:FeatsTable SubCategory: Displays a featlist-table filtered by subcategory.
- Template:FeatsTable Keyword: Displays a featlist-table filtered by keyword.
- Template:FeatsCardList Category: Displays a list of feat cards filtered by main category.
- 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
- Template:MonsterAction: Used in Template:Monster as the template for displaying all the below information. Each template below directs directly to Template:MonsterAction.
- Template:MonsterListLinks: Bulleted list of Monster Name, CR and XP, each linking to the monster's page
- Template:MonsterListAbreviated: Grid of Monster Stat Blocks filtered by type, category or custom
- 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 [edit] 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.
- 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.
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
- 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:AbilityCard: Creates a card styled to be used for Class Abilities.
- 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: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:AdminNotes: Creates a card styled to show admin info. Should be updated at some point to be invisible to normal users.
- Template:Link: Formats a link to scrape structure from the visible link text.
- 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
- Ability Score Tags
- 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.