Templates: Difference between revisions

From Night's End
(Created page with "== Modules == === Layout === * Module:Columns: Mark sections of text with column-count css. <code><nowiki>{{#invoke:Columns|begin}}</nowiki></code> * Module:Grid: Wrap sections of text in floating boxes. <code><nowiki>{{#invoke:Grid|begin}}</nowiki></code> == Templates == === Styling === * Template:DataCard: Non-floating Box graphic. Can contain an optional title. <code><nowiki>{{DataCard|Title|Body}}</nowiki></code> ==== Cargo Cards ==== * Template:Anc...")
 
mNo edit summary
Line 9: Line 9:
=== Styling ===
=== Styling ===
* [[Template:DataCard]]: Non-floating Box graphic. Can contain an optional title. <code><nowiki>{{DataCard|Title|Body}}</nowiki></code>
* [[Template:DataCard]]: Non-floating Box graphic. Can contain an optional title. <code><nowiki>{{DataCard|Title|Body}}</nowiki></code>
* [[Template:InfoBoxRow]]: Create a row for an infobox. Checks whether the row exists, and adds it if it does. <code><nowiki>{{InfoBoxRow|Param|Title}}</nowiki></code>
* [[Template:InfoBoxRowList]]:  Create a list for an infobox. Checks whether the list exists, and adds it if it does. <code><nowiki>{{InfoBoxRow|Param|Title|Makes entries links|Makes a comma-separated list rather than newline-separated}}</nowiki></code>


==== Cargo Cards ====
==== Cargo Cards ====
* [[Template:AncestryCard]]: DataCard for an ancestry. <code><nowiki>{{AncestryCard|The Old Lands Dwarves}}</nowiki></code>
* [[Template:AncestryCard]]: DataCard for an ancestry. <code><nowiki>{{AncestryCard|The Old Lands Dwarves}}</nowiki></code>
* [[Template:ClassCard]]: DataCard for a ckass. <code><nowiki>{{ClassCard|Name=|Short=}}</nowiki></code>
=== Cargo ===
* [[Template:Ancestry]]: Used for [[Form:Ancestry]]
* [[Template:Class]]: Used for [[Form:Class]]
* [[Template:Deity]]: Used for [[Form:Deity]]
* [[Template:District]]: Used by [[Template:Ward]]/[[Form:Ward]] for ward districts.
* [[Template:Equipment Item]]: Used for [[Form:Equipment Item]]
* [[Template:Equipment Traits]]: Used by [[Template:Equipment Item]]/[[Template:Equipment Weapon]]/[[Form:Equipment Item]] for item traits.
* [[Template:Equipment Weapon]]: Used for [[Form:Equipment Weapon]]
* [[Template:Organization]]: Used for [[Form:Organization]]
* [[Template:Person]]: Used for [[Form:Person]]
* [[Template:Session]]: Used for [[Form:Session]]
* [[Template:Settlement]]: Used for [[Form:Settlement]]
* [[Template:Ward]]: Used for [[Form:Ward]]

Revision as of 16:47, 16 June 2023

Modules

Layout

  • Module:Columns: Mark sections of text with column-count css. {{#invoke:Columns|begin}}
  • Module:Grid: Wrap sections of text in floating boxes. {{#invoke:Grid|begin}}

Templates

Styling

  • Template:DataCard: Non-floating Box graphic. Can contain an optional title. {{DataCard|Title|Body}}
  • Template:InfoBoxRow: Create a row for an infobox. Checks whether the row exists, and adds it if it does. {{InfoBoxRow|Param|Title}}
  • Template:InfoBoxRowList: Create a list for an infobox. Checks whether the list exists, and adds it if it does. {{InfoBoxRow|Param|Title|Makes entries links|Makes a comma-separated list rather than newline-separated}}

Cargo Cards

Cargo