Template:Infobox: Difference between revisions

Template page
(Undid revision 855063393 by Jdlrobson (talk) rather problematic change mentioned on talk page, reverting until it can be sorted)
 
(Minimal-working code for Infobox (hopefully))
Line 1: Line 1:
{{#invoke:Infobox|infobox}}<includeonly>{{template other|{{#ifeq:{{PAGENAME}}|Infobox||{{#ifeq:{{str left|{{SUBPAGENAME}}|7}}|Infobox|[[Category:Infobox templates|{{remove first word|{{SUBPAGENAME}}}}]]}}}}|}}</includeonly><noinclude>
<div class="infobox">
{{documentation}}
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
</noinclude>
<table class="infobox-table">{{#if:{{{formerlycalled|}}}|<tr>
    <th>Formerly called</th>
    <td>{{{formerlycalled}}}</td>
</tr>}}{{#if:{{{location|}}}|<tr>
    <th>Location</th>
    <td>{{{location}}}</td>
</tr>}}{{#if:{{{website|}}}|<tr>
    <th>Website</th>
    <td>{{{website}}}</td>
</tr>}}</table>
</div>

Revision as of 04:01, 17 January 2024

Infobox