Actions

Difference between revisions of "Templates"

From P6 Spheres

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.
  
 
== Non-Form Items ==
 
== Non-Form Items ==
  
=== Classes ===
+
==== 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.

Revision as of 23:02, 6 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: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.