Template:HorizTable: Difference between revisions

From Hack Forums Wiki
D3xus (talk | contribs)
Created page with "<includeonly> <table class="layout plainlinks" style="width: 100%; margin: auto; text-align: left; background: transparent;"> <tr> <td style="text-align: center; padd..."
 
D3xus (talk | contribs)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<table class="layout plainlinks" style="width: 100%; margin: auto; text-align: left; background: transparent;">
<table class="layout plainlinks HorizTable">
  <tr>
  <tr>
      <td style="text-align: center; padding: 4px;"> [[File:{{{Row1IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">[[File:{{{Row1IMG}}}|link=]] </td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row1Title}}}''' <br> {{{Row1Desc}}} </td>
  <td class="HorizTable-desc"> '''{{{Row1Title}}}''' <br> {{{Row1Desc}}} </td>
      {{#if: {{{Row2IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row2IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row2IMG|}}}|[[File:{{{Row2IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row2Title}}}''' <br> {{{Row2Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row2IMG|}}}|'''{{{Row2Title}}}'''<br>{{{Row2Desc}}}|{{Empty}}}}</td>
      {{#if: {{{Row3IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row3IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row3IMG|}}}|[[File:{{{Row3IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row3Title}}}''' <br> {{{Row3Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row3IMG|}}}|'''{{{Row3Title}}}'''<br>{{{Row3Desc}}}|{{Empty}}}}</td>
  </tr>
  </tr>
  <tr>
  <tr>
      {{#if: {{{Row4IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row4IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row4IMG|}}}|[[File:{{{Row4IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row4Title}}}''' <br> {{{Row4Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row4IMG|}}}|'''{{{Row4Title}}}'''<br>{{{Row4Desc}}}|{{Empty}}}}</td>
      {{#if: {{{Row5IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row5IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row5IMG|}}}|[[File:{{{Row5IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row5Title}}}''' <br> {{{Row5Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row5IMG|}}}|'''{{{Row5Title}}}'''<br>{{{Row5Desc}}}|{{Empty}}}}</td>
      {{#if: {{{Row6IMG|}}}| <td style="text-align: center; padding: 4px;"> [[File:{{{Row6IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row6IMG|}}}|[[File:{{{Row6IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row6Title}}}''' <br> {{{Row6Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row6IMG|}}}|'''{{{Row6Title}}}'''<br>{{{Row6Desc}}}|{{Empty}}}}</td>
  </tr>
  </tr>
  <tr>
  <tr>
      {{#if: {{{Row7IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row7IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row7IMG|}}}|[[File:{{{Row7IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row7Title}}}''' <br> {{{Row7Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row7IMG|}}}|'''{{{Row7Title}}}'''<br>{{{Row7Desc}}}|{{Empty}}}}</td>
      {{#if: {{{Row8IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row8IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row8IMG|}}}|[[File:{{{Row8IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row8Title}}}''' <br> {{{Row8Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row8IMG|}}}|'''{{{Row8Title}}}'''<br>{{{Row8Desc}}}|{{Empty}}}}</td>
      {{#if: {{{Row9IMG|}}}| <td style="text-align: center; padding: 4px;"> [[File:{{{Row9IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row9IMG|}}}|[[File:{{{Row9IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row9Title}}}''' <br> {{{Row9Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row9IMG|}}}|'''{{{Row9Title}}}'''<br>{{{Row9Desc}}}|{{Empty}}}}</td>
  </tr>
  </tr>
  <tr>
  <tr>
      {{#if: {{{Row10IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row10IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row10IMG|}}}|[[File:{{{Row10IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row10Title}}}''' <br> {{{Row10Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row10IMG|}}}|'''{{{Row10Title}}}'''<br>{{{Row10Desc}}}|{{Empty}}}}</td>
      {{#if: {{{Row11IMG|}}}|<td style="text-align: center; padding: 4px;"> [[File:{{{Row11IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row11IMG|}}}|[[File:{{{Row11IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row11Title}}}''' <br> {{{Row11Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row11IMG|}}}|'''{{{Row11Title}}}'''<br>{{{Row11Desc}}}|{{Empty}}}}</td>
      {{#if: {{{Row12IMG|}}}| <td style="text-align: center; padding: 4px;"> [[File:{{{Row12IMG}}}|56x70px|link=]] </td>
  <td class="HorizTable-img">{{#if: {{{Row12IMG|}}}|[[File:{{{Row12IMG}}}|link=]]|{{Empty}}}}</td>
      <td style="width: 33%; padding: 4px;"> '''{{{Row12Title}}}''' <br> {{{Row12Desc}}} </td>|{{Empty}}}} </td>
  <td class="HorizTable-desc"> {{#if:{{{Row12IMG|}}}|'''{{{Row12Title}}}'''<br>{{{Row12Desc}}}|{{Empty}}}}</td>
  </tr>
  </tr>
</table>
</table>
</includeonly>
</includeonly>
Line 43: Line 43:
| Row1Desc  =  
| Row1Desc  =  
}}
}}
</pre>
</noinclude>
</noinclude>

Latest revision as of 21:26, 2 February 2016


Use this template to make nice-looking horizontal tables for content organization. You can have up to twelve rows.

{{HorizTable
| Row1IMG    = 
| Row1Title  = 
| Row1Desc   = 
}}