Jump to content

Help:Templates

From Citadel Wiki
WRITTEN BY AI An AI wrote this page, so it may be wrong or read oddly. If you want to help the wiki, check the information, rewrite it in your own words, then remove {{AI generated}} from the top.

A template is a piece of page written once and used on many, called by its name in double braces, such as {{Creation}}. This page lists every template the wiki has, by kind. Each template's own page explains its parameters, with examples.

Most facts are written once, in a template that stores them, and shown on other pages by a template that reads them back. Change a fact where it is written, and every page that shows it follows. The style guide says which page holds each fact, and Help:Page layout says which templates each kind of page uses, and where.

Notices and pointers

These go at the top of a page, above the infobox, in the order the style guide gives. Each notice files the page under a hidden category, and Citadel Wiki:Maintenance counts the pages in each.

Template Where it goes What it does Files the page under
AI generated First on the page Marks a page an AI wrote, until someone has checked the information and rewritten it Pages written by AI
Cleanup Top of the page or section Marks a page that does not follow the style guide, and says what is wrong Pages needing cleanup
Incomplete Top of the page or section Marks a known gap, and says what is missing Incomplete pages
Outdated Top of the page or section Marks a page an update may have made wrong, and names the update Possibly outdated pages
Merge Top of both pages Marks two pages on one subject, each naming the other Pages to merge
Delete Top of the page Asks an admin to delete the page, and gives the reason Pages to delete
Removed Top of the page of something the game no longer has Says it was taken out of the game and when, and that the page is kept as a record Removed content
Unverified In the text, right after the claim Marks one claim nobody has checked against the game yet Pages with unverified claims
Has strategy Top of a page whose content has a strategy guide, such as a boss's, under any notices Points to the content's strategy guide Nothing

Infoboxes

An infobox sits at the top of a page, beside the lead. It shows what the game shows about the page's subject and stores it, so lists on other pages can show it too. A value it cannot read shows in red and files the page under Category:Pages with infobox errors.

Template On What it shows What it stores, and what reads it
Infobox Item Every item page, blueprints and hulls included What the item's tooltip shows: its type, slot, size, tier, BR, description and stats. An item with quality has a tab for each quality. A blueprint's infobox adds its recipe and shows its product's picture. The item and its stats, for Item list. A blueprint's recipe, for Creation and Products.
Infobox NPC NPC and boss pages Its name, group, class and role, where it is found, when it comes back and the loot tables it draws from The NPC and its stats
Infobox Breach Area pages Where it is breached from, its tier and BR range, how many pilots, how to leave, its boss and its ore The area and its stats
Update The top of each update's page, such as Update:Beta Patch 3 The update's kind, date and summary, links to the updates before and after it, and where the team posted its notes, as a reference The update, for Updates list

Tables a page writes

These hold facts that live on the page they are written on. Drop tables and money making boxes also store what they hold, for the lists in the next section.

Template On What it does What it stores, and what reads it
Drops head, Drops line and Drops bottom NPC and loot table pages, under Drops A drop table. Drops head starts it, one Drops line gives each item, with how many drop and whether it always drops, and Drops bottom ends it. Its Drop chance column shows Always, a chance players have counted, or Unknown for a drop nobody has enough data on. Each drop, for Drop sources
Changes head, Changes line and Changes bottom Every article, under Changes The page's Changes table. Changes head starts it, one Changes line gives each change with its date and update, oldest first, and Changes bottom ends it. Under each date, (Update) links the update's page once it has one The change, for Update changes
Money making The top of each method's page, under Money making guide The method's box: its rates, places, needs and what can be lost The method, for Money making list
Research table A blueprint's Research section Each research step's ORE and time as the blueprint's menu shows them, the totals, and the times at GANDEN and ZHAT KALI, where research takes half as long Nothing: the blueprint's page is the only one that shows it

Lists that read stored facts

These fill themselves from what the templates above store, so nobody types their contents. Each shows the page it is on, or the page named as its first parameter, such as {{Creation|Railgun}}.

Template On What it shows Read from
Creation An item page, under Creation Each blueprint that forges the item, with the materials one job spends Blueprint infoboxes
Products A material's page, under Products Every blueprint that spends the material, and how many one job needs Blueprint infoboxes
Drop sources An item page, under Item sources Every page that drops the item, with its drop chance: first those that always drop it, then those whose random loot can Drop tables
Item list Any page A sortable table of the items whose infoboxes match its parameters, such as every turret, with a column for one stat if asked Item infoboxes
Money making list Money making guide Every money making method Money making boxes
Category list A category's own page A table of the pages the category holds The infoboxes that file pages under it
Breaches from A hub's page The areas breached from the hub, by tier Area infoboxes
Item links Any page Every item whose infobox matches the given words, in a line, after its category, such as the modules a conduit connects to Item infoboxes
Updates list Category:Updates, and the Main Page with compact=yes Every update with a page, newest first, with its date, kind and summary Update boxes
Update changes The page of an update the team posted no notes for, under Changes, such as Update:Alpha What the articles' Changes sections record the update changed, with each change's date and page Changes lines

Navigation boxes

A navigation box closes a page, after Changes: a box of related pages in labelled rows, which a reader can close.

Template On What it shows
Navbox items Every item page The items related to the page's item, read from its infobox: the modules of its type by slot, the hulls by class and role, or the items of its kind, then the blueprints that forge them. A blueprint's page shows its product's box.
Navbox NPCs Every NPC page The bosses, then the NPC ships by the groups they fly for
Navbox loot tables Every loot table page Every loot table page, by kind. A new table goes into its list.
Navbox breaches Every area page Every breach area, by tier, from the areas' infoboxes
Navbox Inside the boxes above Draws a box from rows given by hand

Drawings

Template What it draws
Shape The cells an item takes in a grid, as the game's grids show them, with a count such as 3 CELLS. The item infobox's SIZE and the item tables use it, and any page can.
Fitting grid A ship's fitting grid as its tooltip shows it, with the count of each kind of slot, and its cargo hold and safety cells if given. Pointing at a slot explains it. A hull's page has it under Fitting grid.

Parts of other templates

Pages do not use these themselves: the templates above call them.

Template What it does
Notice Draws the box every maintenance notice shares, and files the page under the notice's category
Infobox stat Stores one stat of an infobox
Recipe Stores a blueprint infobox's recipe
Recipe material Stores one material of a recipe
Infobox Item/preload The text a new item page starts with, when the box on the Main Page opens one
Infobox Item/editintro The note above the editor while a new item page is written

A template with a look of its own keeps it in a styles.css subpage, such as Template:Shape/styles.css. A module does the work behind most templates, and the template's page names it, such as Module:Drops. What the templates store lives in Cargo tables, which each template's page names and Special:CargoTables lists.