Difference between revisions of "Template:Footer Cargo"

From Captain of Industry Wiki
Jump to: navigation, search
m (Icon size increase)
(Changed back to the var final check)
Tag: Reverted
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#if: {{#varexists: cargo_define_invoked}} |<!--
-->{{#ifeq: {{#var_final: cargo_define_invoked | no }} | yes |<!--


   ** Main section.
   ** Main section.

Revision as of 02:05, 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.)