Difference between revisions of "Template:Factorylist/entry"

From StarMade Wiki
 
Line 4: Line 4:
 
  <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|}}}|
 
{{#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">[[{{{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">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>|
 
  <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>|}}}}}}

Latest revision as of 02: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.