Difference between revisions of "Template:Footer Cargo"

From Captain of Industry Wiki
Jump to: navigation, search
(Error fixing)
m (Error fixing)
Line 11: Line 11:
   | text    = '''This {{#if: {{NAMESPACE}} | {{#if: {{NAMESPACE}} = {{ns:Template}} | template | page }} | article}} invokes definition of game's source data ''' (either directly, or with one or several [[Category:Cargo management templates | template ]] invokes).'''
   | text    = '''This {{#if: {{NAMESPACE}} | {{#if: {{NAMESPACE}} = {{ns:Template}} | template | page }} | article}} invokes definition of game's source data ''' (either directly, or with one or several [[Category:Cargo management templates | template ]] invokes).'''


Editing it will result in updates to some of the stored [[Special:CargoTables] | tables]], which in turn updates automated data lists. [[How to contribute | See more.]]
Editing it will result in updates to some of the stored [[Special:CargoTables] | tables]], which in turn updates automated data lists. [[How to contribute | See more.]]<!--
-->}}<!-- end of Ambox.
-->}}<!-- end of Ambox.



Revision as of 01:46, 6 July 2022

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.
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.)