Difference between revisions of "Templates"
From P6 Spheres
(Created page with "== FormItems == === Equipment === * Template:ArmorsLists: Creates an armor table, containing the armors pulled with the provided where string === Feats ===") |
|||
| Line 1: | Line 1: | ||
| + | == Forms == | ||
| + | * [[Template:Feat]] | ||
| + | |||
| + | * [[Template:Item]] | ||
| + | * [[Template:Item_Armor]] | ||
| + | * [[Template:Item_Weapon]] | ||
| + | * [[Template:Equipment_Type]]: Category of item, used to order items into different pages and tables. | ||
| + | |||
| + | * [[Template:OGL_Entry]]: To define the entries for various OGL sources. Used in Template:OGL | ||
| + | |||
== FormItems == | == FormItems == | ||
=== Equipment === | === Equipment === | ||
| − | * [[Template:ArmorsLists]]: Creates an armor table, containing the armors pulled with the provided where string | + | * [[Template:BaseItemList]]: Creates a list of tables for the desired category, each tables containing the items of one subcategory. |
| + | * [[Template:BaseItemList_SubCategory_Table]]: Used by Template:BaseItemList. | ||
| + | |||
| + | * [[Template:BaseItemList_SubCategory_Bullets]]: Cargoquery template which displays results as a bullet-list. | ||
| + | * [[Template:BaseItemList_SubCategory_Cards]]: Cargoquery template which displays results as BaseItemList_ItemCard. | ||
| + | * [[Template:BaseItemList_ItemCard]]: Show a Base_Item as a card, used by Template:BaseItemList_SubCategory_Cards. | ||
| + | |||
| + | * [[Template:ArmorsLists]]: Creates an armor table, containing the armors pulled with the provided where string. | ||
| + | * [[Template:WeaponsLists]]: Creates a weapons table, containing the weapons pulled with the provided where string. | ||
| + | * [[Template:WeaponsLists_For_RangeType]]: Creates a weapons table for a specific RangeType (melee, ranged, ammunition, misc). | ||
| + | * [[Template:WeaponsLists_For_RangeTypeAndHands]]: Used by Template:WeaponsLists_For_RangeType to create the subtables for light, one-handed, two-handed. | ||
=== Feats === | === Feats === | ||
| + | * [[Template:FeatsTable SubCategory]]: Displays a featlist-table filtered by subcategory. | ||
| + | |||
| + | == Other Items == | ||
| + | * [[Template:Class]]: Used to layout character classes. | ||
| + | * [[Template:ClassSection]]: Creates an class feature section on a class page. | ||
| + | * [[Template:ClassSectionTableMagic]]: Create the level-statistics table for a magic-using character class. | ||
| + | * [[Template:ClassSectionTableMartial]]: Create the level-statistics table for a mundane character class. | ||
| + | |||
| + | == Mapping == | ||
| + | * [[Template:Item_Weapon_DamageType]]: Replaces letters according to the following schema. | ||
| + | * [[Template:MapBonus]]: Returns String where int has been converted to a nice +/- score. | ||
| + | * [[Template:MapCraftPriceCommon]]: Returns float where the input has been divided by 3. | ||
| + | * [[Template:MapCraftPriceMagic]]: Returns float where the input has been divided by 2. | ||
| + | * [[Template:MapPrice]]: Returns String where float has been converted to a price. 3.3 = 3 gp, 3 sp. 2500.0 = 2,500 gp | ||
| + | * [[Template:MapWeight]]: Returns String where float has been converted to a nice weight in pounds. | ||
| + | |||
| + | == Layout == | ||
| + | * [[Template:BreadCrumbs]]: Used to create a hierarchy path that floats right. Used on most pages. | ||
| + | * [[Template:TOC]]: Define that a Table of Contents should be placed, and where. | ||
| + | |||
| + | * [[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:OGL]]: Shows the Open Gaming License for the Pathfinder RPG Core Rulebook, as well as any books included in the parameter | ||
| + | |||
| + | * [[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:Flex]]: Used by Template:BaseItemList_ItemCard to create a nice card graphic, which also floats the cards into x columns. | ||
| + | * [[Template:FlexContainer]]: Template:Flex instances do not work unless contained in a FlexContainer. | ||
| + | |||
| + | * [[Template:Break]]: Create a wikitext paragraph break (I.E. place where you want text to break to a new paragraph). | ||
| + | * [[Template:Ucwords]]: Transforms a string to all upper-case words. | ||
| + | * [[Template:IfAnd]]: Check whether both variables are nonempty, and if true display the result. | ||
| + | |||
| + | == Navigation == | ||
| + | * [[Template:Link]]: Formats a link to scrape structure from the visible link text. | ||
| + | |||
| + | * [[Template:Link_Equipment]]: Links to an item in the Equipment/ namespace, and capitalizes all words in the input. | ||
| + | * [[Template:LinkEquipment]]: Not Used? | ||
Revision as of 22:59, 6 May 2021
Forms
- Template:Item
- Template:Item_Armor
- Template:Item_Weapon
- Template:Equipment_Type: Category of item, used to order items into different pages and tables.
- Template:OGL_Entry: To define the entries for various OGL sources. Used in Template:OGL
FormItems
Equipment
- Template:BaseItemList: Creates a list of tables for the desired category, each tables containing the items of one subcategory.
- Template:BaseItemList_SubCategory_Table: Used by Template:BaseItemList.
- Template:BaseItemList_SubCategory_Bullets: Cargoquery template which displays results as a bullet-list.
- Template:BaseItemList_SubCategory_Cards: Cargoquery template which displays results as BaseItemList_ItemCard.
- Template:BaseItemList_ItemCard: Show a Base_Item as a card, used by Template:BaseItemList_SubCategory_Cards.
- Template:ArmorsLists: Creates an armor table, containing the armors pulled with the provided where string.
- Template:WeaponsLists: Creates a weapons table, containing the weapons pulled with the provided where string.
- Template:WeaponsLists_For_RangeType: Creates a weapons table for a specific RangeType (melee, ranged, ammunition, misc).
- Template:WeaponsLists_For_RangeTypeAndHands: Used by Template:WeaponsLists_For_RangeType to create the subtables for light, one-handed, two-handed.
Feats
- Template:FeatsTable SubCategory: Displays a featlist-table filtered by subcategory.
Other Items
- Template:Class: Used to layout character classes.
- Template:ClassSection: Creates an class feature section on a class page.
- Template:ClassSectionTableMagic: Create the level-statistics table for a magic-using character class.
- Template:ClassSectionTableMartial: Create the level-statistics table for a mundane character class.
Mapping
- Template:Item_Weapon_DamageType: Replaces letters according to the following schema.
- Template:MapBonus: Returns String where int has been converted to a nice +/- score.
- Template:MapCraftPriceCommon: Returns float where the input has been divided by 3.
- Template:MapCraftPriceMagic: Returns float where the input has been divided by 2.
- Template:MapPrice: Returns String where float has been converted to a price. 3.3 = 3 gp, 3 sp. 2500.0 = 2,500 gp
- Template:MapWeight: Returns String where float has been converted to a nice weight in pounds.
Layout
- Template:BreadCrumbs: Used to create a hierarchy path that floats right. Used on most pages.
- Template:TOC: Define that a Table of Contents should be placed, and where.
- 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:OGL: Shows the Open Gaming License for the Pathfinder RPG Core Rulebook, as well as any books included in the parameter
- 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:Flex: Used by Template:BaseItemList_ItemCard to create a nice card graphic, which also floats the cards into x columns.
- Template:FlexContainer: Template:Flex instances do not work unless contained in a FlexContainer.
- Template:Break: Create a wikitext paragraph break (I.E. place where you want text to break to a new paragraph).
- Template:Ucwords: Transforms a string to all upper-case words.
- Template:IfAnd: Check whether both variables are nonempty, and if true display the result.
- Template:Link: Formats a link to scrape structure from the visible link text.
- Template:Link_Equipment: Links to an item in the Equipment/ namespace, and capitalizes all words in the input.
- Template:LinkEquipment: Not Used?