Templates: Difference between revisions

From Night's End
mNo edit summary
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:FlexCard]]: Using flex to make grid of cards. <code><nowiki>{{FlexCard|begin|card}}</nowiki></code> or <code><nowiki>{{FlexCard|begin|container}}</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: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>
* [[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>

Revision as of 19:07, 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:FlexCard: Using flex to make grid of cards. {{FlexCard|begin|card}} or {{FlexCard|begin|container}}
  • 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