Difference between revisions of "Template:Footer Infobox"

From Captain of Industry Wiki
Jump to: navigation, search
({{Recipe fetch header}} invoke rework)
m (Error fixing)
Line 23: Line 23:
       -->{{#vardefine: fetched_data_1 | {{recipe fetch|isbldg=yes}} }}<!--
       -->{{#vardefine: fetched_data_1 | {{recipe fetch|isbldg=yes}} }}<!--
     -->|}}<!--
     -->|}}<!--
     ** Displaying a header is needed, and then displaying generated data.
     ** Displaying a header is needed, and then displaying generated data.
     Note intended line breaks, made for proper transclusion of headers.**
     Note intended line breaks, made for proper transclusion of headers.**
     -->{{#ifexpr: {{#var: fetched_data_1}} = "" AND {{#var: fetched_data_2}} = "" || {{Recipe fetch header}}
     -->{{#if: {{#var: fetched_data_1}} |
}}<!--
{{Recipe fetch header}} | {{#if: {{#var: fetched_data_2}} |
     -->{{#if: {{#var: fetched_data_1}} | {{#var: fetched_data_1}}
{{Recipe fetch header}} }} }}<!--
|}}<!--
     -->{{#if: {{#var: fetched_data_1}} |
     -->{{#if: {{#var: fetched_data_2}} | {{#var: fetched_data_2}}
{{#var: fetched_data_1}} |}}<!--
|}}<!--
     -->{{#if: {{#var: fetched_data_2}} |
{{#var: fetched_data_2}} |}}<!--


     ** Technical check of data definition inside any article **
     ** Technical check of data definition inside any article **

Revision as of 16:06, 2 May 2023

Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]

This template must be invoked on the bottom of every article, which is a game object. This generally refers to any article, which starts with the usage of any of the Infobox templates.

In other words, all items, machines, etc. must contain this at their footer.

Such a structure allows to mass-edit important (but uniform) parts of articles, without the need of manually editing each of them one by one.

Examples of what this template automatically takes care of:

The above text is transcluded from Template:Footer Infobox/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 (edit | diff) and testcases (create) pages.
Please add categories and interwikis to Template:Footer Infobox/doc. (View all subpages of this page.)