Template:Infobox: Difference between revisions

From Stiles Wiki
Jump to navigation Jump to search
No edit summary
(Replaced content with "{{#invoke:Infobox|infobox}}")
Tag: Replaced
Line 1: Line 1:
<includeonly>
{{#invoke:Infobox|infobox}}
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<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>
{{infobox
|image = placeholder_portrait.png
|param1 = Info1
|param2 = Info2
|param3 = Info3
|param4 = Info4
|param5 = Info5
}}
 
This is the template all other infoboxes are based on. Do not change this template.
== Usage ==
|image = <br />
|param1 = <br />
|param2 = <br />
|param3 = <br />
|param4 = <br />
|param5 =
[[Category:Templates]]
</noinclude>

Revision as of 13:37, 19 March 2021