Main Page

Difference between revisions of "Template:RingMats"

From Arks-Visiphone
Jump to navigation Jump to search
(Massive template layout change)
Line 1: Line 1:
<noinclude>
+
<caption><strong>{{{1}}}</strong></caption>
<table class="table-bordered">
+
{{#if: {{{true|}}}|<div class="col-12"><ul class="list-inline"><li class="list-inline-item text-center"><strong>Lv.1</strong><br>{{{L1}}}</li><li class="list-inline-item text-center"><strong>Lv.2</strong><br>{{{L2}}}</li><li class="list-inline-item text-center"><strong>Lv.3</strong><br>{{{L3}}}</li><li class="list-inline-item text-center"><strong>Lv.4</strong><br>{{{L4}}}</li><li class="list-inline-item text-center"><strong>Lv.5</strong><br>{{{L5}}}</li></ul><ul class="list-inline"><li class="list-inline-item text-center"><strong>Lv.6</strong><br>{{{L6}}}</li><li class="list-inline-item text-center"><strong>Lv.7</strong><br>{{{L7}}}</li><li class="list-inline-item text-center"><strong>Lv.8</strong><br>{{{L8}}}</li><li class="list-inline-item text-center"><strong>Lv.9</strong><br>{{{L9}}}</li><li class="list-inline-item text-center"><strong>Lv.10</strong><br>{{{L10}}}</li></ul></div><div class="col-12"><ul class="list-inline"><li class="list-inline-item text-center"><strong>Lv.11</strong><br>{{{L11}}}</li><li class="list-inline-item text-center"><strong>Lv.12</strong><br>{{{L12}}}</li><li class="list-inline-item text-center"><strong>Lv.13</strong><br>{{{L13}}}</li><li class="list-inline-item text-center"><strong>Lv.14</strong><br>{{{L14}}}</li><li class="list-inline-item text-center"><strong>Lv.15</strong><br>{{{L15}}}</li></ul><ul class="list-inline"><li class="list-inline-item text-center"><strong>Lv.16</strong><br>{{{L16}}}</li><li class="list-inline-item text-center"><strong>Lv.17</strong><br>{{{L17}}}</li><li class="list-inline-item text-center"><strong>Lv.18</strong><br>{{{L18}}}</li><li class="list-inline-item text-center"><strong>Lv.19</strong><br>{{{L19}}}</li><li class="list-inline-item text-center"><strong>Lv.20</strong><br>{{{L20}}}</li></ul></div>|}}<!--
</noinclude>
 
<tr>
 
<th rowspan="4" class="text-center"><strong>{{{1}}}</strong></th>
 
<td><strong>Lv.1</strong></td>
 
<td><strong>Lv.2</strong></td>
 
<td><strong>Lv.3</strong></td>
 
<td><strong>Lv.4</strong></td>
 
<td><strong>Lv.5</strong></td>
 
<td><strong>Lv.6</strong></td>
 
<td><strong>Lv.7</strong></td>
 
<td><strong>Lv.8</strong></td>
 
<td><strong>Lv.9</strong></td>
 
<td><strong>Lv.10</strong></td>  
 
</tr>
 
<tr>
 
{{#if: {{{L1|}}}|<td>{{{L1|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L2|}}}|<td>{{{L2|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L3|}}}|<td>{{{L3|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L4|}}}|<td>{{{L4|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L5|}}}|<td>{{{L5|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L6|}}}|<td>{{{L6|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L7|}}}|<td>{{{L7|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L8|}}}|<td>{{{L8|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L9|}}}|<td>{{{L9|}}}</td>|}}<!--
 
 
 
-->{{#if: {{{L10|}}}|<td>{{{L10|}}}</td>|}}<!--
 
  
-->{{#if: {{{NA|}}}|<td colspan="10" class="text-center">{{{NA|}}}</td>|}}
+
-->{{#if: {{{NA|}}}|<div class="table-responsive-md"><table class="table-bordered"><tr><th scope="col">Lv.1</th><th scope="col">Lv.2</th><th scope="col">Lv.3</th><th scope="col">Lv.4</th><th scope="col">Lv.5</th><th scope="col">Lv.6</th><th scope="col">Lv.7</th><th scope="col">Lv.8</th><th scope="col">Lv.9</th><th scope="col">Lv.10</th></tr><tr><td colspan="10" class="text-center">{{{NA|}}}</td></tr><tr><th scope="col">Lv.11</th><th scope="col">Lv.12</th><th scope="col">Lv.13</th><th scope="col">Lv.14</th><th scope="col">Lv.15</th><th scope="col">Lv.16</th><th scope="col">Lv.17</th><th scope="col">Lv.18</th><th scope="col">Lv.19</th><th scope="col">Lv.20</th></tr><tr><td colspan="10" class="text-center">{{{NA|}}}</td></tr></table></div>|}}
</tr>
 
 
<noinclude>
 
<noinclude>
</table>
 
  
 
Used with the [[Template:Rings|Rings]] template. Adds the effects per level table in the ring "card".
 
Used with the [[Template:Rings|Rings]] template. Adds the effects per level table in the ring "card".
Line 50: Line 14:
 
{{RingMats
 
{{RingMats
 
| Effects per level
 
| Effects per level
 +
| true
 
| L1 =
 
| L1 =
 
| L2 =  
 
| L2 =  
Line 60: Line 25:
 
| L9 =  
 
| L9 =  
 
| L10 =  
 
| L10 =  
 +
| L11 =
 +
| L12 =
 +
| L13 =
 +
| L14 =
 +
| L15 =
 +
| L16 =
 +
| L17 =
 +
| L18 =
 +
| L19 =
 +
| L20 =
 
}}
 
}}
  
 
Horizontal:
 
Horizontal:
{{RingMats | Effects per level | L1 = | L2 = | L3 = | L4 = | L5 = | L6 = | L7 = | L8 = | L9 = | L10 = }}
+
{{RingMats | Effects per level | true | L1 = | L2 = | L3 = | L4 = | L5 = | L6 = | L7 = | L8 = | L9 = | L10 = | L11 = | L12 = | L13 = | L14 = | L15 = | L16 = | L17 = | L18 = | L19 = | L20 = }}
 
</pre>
 
</pre>
  
 
The template follows the basic principle of <code>Variable = Value</code>. You are not required to specify all of the variables in order to make this template function. However, it's highly advised that you do so for values of 1 through 10.
 
The template follows the basic principle of <code>Variable = Value</code>. You are not required to specify all of the variables in order to make this template function. However, it's highly advised that you do so for values of 1 through 10.
  
If you want to display a 10 column long "Not Applicable" value instead of an individual value, you can do so using <code>NA2 = N/A</code> instead of the normal variables.
+
If you want to display a 10 column long "Not Applicable" value instead of an individual value, you can do so by setting <code>true</code> to <code>false</code> and using <code>NA2 = N/A</code> instead of the normal variables.
  
 
<pre>
 
<pre>
 
Template usage using the horizontal method (vertical works too):
 
Template usage using the horizontal method (vertical works too):
  
{{RingMats | Effects per level | NA = N/A }}
+
{{RingMats | Effects per level | false | NA = N/A }}
 
</pre>
 
</pre>
 
</noinclude>
 
</noinclude>

Revision as of 08:54, 21 April 2020

{{{1}}} Used with the Rings template. Adds the effects per level table in the ring "card". Template overview:

Can be displayed in a vertical format or a horizontal format.

Vertical:
{{RingMats
| Effects per level
| true
| L1 =
| L2 = 
| L3 = 
| L4 = 
| L5 = 
| L6 = 
| L7 = 
| L8 = 
| L9 = 
| L10 = 
| L11 =
| L12 = 
| L13 = 
| L14 = 
| L15 = 
| L16 = 
| L17 = 
| L18 = 
| L19 = 
| L20 = 
}}

Horizontal:
{{RingMats | Effects per level | true | L1 = | L2 = | L3 = | L4 = | L5 = | L6 = | L7 = | L8 = | L9 = | L10 = | L11 = | L12 = | L13 = | L14 = | L15 = | L16 = | L17 = | L18 = | L19 = | L20 = }}

The template follows the basic principle of Variable = Value. You are not required to specify all of the variables in order to make this template function. However, it's highly advised that you do so for values of 1 through 10.

If you want to display a 10 column long "Not Applicable" value instead of an individual value, you can do so by setting true to false and using NA2 = N/A instead of the normal variables.

Template usage using the horizontal method (vertical works too):

{{RingMats | Effects per level | false | NA = N/A }}