Difference between revisions of "Template:Footer Cargo"

From Captain of Industry Wiki
Jump to: navigation, search
m (L32 moved page Template:Cargo definition to Template:Footer Cargo: Name should better fit template's purpose.)
(Style file inclusion and an attempt to wrap the infobox)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#varexists: cargo_define_invoked |<!--
-->{{#varexists: cargo_define_invoked |<!--
--><templatestyles src="Template:Footer Cargo/styles.css" /><!--
--><div class="infobox-wrapper"><!--


-->{{Ambox
-->{{Ambox
Line 20: Line 22:
-->}}<!--
-->}}<!--


--></div><!-- end of alignment class.
-->}}<!-- end of cargo_define_invoked check.
-->}}<!-- end of cargo_define_invoked check.
--></includeonly><!--
--></includeonly><!--

Revision as of 14:34, 29 April 2023

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