Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:InfoBoxVehicleStaff: Difference between revisions

Template page
Sqwishyish (talk | contribs)
Created staffvehicleinfobox (WIP)
 
Sqwishyish (talk | contribs)
Finished the staff vehicle info box
Line 2: Line 2:
<templatestyles src="Template:Infobox/styles.css"/>
<templatestyles src="Template:Infobox/styles.css"/>
{| class="infobox"
{| class="infobox"
|+ class="infobox__title rarity-{{lc:{{#invoke:String|replace|Mythical| |}}}}" | {{{name|{{PAGENAME}}}}}
|+ class="infobox__title rarity-{{lc:{{#invoke:String|replace|{{{Rarity|Mythical}}}| |}}}}" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" class="infobox__image" | {{#ifexist: {{PAGENAME}}photo.png | [[File:{{{photo|{{PAGENAME}}photo.png}}}|thumb|300px|{{{caption|}}}]]| [[File:{{{photo|Aerowikiplaceholder.jpg}}}|300px]]}}
| colspan="2" class="infobox__image" | {{#ifexist: {{PAGENAME}}photo.png | [[File:{{{photo|{{PAGENAME}}photo.png}}}|thumb|300px|{{{caption|}}}]]| [[File:{{{photo|Aerowikiplaceholder.jpg}}}|300px]]}}
|-
|-
| colspan="2" class="infobox__caption" | {{{caption|(Empty Caption) [[Category: Missing Parameters]]}}}
| colspan="2" class="infobox__caption" | {{{caption|(Empty Caption)}}}
|-
|-
| colspan="2" class="infobox__subtitles" | {{{General Information|General Information}}}
| colspan="2" class="infobox__subtitles" | {{{General Information|General Information}}}
|-
|-
! class="infobox__field-name" | Current location
! class="infobox__field-name" | Type
| class="infobox__field-value" | {{{location}}}
| class="infobox__field-value" | {{#if: {{{Type|}}} | [[:Category:{{{Type}}}s|{{{Type}}}]] | Unknown}}
|-
! class="infobox__field-name" | Rarity
| class="infobox__field-value" | <span class="infobox__rarity-value rarity-{{lc:{{#invoke:String|replace|{{{Rarity|Mythical}}}| |}}}}">{{{Rarity|Mythical}}} {{#if: {{{Rarity|Mythical}}}}}</span>
|-
! class="infobox__field-name" | Obtainability
| class="infobox__field-value" | {{#if: {{{Obtainability Type|}}} | [[Category:{{{Obtainability Type}}}]][[:Category:{{{Obtainability Type}}}s|{{{Obtainability Type}}}]] | Unknown}}
|-
{{#ifeq: {{{Obtainability Type}}} | Event Vehicle |
{{#iferror: {{#expr: {{{Owner|}}} + 0 }} ||
<tr>
<th class="infobox__field-name">Event Tier</th>
<td class="infobox__field-value">'''{{{Owner}}}'''</td>
</tr>
}}
|{{#ifeq: {{{Obtainability Type}}} | Developer Vehicle |
<tr>
<th class="infobox__field-name">Owner</th>
<td class="infobox__field-value">{{{Owner|Unknown}}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Senior Moderator Vehicle |
<tr>
<th class="infobox__field-name">Owner</th>
<td class="infobox__field-value">{{{Owner|Unknown}}}</td>
</tr>
|{{#ifeq: {{{Obtainability Type}}} | Mod Pool Vehicle |
{{#if: {{{Owner|}}} |
<tr>
<th class="infobox__field-name">Previous Owner</th>
<td class="infobox__field-value">{{{Owner|Unknown}}}</td>
</tr>
}}
}}}}}}}}
|-
! class="infobox__field-name" | Customization
| class="infobox__field-value" |  {{#invoke: Sqwishyish/ListTools
| split_list | {{{Customization|}}} | {{Checkbox (colored)|checked|color=blue}} [[:Category: {split}|{split}]] <br> | Unknown/None}}  
|-
|-
! class="infobox__field-name" | Contributors
! class="infobox__field-name" | Contributors
| class="infobox__field-value" | {{#invoke: Sqwishyish/ListTools  
| class="infobox__field-value" | {{#invoke: Sqwishyish/ListTools  
| split_list | {{{Contributors|}}} | [[Category: {split}]][[:Category: {split}|{split}]], | Unknown/None [[Category: Missing Parameters]]}}  
| split_list | {{{Contributors|}}} | {split}, | Unknown/None}}  
|-
|-
[[Category:Vehicles]]</includeonly>
</includeonly>
<noinclude>
<noinclude>
<!-- Example values -->
<!-- Example values -->
{{Template:StaffVehicleInfoBox
{{Template:StaffVehicleInfoBox
| name = Boeing 737-800
| name = R'M 37.2 SG Mobula Specter
| caption = Boeing 737-800 flying low over the [[Thalassan Sea]]
| caption = The Mobula flying low over the [[Thalassan Sea]]
| location = Mod Pool
| Type = Jet Engine
| Contributors = EAT_RIC3, Giovanni_085391
| Rarity = Mythical
| Obtainability Type = Mod Pool Vehicle
| Owner = RentoHonda
| Contributors = RentoHonda
| Customization = Advanced Liveries, Advanced Customization
| photo = Aerowikiplaceholder.jpg
| photo = Aerowikiplaceholder.jpg
}}
}}
</noinclude>
<templatedata>
{
"params": {
"name": {
"label": "Name",
"description": "The name of the vehicle, this should be the same as the name of the page.",
"type": "string",
"example": "Boeing 737-800",
"suggested": true
},
"Type": {
"label": "Type",
"description": "The license required to operate this vehicle",
"type": "string",
"suggestedvalues": [
"Ultralight",
"Single Engine",
"Helicopter",
"Multi Engine",
"Jet Engine",
"Supersonic Transport",
"VTOL",
"Airship",
"Boat",
"Ground Vehicle"
],
"example": "Jet Engine",
"suggested": true
},
"photo": {
"label": "Image",
"description": "Image shown at the top of the InfoBox.",
"example": "Aerowikiplaceholder.jpg",
"type": "wiki-file-name",
"autovalue": "Aerowikiplaceholder.jpg",
"suggested": true
},
"caption": {
"label": "Image caption",
"description": "A brief description of the image shown in the InfoBox.",
"type": "string",
"example": "Boeing 737-800 flying low over the [[Thalassan Sea]]",
"suggested": true
},
"Rarity": {
"label": "Rarity",
"description": "The ingame rarity of the vehicle.",
"type": "string",
"suggestedvalues": [
"Widespread",
"Common",
"Uncommon",
"Rare",
"Ultra Rare",
"Epic",
"Mythical",
"Legendary"
],
"example": "Common",
"suggested": true
},
"Obtainability Type": {
"label": "Obtainability",
"description": "Current location of the vehicle",
"example": "Developer Vehicle",
"type": "string",
"suggestedvalues": [
"Mod Pool Vehicle",
"Senior Moderator Vehicle",
"Developer Vehicle",
"Event Vehicle",
"Miscellaneous / Unobtainable"
],
"suggested": true
},
"Owner": {
"label": "(Previous) Owner / Event Tier",
"description": "The current (original if in mod pool) owner of the vehicle",
"example": "RentoHonda",
"type": "string",
"suggested": true
},
"Customization": {
"label": "Vehicle customization",
"description": "List of customization options the vehicle has. Options are to be separated by commas.",
"type": "string",
"example": "Advanced Liveries, Advanced Customization, Cockpit",
"suggested": true
}
},
"description": "Vehicle InfoBox for Staff/Event vehicles",
"paramOrder": [
"name",
"Type",
"Rarity",
"Obtainability Type",
"Owner",
"Customization",
"photo",
"caption"
]
}
</templatedata></noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.