Category:Page generating templates: Difference between revisions

From Baldur's Gate 3 Wiki
Jump to navigation Jump to search
(Created page with "These templates generate entire pages. They also frequently declare a [https://www.mediawiki.org/wiki/Extension:Cargo Cargo] table (in the template page itself, via noinclude) and populate it with data (when invoked, via includeonly) so one can later query the info defined through uses of the template. See e.g. how Template:WeaponPage declares Special:CargoTables/weapons and populates it with data, and how Template:WeaponTypePage then uses a Cargo query to...")
 
m (Sky moved page Category:Page Generating Templates to Category:Page generating templates without leaving a redirect: Fix category name)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:


See e.g. how [[Template:WeaponPage]] declares [[Special:CargoTables/weapons]] and populates it with data, and how [[Template:WeaponTypePage]] then uses a Cargo query to auto-generate a table of weapons of the given type.  (Also, [[Template:WeaponTypePage]] declares [[Special:CargoTables/weapon_types]] but that one isn't actually queried anywhere as of the day I'm writing this.)
See e.g. how [[Template:WeaponPage]] declares [[Special:CargoTables/weapons]] and populates it with data, and how [[Template:WeaponTypePage]] then uses a Cargo query to auto-generate a table of weapons of the given type.  (Also, [[Template:WeaponTypePage]] declares [[Special:CargoTables/weapon_types]] but that one isn't actually queried anywhere as of the day I'm writing this.)
[[Category:Templates]]

Latest revision as of 16:25, 10 October 2023

These templates generate entire pages. They also frequently declare a Cargo table (in the template page itself, via noinclude) and populate it with data (when invoked, via includeonly) so one can later query the info defined through uses of the template.

See e.g. how Template:WeaponPage declares Special:CargoTables/weapons and populates it with data, and how Template:WeaponTypePage then uses a Cargo query to auto-generate a table of weapons of the given type. (Also, Template:WeaponTypePage declares Special:CargoTables/weapon_types but that one isn't actually queried anywhere as of the day I'm writing this.)