Template:InfoBoxVehicleStaff: Difference between revisions
Template page
More actions
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) | | 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" | | ! class="infobox__field-name" | Type | ||
| class="infobox__field-value" | {{{ | | 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|}}} | | | split_list | {{{Contributors|}}} | {split}, | Unknown/None}} | ||
|- | |- | ||
</includeonly> | |||
<noinclude> | <noinclude> | ||
<!-- Example values --> | <!-- Example values --> | ||
{{Template:StaffVehicleInfoBox | {{Template:StaffVehicleInfoBox | ||
| name = | | name = R'M 37.2 SG Mobula Specter | ||
| caption = | | caption = The Mobula flying low over the [[Thalassan Sea]] | ||
| | | Type = Jet Engine | ||
| Contributors = | | 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> |
Revision as of 08:01, 12 May 2025
Vehicle InfoBox for Staff/Event vehicles
![]() | |
The Mobula flying low over the Thalassan Sea | |
General Information | |
Type | Jet Engine |
---|---|
Rarity | Mythical |
Obtainability | Mod Pool Vehicle |
Previous Owner | RentoHonda |
Customization | ![]() ![]() |
Contributors | RentoHonda |
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the vehicle, this should be the same as the name of the page.
| String | suggested |
Type | Type | The license required to operate this vehicle
| String | suggested |
Rarity | Rarity | The ingame rarity of the vehicle.
| String | suggested |
Obtainability | Obtainability Type | Current location of the vehicle
| String | suggested |
(Previous) Owner / Event Tier | Owner | The current (original if in mod pool) owner of the vehicle
| String | suggested |
Vehicle customization | Customization | List of customization options the vehicle has. Options are to be separated by commas.
| String | suggested |
Image | photo | Image shown at the top of the InfoBox.
| File | suggested |
Image caption | caption | A brief description of the image shown in the InfoBox.
| String | suggested |