Difference between revisions of "Template:Factorylist/entry"

From StarMade Wiki
(created template)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{#if: {{{alt|}}} |  
 
{{#if: {{{alt|}}} |  
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838; background-color:#1c2331;>[[{{{type|}}}]]</td>
+
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838; background-color:#1c2331;">[[{{{type|}}}]]</td>
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838; background-color:#1c2331;>x{{{count|1}}}</td>
+
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838; background-color:#1c2331;">x{{{count|1}}}</td>
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838; background-color:#1c2331;>[[File:{{{type|}}}.png|50px]]</td>|
+
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838; background-color:#1c2331;">[[File:{{{type|}}}.png|50px]]</td>|
 +
{{#if: {{{first|}}}|
 +
<td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;border-top: solid 1px">[[{{{type|}}}]]</td>
 +
<td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;border-top: solid 1px">x{{{count|1}}}</td>
 +
<td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;border-top: solid 1px">[[File:{{{type|}}}.png|50px]]</td>|
 
{{#if: {{{count|}}} |
 
{{#if: {{{count|}}} |
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;>[[{{{type}}}]]</td>
+
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;">[[{{{type|}}}]]</td>
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;>x{{{count|1}}}</td>
+
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;">x{{{count|1}}}</td>
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;>[[File:{{{type|}}}.png|50px]]</td>|}}}}
+
  <td style="padding-left: 1em; padding-right: 1em; text-align: center; border-right: solid 1px #383838;">[[File:{{{type|}}}.png|50px]]</td>|}}}}}}
  
 
<noinclude>
 
<noinclude>
<table>
+
{{Documentation}}
<tr>
 
{{factorylist/entry |type=Grey Hull |count=5 }}
 
</tr>
 
</table>
 
 
</noinclude>
 
</noinclude>

Latest revision as of 03:28, 7 April 2019


[view] [edit] [history] [[[:Template:Purge]]] 50px Template documentation

This template will create cells for Template:Factorylist

This:


Grey Hull x5 Grey Hull.png


Will be typed out like this:

<table>
{{factorylist/entry
|type=Grey Hull
|count=5
}}
</table>

Alternatively:


Grey Hull x5 Grey Hull.png

Will be typed out like this:

<table>
{{factorylist/entry
|type=Grey Hull
|count=5
|alt=true
}}
</table>

Parameters

type
Determines what block will appear. Creates the image and link to it.
count
Determines the amount of the blocks needed. Default amount is 1.
first
Creates a line of separation at the top of the cell. Used for the second product resource listing and on. Does not work with the "alt" parameter.
alt
Optional parameter. Changes the background color. Purely stylistic.