Difference between revisions of "Template:Vehicle"

From The Coppermind
Jump to navigation Jump to search
m (update with new stuff)
(rm featured in)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
  +
{{infobox
{{infobox|title={{{title|{{PAGENAME}}|}}}|id=vehicle|
+
|title={{{name|{{PAGENAME}}}}}|id=vehicle|
   
 
{{#if:{{{image|}}} |{{row/image+artist | {{{image}}} }} }}
 
{{#if:{{{image|}}} |{{row/image+artist | {{{image}}} }} }}
Line 11: Line 12:
   
 
<!-- world & universe -->
 
<!-- world & universe -->
{{#if:{{{earth|}}} |{{row/kv| World | [[Earth ({{{earth}}})]]<!-- REF:-->{{{^world|}}} }} {{info/earth}} }}
+
{{#if:{{{earth|}}} |{{row/kv| World of Origin | [[Earth ({{{earth}}})]]<!-- REF:-->{{{^world|}}} }} {{info/earth}} }}
{{#if:{{{world|}}} |{{row/kv| World | [[{{{world}}}]]<!-- REF:-->{{{^world|}}} }} {{info/world}} }}
+
{{#if:{{{world|}}} |{{row/kv| World of Origin | {{toponym link|{{{world}}}}}<!-- REF:-->{{{^world|}}} }} {{info/world}} }}
{{#if:{{{'world|}}} |{{row/kv| World | {{{'world}}}<!-- REF:-->{{{^world|}}} }} {{raw/world}} }}
+
{{#if:{{{'world|}}} |{{row/kv| World of Origin | {{{'world}}}<!-- REF:-->{{{^world|}}} }} {{raw/world}} }}
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}} }} {{info/universe}} }}
+
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}} }} {{info/universe}} }}
   
 
{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
 
{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
Line 21: Line 22:
 
-->}}
 
-->}}
 
<!-- REF PARAMETER: -->{{#if:{{{^world|}}}| {{info/^ref}} }}
 
<!-- REF PARAMETER: -->{{#if:{{{^world|}}}| {{info/^ref}} }}
 
<!-- featured in -->{{row/kv| Featured In | ''{{{books}}}'' }}
 
{{#if:{{{books|}}}|<!-- see above ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ELSE: -->| <includeonly>{{missing/books}}</includeonly> }}
 
   
 
<!--
 
<!--
   
 
CATS:
 
CATS:
-->|default-cats=[[category: Objects and Materials]]<!--
+
-->{{cat ns|Objects and Materials|only=0}}<!--
-->|{{#if:{{{cats|}}}|<!-- -->|-}}replacement-cats={{{cats}}}<!--
 
   
 
END:
 
END:
Line 49: Line 46:
 
|world=
 
|world=
 
|universe=
 
|universe=
|books=
 
 
}}
 
}}
 
</pre>
 
</pre>
   
 
=== Required ===
 
=== Required ===
; <code>|books=</code>: as in other infoboxes the <code>books</code> parameter should provide a list of books or series the vehicle is '''Featured In'''
 
 
; <code>|type=</code>: provide a [[:category: link macros|tag]] indicating what kind of vehicle it is:
 
; <code>|type=</code>: provide a [[:category: link macros|tag]] indicating what kind of vehicle it is:
 
* Carriages and other road vehicles are tagged with {{t|cat tag|roadcraft}}
 
* Carriages and other road vehicles are tagged with {{t|cat tag|roadcraft}}
Line 122: Line 117:
 
"world": {},
 
"world": {},
 
"universe": {},
 
"universe": {},
"books": {
 
"label": "Featured In",
 
"description": "link to the books or series the vehicle is featured in",
 
"type": "content",
 
"required": true
 
},
 
 
"cats": {
 
"cats": {
 
"label": "Categories",
 
"label": "Categories",
Line 139: Line 128:
 
},
 
},
 
"paramOrder": [
 
"paramOrder": [
"books",
 
 
"type",
 
"type",
 
"creator",
 
"creator",

Latest revision as of 18:49, 15 March 2024

Vehicle
Type Unknown

The {{vehicle}} template is used on articles describing boats, trains, spaceships and other modes of transport.

Parameters

{{vehicle|title=
|image=
|type=
|creator=
|creators
|owner=
|owners=
|captain=
|earth=
|world=
|universe=
}}

Required

|type=
provide a tag indicating what kind of vehicle it is:
  • Carriages and other road vehicles are tagged with {{cat tag|roadcraft}}
  • Trains and other rail craft are tagged with {{cat tag|railcraft|Traincar}}
  • Aircraft are tagged with {{cat tag|Aircraft}} or {{cat tag|aircraft|Airship}} for example
  • Watercraft are tagged with {{cat tag|watercraft|Ship}} or {{cat tag|watercraft|Boat}}
  • Spacecraft are tagged with {{cat tag|Spacecraft}}
Any more specialised vehicles should be {{tag}}d to the specific page and then added to one of the above too
If the vehicle is present in {{tag+}}, that template should add one of the above categories automatically
If no type is provided, it will show as Type: Unknown as can be seen above

Location & Setting

|world=
provide the name of the planet and it will be linked to
|earth=
provide the name of the series to link to the appropriate alternative earth page
|universe=
if either of the above are too specific a generalised universe link or tag can be passed

If none of the above properties are given, it will show as World: Unknown as can be seen above

Optional

|creator= or |creators=
provide links to the people or groups who created the vehicle
|owner= or |owners=
provide links to the people or groups who own or have owned the vehicle
|captain=
provide a link to the person in charge of the vehicles operations

Advanced

|title=
override the infobox title to the name passed
|cats=
override the default categorisation of category: Objects and Materials
the template will remove the default category when used on any page not in the main namespace

Articles using Template