Actions

Difference between revisions of "Templates"

From P6 Spheres

(Layout)
 
(5 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
== FormItems ==
 
== FormItems ==
  
=== Equipment ===
+
==== Equipment ====
 
* [[Template:BaseItemList]]: Creates a list of tables for the desired category, each tables containing the items of one subcategory.
 
* [[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_Table]]: Used by Template:BaseItemList.
Line 26: Line 26:
 
* [[Template:WeaponsLists_For_RangeTypeAndHands]]: Used by Template:WeaponsLists_For_RangeType to create the subtables for light, one-handed, two-handed.
 
* [[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.
 
* [[Template:FeatsTable SubCategory]]: Displays a featlist-table filtered by subcategory.
 +
* [[Template:FeatsTable Keyword]]: Displays a featlist-table filtered by keyword.
  
== Other Items ==
+
== Non-Form Items ==
 +
 
 +
==== Classes ====
 
* [[Template:Class]]: Used to layout character classes.
 
* [[Template:Class]]: Used to layout character classes.
 
* [[Template:ClassSection]]: Creates an class feature section on a class page.
 
* [[Template:ClassSection]]: Creates an class feature section on a class page.
Line 55: Line 58:
 
* [[Template:Flex]]: Used by Template:BaseItemList_ItemCard to create a nice card graphic, which also floats the cards into x columns.
 
* [[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:FlexContainer]]: Template:Flex instances do not work unless contained in a FlexContainer.
 +
 +
* [[Template:Card]]: Creates a card with adjustable title, size and background color.
 +
* [[Template:ChoiceCard]]: Creates a card styled to be used for player choices.
 +
* [[Template:AbilityCard]]: Creates a card styled to be used for Class Abilities.
 +
* [[Template:ModifierCard]]: Creates a card styled to be used for Modifiers to Class Abilities.
  
 
* [[Template:Break]]: Create a wikitext paragraph break (I.E. place where you want text to break to a new paragraph).
 
* [[Template:Break]]: Create a wikitext paragraph break (I.E. place where you want text to break to a new paragraph).
 +
* [[Template:Lcwords]]: Transforms a string to all lower-case.
 
* [[Template:Ucwords]]: Transforms a string to all upper-case words.
 
* [[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:IfAnd]]: Check whether both variables are nonempty, and if true display the result.

Latest revision as of 12:36, 9 May 2021

Forms

FormItems

Equipment

Feats

Non-Form Items

Classes

Mapping

Layout

  • Template:BreadCrumbs: Used to create a hierarchy path that floats right. Used on most pages.
  • 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: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:Lcwords: Transforms a string to all lower-case.
  • 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.