Template:Footer Cargo

From Captain of Industry Wiki
Revision as of 01:24, 6 July 2022 by L32 (talk | contribs) (Init commit)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]


This template is supposed to be invoked on the bottom of every article and every template.

It checks if the page is directly or indirectly relevant to Cargo data definition and displays appropriate message box.

The usage is requested at the very bottom of pages, because of the mechanic used to detect data definition.

It abuses the fact, that every defining template sets a variable cargo_define_invoked. In general, we can't know where exactly on a page data was defined. To be reliable, the check must occur at the end, after all transclusions are resolved.

{{#ifeq no | yes |{{Ambox

 | name     = Source data defined
 | type     = notice
 | style=width: 90%
 | image    = File:Server.svg
 | text     = This template invokes definition of game's source data  (either directly, or with one or several invokes).

Editing it will result in updates to some of the stored [[Special:CargoTables] | tables], which in turn updates automated data lists. See more.

-->}}}}
The above text is transcluded from Template:Footer Cargo/doc; you can change it or view its history. (How does this work?)
If you're done making changes, please refresh the text. (Why?)
You can experiment in this template's sandbox (create | mirror ) and testcases (create) pages.
Please add categories and interwikis to Template:Footer Cargo/doc. (View all subpages of this page.)