Template:Infobox: Difference between revisions

Trying to implement an modular infobox
(Create the basic infobox)
(Trying to implement an modular infobox)
Tag: Replaced
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{infobox start|{{{class|}}}}}
<div class="infobox">
{{infobox header
    <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
| name = {{{name|{{PAGENAME}}}}}
    {{#if:{{{image|}}}| <div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
| wideimage = {{{image|{{{name|{{PAGENAME}}}}}.png}}}
    <table class="infobox-table">
| description = {{{description|}}}
        {{#if:{{{param1|}}}|<tr>
}}
            <th>Parameter 1</th>
 
            <td>{{{param1}}}</td>
{{infobox section|{{#if:{{{section1|}}}|{{{section1}}}|Infos}}}}
        </tr>}}
{{infobox row|{{{info1|}}}|{{{info1value|}}}|{{{info1value|}}}}}
        {{#if:{{{param2|}}}|<tr>
{{infobox section|{{{section2}}}|{{{section2|}}}}}
            <th>Parameter 2</th>
{{infobox row|{{{info2|}}}|{{{info2value|}}}|{{{info2value|}}}}}
            <td>{{{param2}}}</td>
{{infobox section|{{{section3}}}|{{{section3|}}}}}
        </tr>}}
{{infobox row|{{{info3|}}}|{{{info3value|}}}|{{{info3value|}}}}}
        {{#if:{{{param3|}}}|<tr>
{{infobox section|{{{section4}}}|{{{section4|}}}}}
            <th>Parameter 3</th>
{{infobox row|{{{info4|}}}|{{{info4value|}}}|{{{info4value|}}}}}
            <td>{{{param3}}}</td>
{{infobox section|{{{section5}}}|{{{section5|}}}}}
        </tr>}}
{{infobox row|{{{info5|}}}|{{{info5value|}}}|{{{info5value|}}}}}
        {{#if:{{{param4|}}}|<tr>
{{infobox section|{{{section6}}}|{{{section6|}}}}}
            <th>Parameter 4</th>
{{infobox row|{{{info6|}}}|{{{info6value|}}}|{{{info6value|}}}}}
            <td>{{{param4}}}</td>
{{infobox section|{{{section7}}}|{{{section7|}}}}}
        </tr>}}
{{infobox row|{{{info7|}}}|{{{info7value|}}}|{{{info7value|}}}}}
        {{#if:{{{param5|}}}|<tr>
{{infobox section|{{{section8}}}|{{{section8|}}}}}
            <th>Parameter 5</th>
{{infobox row|{{{info8|}}}|{{{info8value|}}}|{{{info8value|}}}}}
            <td>{{{param5}}}</td>
{{infobox section|{{{section9}}}|{{{section9|}}}}}
    </tr>}}
{{infobox row|{{{info9|}}}|{{{info9value|}}}|{{{info9value|}}}}}
    </table>
{{infobox section|{{{section10}}}|{{{section10|}}}}}
</div>
{{infobox row|{{{info10|}}}|{{{info10value|}}}|{{{info10value|}}}}}
</includeonly>
{{infobox end}}</includeonly><noinclude>
<noinclude>
{{doc}}
{{Doc}}
[[Category:Infobox templates]]</noinclude>
[[Category:Infobox templates]]
</noinclude>