Template:Infobox: Difference between revisions

Template page
(Created page with "<templatestyles src="InfoboxCss.css" /> <div class="infobox"> <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>{{{para...")
 
No edit summary
Tag: Reverted
Line 2: Line 2:


<div class="infobox">
<div class="infobox">
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
  <div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
  {{#if: {{{image|}}} |
<table class="infobox-table">{{#if:{{{param1|}}}|<tr>
  <div class="infobox-image">[[File:{{{image}}}|300px]]</div>
    <th>Parameter 1</th>
  }}
    <td>{{{param1}}}</td>
  <table class="infobox-table">
</tr>}}{{#if:{{{param2|}}}|<tr>
    {{#if: {{{param1|}}} |
    <th>Parameter 2</th>
    <tr>
    <td>{{{param2}}}</td>
      <th>Parameter 1</th>
</tr>}}{{#if:{{{param3|}}}|<tr>
      <td>{{{param1}}}</td>
    <th>Parameter 3</th>
    </tr>
    <td>{{{param3}}}</td>
    }}
</tr>}}{{#if:{{{param4|}}}|<tr>
    {{#if: {{{param2|}}} |
    <th>Parameter 4</th>
    <tr>
    <td>{{{param4}}}</td>
      <th>Parameter 2</th>
</tr>}}{{#if:{{{param5|}}}|<tr>
      <td>{{{param2}}}</td>
    <th>Parameter 5</th>
    </tr>
    <td>{{{param5}}}</td>
    }}
</tr>}}</table>
    {{#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>
</div>

Revision as of 15:08, 29 May 2024

Infobox