Template:Infobox Forklift: Difference between revisions

From Forklift Certified Video Games
Jump to navigation Jump to search
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| class="wikitable infotable" style="float:right; margin:0 10px 10px 15px;"
{{#default_form:Forklift}}
{| class="wikitable infotable" style="float:right; margin:0 10px 10px 15px; width:300px;"
|-
|-
| colspan="2" style="text-align:center; font-weight:bold;" |{{{title|{{PAGENAME}}}}}
| colspan="2" style="text-align:center; font-weight:bold;" | {{{title|{{PAGENAME}}}}}
{{#if: {{{image|}}} |
{{!}}-
{{!}} colspan="2" style="text-align:center;" {{!}}
[[File:{{{image|}}}|frameless|center]] }}
|-
|-
| colspan="2" style="text-align:center;" |
! style="text-align: left;" | Engine type
[[File:{{{image|}}}|frameless|center]]
| {{#arraymap:{{{enginetype|}}}|,|x|[[:Category:x|x]]|<br>}}
|-
|-
! style="text-align: left;"| Engine type
! style="text-align: left;" | Function(s)
| {{{enginetype|}}}
| {{#arraymap:{{{functions|}}}|,|x|[[:Category:x|x]]|<br>}}
|-
|-
! style="text-align: left;"| Color(s)
! style="text-align: left;" | Max speed
| {{{colors|}}}
| {{{maxspeed|}}} mph
|-
|-
! style="text-align: left;"| Max speed
! style="text-align: left;" | Color
| {{{maxspeed|}}}
| {{#arraymap:{{{colors|}}}|,|x|x|<br>}}
|-
{{#if:{{{label1|}}}{{{label2|}}}{{{label3|}}}|
! style="text-align: left;"| Functions
| {{{functions|}}}
{{#if:{{{label1|}}}|<nowiki />
{{!}}-
{{!}}-
{{!}} style="font-weight:bold;" {{!}} {{{label1}}}
{{!}} style="font-weight:bold;" {{!}} {{{label1}}}
{{!}} {{{data1|}}}
{{!}} {{{data1|}}}
}}<!--
{{#if:{{{label2|}}}|{{!}}-
-->{{#if:{{{label2|}}}|<nowiki />
{{!}}-
{{!}} style="font-weight:bold;" {{!}} {{{label2}}}
{{!}} style="font-weight:bold;" {{!}} {{{label2}}}
{{!}} {{{data2|}}}
{{!}} {{{data2|}}}
}}<!--
}}
-->{{#if:{{{label3|}}}|<nowiki />
{{#if:{{{label3|}}}|{{!}}-
{{!}}-
{{!}} style="font-weight:bold;" {{!}} {{{label3}}}
{{!}} style="font-weight:bold;" {{!}} {{{label3}}}
{{!}} {{{data3|}}}
{{!}} {{{data3|}}}
}}
}}
|}<noinclude>
}}
<templatedata>
|}{{#arraymap:{{{enginetype|}}}|,|x|[[Category:x]]|\n}}
{
{{#arraymap:{{{functions|}}}|,|x|[[Category:x]]|\n}}<noinclude>{{#cargo_declare:
"params": {
_table=Thumbnails_Forklift
"image": {
|Page=String
"label": "Forklift cover image",
|Image=File
"description": "Upload an image, then insert name.filename",
|Engine_Type=List ( , ) of String
"example": "UploadedImage.jpg",
|Functions=List ( , ) of String
"type": "wiki-file-name",
|Max_Speed=Float
"required": true
|Colors=List ( , ) of String
},
|Creator=String
"enginetype": {
}}</noinclude><includeonly>{{#ifeq: {{NAMESPACE}} | |{{#cargo_store:
"label": "Engine type",
_table=Thumbnails_Forklift
"description": "The type of engine the forklift runs on",
|Page={{PAGENAME}}
"example": "Diesel",
|Image={{{image|}}}
"type": "string",
|Engine_Type={{{enginetype|}}}
"required": true
|Functions={{{functions|}}}
},
|Max_Speed={{{maxspeed|}}}
"colors": {
|Colors={{{colors|}}}
"label": "Color(s)",
|Creator={{{creator|}}}
"description": "The types of available colors for the forklift",
|quiet=yes
"example": "Red",
}}}}{{#if: {{{creator|}}} | [[Category:Certified by {{{creator}}}]] }}</includeonly>
"type": "string",
"required": true
},
"maxspeed": {
"label": "Max speed",
"description": "The maximum speed the forklift can achieve (if not drivable, write \"N/A\")",
"example": "20 km/h",
"type": "string",
"required": true
},
"functions": {
"label": "Functions",
"description": "The functions available for the forklift. Separate  several with <br>",
"example": "Lifting",
"type": "string",
"required": true
},
"label1": {
"label": "Extra Row 1 Title",
"description": "The title for custom row 1 (e.g. 'Capacity')",
"type": "string"
},
"data1": {
"label": "Extra Row 1 Content",
"description": "Add content to row 1",
"type": "string"
},
"label2": {
"label": "Extra Row 2 Title",
"description": "The title for custom row 2 (e.g. 'Length')",
"type": "string"
},
"data2": {
"label": "Extra Row 2 Content",
"description": "Add content to row 2",
"type": "string"
},
"label3": {
"label": "Extra Row 3 Title",
"description": "The title for custom row 3 (e.g. 'Certification')",
"type": "string"
},
"data3": {
"label": "Extra Row 3 Content",
"description": "Add content to row 3",
"type": "string"
}
},
"description": "Infobox Forklift"
}
</templatedata>
</noinclude>

Latest revision as of 00:04, 1 May 2026

Infobox Forklift
Engine type
Function(s)
Max speed mph
Color

This template defines the table "Thumbnails_Forklift". View table.