Template:Infobox: Difference between revisions

From West Coast Fun
Jump to navigation Jump to search
(added template from instruction on https://stackoverflow.com/questions/27801082/how-do-you-make-infoboxes-in-mediawiki)
 
(customized fields to match WCF needs)
 
Line 2: Line 2:
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<div class="infobox-image">[[File:{{{image}}}|300px]]</div>}}
<table>{{#if:{{{param1|}}}|<tr>
<table>{{#if:{{{method|}}}|<tr>
     <th>Parameter 1</th>
     <th>Entry Method</th>
     <td>{{{param1}}}</td>
     <td>{{{method}}}</td>
</tr>}}{{#if:{{{param2|}}}|<tr>
</tr>}}{{#if:{{{servers|}}}|<tr>
     <th>Parameter 2</th>
     <th>Available on server(s)</th>
     <td>{{{param2}}}</td>
     <td>{{{servers}}}</td>
</tr>}}{{#if:{{{param3|}}}|<tr>
</tr>}}{{#if:{{{permission|}}}|<tr>
     <th>Parameter 3</th>
     <th>Allowed users</th>
     <td>{{{param3}}}</td>
     <td>{{{permission}}}</td>
</tr>}}{{#if:{{{param4|}}}|<tr>
</tr>}}{{#if:{{{cooldown|}}}|<tr>
     <th>Parameter 4</th>
     <th>Cooldown Time</th>
     <td>{{{param4}}}</td>
     <td>{{{cooldown}}}</td>
</tr>}}{{#if:{{{param5|}}}|<tr>
</tr>}}{{#if:{{{cooldown2|}}}|<tr>
     <th>Parameter 5</th>
     <th>Verified/Citizen cooldown</th>
     <td>{{{param5}}}</td>
     <td>{{{cooldown2}}}</td>
</tr>}}</table>
</tr>}}</table>
</div>
</div>

Latest revision as of 17:23, 15 January 2023

Infobox