Template:Infobox: Difference between revisions

Template page
(nested a switch case as a temporary solution)
No edit summary
Line 2: Line 2:
<tr><th colspan=2><div>{{{name|{{SUBPAGENAME}}}}}</div></th></tr>
<tr><th colspan=2><div>{{{name|{{SUBPAGENAME}}}}}</div></th></tr>
<tr><td>[[File:{{#setmainimage:{{{name| {{#switch: {{BASEPAGENAME}} | Instructions = Instructions-{{SUBPAGENAME}} | {{SUBPAGENAME}}}}}}}.png}}|256px]]</td></tr>
<tr><td>[[File:{{#setmainimage:{{{name| {{#switch: {{BASEPAGENAME}} | Instructions = Instructions-{{SUBPAGENAME}} | {{SUBPAGENAME}}}}}}}.png}}|256px]]</td></tr>
<tr><td>{{ComponentStatistics|{{SUBPAGENAME}}}}{{ItemStatistics|{{SUBPAGENAME}}}}{{EntityStatistics|{{SUBPAGENAME}}}}{{InstructionStatistics|{{SUBPAGENAME}}}}</td></tr>
<tr><td>{{ComponentStatistics|{{SUBPAGENAME}}}}{{ItemStatistics|{{SUBPAGENAME}}}}{{EntityStatistics|{{SUBPAGENAME}}}}{{#ifeq:{{BASEPAGENAME}}|Instructions|{{InstructionStatistics{{!}}{{SUBPAGENAME}}}}|}}</td></tr>
</table>
</table>
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}</noinclude>

Revision as of 19:23, 11 September 2023

Infobox

Documentation

Description

The top right infobox on pages. Data is automatically fetched using SUBPAGENAME.

Usage

{{Infobox}}

Optionally, name parameter can be specified to override the name & the image file used.

{{Infobox|name=Cub}}

The above Template documentation is transcluded from Template:Infobox/doc. (edit | history)