Template:InfoBox: Difference between revisions

Template page
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<include>
<div class="infobox">
{
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
| class="wikitable" ! colspan="2" style="text-align: center;"
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
| {{{title}}} |-
<table>{{#if:{{{param1|}}}|<tr>
| date | {{{date}}} |-
    <th>Parameter 1</th>
| genre | {{{genre}}} |-
    <td>{{{param1}}}</td>
| mode | {{{mode}}} |
</tr>}}{{#if:{{{param2|}}}|<tr>
}
    <th>Parameter 2</th>
</include>
    <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>


<noinclude>
<templatestyles src="Template:InfoBox/styles.css"/>
{{InfoBox
<noinclude>{{/doc}}</noinclude>
|title=Half-Life
|date=2004-06-01
|genre=FPS
|mode=Single-Player
}}
</noinclude>

Latest revision as of 22:08, 18 December 2022

InfoBox

Template:InfoBox/doc