Difference between revisions of "Template:Footer Cargo/doc"

From Captain of Industry Wiki
Jump to: navigation, search
m (L32 moved page Template:Footer Cargo/doc to Template:Footer Cargo/doc: Name should better fit template's purpose.)
(Contents expansion)
Line 1: Line 1:
{{stub}}
This template is supposed to be invoked on the bottom of '''every article''' and '''every template'''.


This template is supposed to be invoked on top of every article and every template.
It checks if the page is directly or inderectly relevant to Cargo data definition and displays appropriate messagebox.
It checks if the page is directly or inderectly relevant to Cargo data definition.
 
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.


<includeonly>
<includeonly>

Revision as of 04:21, 6 July 2022

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

It checks if the page is directly or inderectly relevant to Cargo data definition and displays appropriate messagebox.

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.