Difference between revisions of "Template:Factorylist/entry"
From StarMade Wiki
(updated template) |
|||
(One intermediate revision 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|}}}| | {{#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>|}}}}}} |
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 02:28, 7 April 2019
This template will create cells for Template:Factorylist
This:
Grey Hull | x5 |
Will be typed out like this:
<table> {{factorylist/entry |type=Grey Hull |count=5 }} </table>
Alternatively:
Grey Hull | x5 |
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.
The above documentation is transcluded from Template:Factorylist/entry/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |