Template:Infobox: Difference between revisions

Create the basic infobox
m (217 revisions imported: Retry import infobox)
(Create the basic infobox)
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>
<includeonly>
{{documentation}}
<div class="infobox">
<!-- Categories go in the /doc subpage, and interwikis go in Wikidata. -->
    <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
    {{#if:{{{image|}}}| <div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
    <table class="infobox-table">
        {{#if:{{{param1|}}}|<tr>
            <th>Parameter 1</th>
            <td>{{{param1}}}</td>
        </tr>}}
        {{#if:{{{param2|}}}|<tr>
            <th>Parameter 2</th>
            <td>{{{param2}}}</td>
        </tr>}}
        {{#if:{{{param3|}}}|<tr>
            <th>Parameter 3</th>
            <td>{{{param3}}}</td>
        </tr>}}
        {{#if:{{{param4|}}}|<tr>
            <th>Parameter 4</th>
            <td>{{{param4}}}</td>
        </tr>}}
        {{#if:{{{param5|}}}|<tr>
            <th>Parameter 5</th>
            <td>{{{param5}}}</td>
    </tr>}}
    </table>
</div>
</includeonly>
<noinclude>
{{Doc}}
[[Category:Infobox templates]]
</noinclude>
</noinclude>