Help:List of templates/archive: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created page with "{{NavWiki|help}}thumb|left|Illithid wisdom sent you here... This page serves as a quick reference for commonly-used templates on bg3.wiki. See Help:How to Contribute for general wiki editing tips, or click on a template to see its template page and documentation. More advanced template editors may also wish to view [https://bg3.wiki/wiki/Special:AllPages?namespace=10 All Pages in the Template Namespace]. {{TOC}} == Page creation templates...")
 
mNo edit summary
 
Line 9: Line 9:
Arguably the most important templates on the wiki, Page Creation Templates take your input to create full, pre-formatted pages for various aspects of the game. These templates also automate SEO meta tagging and page categorisation.
Arguably the most important templates on the wiki, Page Creation Templates take your input to create full, pre-formatted pages for various aspects of the game. These templates also automate SEO meta tagging and page categorisation.


* [[Template:ConditionPage]]: Generates a full page for a [[Conditions|Condition]]. Once created, the condition's data will then be queryable via [[Template:Condition]] (see the [[#Data Querying Templates|Data Querying Templates]] section).
* [[Template:Condition page]]: Generates a full page for a [[Conditions|Condition]]. Once created, the condition's data will then be queryable via [[Template:Condition]] (see the [[#Data Querying Templates|Data Querying Templates]] section).
* [[Template:EquipmentPage]]: Generates a full page for various types of non-weapon [[Equipment]], including Clothing, Light Armour, Medium Armour, Heavy Armour, Shields, Amulets, Boots, Cloaks, Gloves, Helmets, Rings, Camp Clothes, Camp Shoes, and Undergarments.
* [[Template:Equipment page]]: Generates a full page for various types of non-weapon [[Equipment]], including Clothing, Light Armour, Medium Armour, Heavy Armour, Shields, Amulets, Boots, Cloaks, Gloves, Helmets, Rings, Camp Clothes, Camp Shoes, and Undergarments.
* [[Template:MiscItemPage]]: Generates a full page for various [[Miscellaneous]] and [[Consumables|Consumable]] items, including Ammunition, Books, Food, Drinks, Potions, Scrolls, and Consumables. Useful for creating a page for an item that doesn't fit neatly into any other category.
* [[Template:Misc item page]]: Generates a full page for various [[Miscellaneous]] and [[Consumables|Consumable]] items, including Ammunition, Books, Food, Drinks, Potions, Scrolls, and Consumables. Useful for creating a page for an item that doesn't fit neatly into any other category.
* [[Template:SpellPage]]: Generates a full page for any [[Spells|Spell]]. This template includes multiple parameters capable of automatically parsing and formatting comma-separated lists.
* [[Template:Spell page]]: Generates a full page for any [[Spells|Spell]]. This template includes multiple parameters capable of automatically parsing and formatting comma-separated lists.
* [[Template:WeaponActionPage]]: Generates a full page for any [[Weapon Actions|Weapon Action]], such as [[Backbreaker (Weapon Action)]]. Like the Condition template, this integrates with the Cargo extension.
* [[Template:Weapon action page]]: Generates a full page for any [[Weapon Actions|Weapon Action]], such as [[Backbreaker (Weapon Action)]]. Like the Condition template, this integrates with the Cargo extension.
* [[Template:WeaponPage]]: Generates a full page for any individual [[Weapons|Weapon]], such as [[Worgfang]].
* [[Template:Weapon page]]: Generates a full page for any individual [[Weapons|Weapon]], such as [[Worgfang]].
* [[Template:WeaponTypePage]]: Generates a full page for a [[:Category:Weapon Types|Weapon Type]], such as [[Daggers]].
* [[Template:Weapon type page]]: Generates a full page for a [[:Category:Weapon Types|Weapon Type]], such as [[Daggers]].


== Data querying templates ==
== Data querying templates ==
Line 21: Line 21:


* [[Template:Condition]]: Queries the Conditions table for any single condition you specify by name, and outputs pre-formatted data for that condition.
* [[Template:Condition]]: Queries the Conditions table for any single condition you specify by name, and outputs pre-formatted data for that condition.
* [[Template:WeaponAction]]: Queries the Weapon Actions table for any single weapon action you specify by name, and outputs pre-formatted data for that weapon action.
* [[Template:Weapon action]]: Queries the Weapon Actions table for any single weapon action you specify by name, and outputs pre-formatted data for that weapon action.


== Inline templates ==
== Inline templates ==
Line 36: Line 36:
* [[Template:Color]]: A simple template for changing the colour of some text.
* [[Template:Color]]: A simple template for changing the colour of some text.
* [[Template:Concentration]]: Inserts a link to the Concentration page and the Concentration icon.
* [[Template:Concentration]]: Inserts a link to the Concentration page and the Concentration icon.
* [[Temmplate:Cond]]: Inserts an icon and link to a [[Condition]].
* [[Template:Cond]]: Inserts an icon and link to a [[Condition]].
* [[Template:Coords]]: Inserts pre-formatted X and Y coordinates for use with the ingame map.
* [[Template:Coords]]: Inserts pre-formatted X and Y coordinates for use with the ingame map.
* [[Template:DamageColor]]: A simple template for changing some text to match the colour for the specified damage type.
* [[Template:DamageColor]]: A simple template for changing some text to match the colour for the specified damage type.

Latest revision as of 01:07, 27 April 2024

Illithid wisdom sent you here...

This page serves as a quick reference for commonly-used templates on bg3.wiki.

See Help:How to Contribute for general wiki editing tips, or click on a template to see its template page and documentation.

More advanced template editors may also wish to view All Pages in the Template Namespace.

Page creation templates[edit | edit source]

Arguably the most important templates on the wiki, Page Creation Templates take your input to create full, pre-formatted pages for various aspects of the game. These templates also automate SEO meta tagging and page categorisation.

Data querying templates[edit | edit source]

These templates automate data queries for the Cargo wiki extension, allowing you to quickly assemble and insert helpful data.

  • Template:Condition: Queries the Conditions table for any single condition you specify by name, and outputs pre-formatted data for that condition.
  • Template:Weapon action: Queries the Weapon Actions table for any single weapon action you specify by name, and outputs pre-formatted data for that weapon action.

Inline templates[edit | edit source]

These templates insert inline content - often an icon and link to the relevant page - to provide additional flair and visual consistency. Nearly all of these templates are invoked by other, larger templates automatically.

Navigational templates[edit | edit source]

These templates assist wiki readers in navigating to related pages.

Other templates[edit | edit source]

These templates each have unique aspects or use cases that make them different from other templates.

  • Template:AttributeBlock: Generates an attribute block for a creature. While it can be used on its own, this template is also automatically invoked and handled by other templates, such as Template:CharacterInfo.
  • Template:Cite web: Inserts citation with an external url and possibly archive.
  • Template:Cw: Inserts a content warning for sensitive content.
  • Template:Anchor: Inserts a page anchor to allow for linking to a specific part of a page, for cases in which a heading would not be stylistically appropriate.
  • Template:DamageInfo: A more robust, non-inline-friendly version of the DamageText template. Inserts colour-coded damage info and the icon for the specified damage type. Invoked extensively by Page Creation Templates.
  • Template:Hatnote: Creates a "hatnote", an indented and italicized note at the top of a page. Hatnotes are useful for "see also" or "do you mean...?"-type messages.
  • Template:HealingInfo: Like DamageInfo, but for effects that heal hit points.
  • Template:Div col: Used to arrange a set of bullets in 'newspaper-style' columns, making better use of horizontal space on a page.
  • Template:ImageLink: Inserts icons with text below, both linking to a specified page.
  • Template:InfoBlob: Displays a small piece of information a nicely-styled blob in a monospace font. Note: Always inserts a new line before the infoblob; not suitable for inline usage.
  • Template:MatureWarning: Inserts a mature content warning with the mature content collapsed by default. Please do still adhere to the Wiki Content Rules.
  • Template:Quote: Inserts a pre-formatted quote. Used extensively for character quotes, class descriptions, and item 'flavour text.'
  • Template:PageSeo: Applies meta tags to the page for Google SEO (most commonly, the "image" and "description" tags). These meta tags are also referenced when linking to a bg3.wiki page on social media sites and Discord. Note: Page Creation Templates automatically handle this functionality, but any page created without a page creation template should also manually invoke this template.
  • Template:Resistances: Inserts a pre-formatted table of resistances, vulnerabilites, and/or immunities.
  • Template:SpoilerBox: Inserts a spoiler warning with the spoilery content collapsed by default.
  • Template:SpoilerWarning: Inserts a generic spoiler warning for the contents of a page or page section.
  • Template:TOC: Inserts the page's Table of Contents. Can be used to override the default TOC placement or limit the depth of header links included in the TOC.
  • Template:UnderConstruction: Inserts an 'Under Construction' notice for in-progress pages, stub pages, and incomplete sections.