Diferencia entre revisiones de «Plantilla:Vehicle»

De La Coppermind
Ir a la navegación Ir a la búsqueda
m (+redundant cat)
m (add documentation)
Línea 18: Línea 18:
 
}}<includeonly><!--
 
}}<includeonly><!--
   
-->[[Category: Objects and Materials]]<!--
+
provide |cats= to override the default [[:Category: Objects & Materials]]
  +
-->{{{cats|<!--
  +
-->{{#if:{{NAMESPACE}}<!--
  +
-->|<-- page is in a namespace other than 0
  +
-->|[[Category: Objects and Materials]]<!--
  +
-->}}<!--
  +
-->}}}<!--
   
 
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!--
 
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!--
   
--></includeonly><noinclude>
+
--></includeonly><noinclude>[[category: infoboxes]]
This is used for vehicles like boats, trains, spaceships and other modes of transport.
 
   
 
The {{t|vehicle}} template is used on articles describing boats, trains, spaceships and other modes of transport.
[[Category: Infoboxes]]
 
  +
  +
== Parameters ==
  +
<pre class=mw-code>
  +
{{vehicle|title=
  +
|type=
  +
|creator=
  +
|creators
  +
|owner=
  +
|owners=
  +
|captain=
  +
|earth=
  +
|world=
  +
|universe=
  +
|books=
  +
}}
  +
</pre>
  +
  +
=== 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:
  +
* Carriages and other road vehicles are tagged with {{t|cat tag|roadcraft}}
  +
* Trains and other rail craft are tagged with {{t|cat tag|railcraft|Traincar}}
  +
* Aircraft are tagged with {{t|cat tag|Aircraft}} or {{t|cat tag|aircraft|Airship}} for example
  +
* Watercraft are tagged with {{t|cat tag|watercraft|Ship}} or {{t|cat tag|watercraft|Boat}}
  +
* Spacecraft are tagged with {{t|cat tag|Spacecraft}}
  +
: Any more specialised vehicles should be {{t|tag}}d to the specific page and then added to one of the above too
  +
: If the vehicle is present in {{t|tag+}}, that template should add one of the above categories automatically
  +
: If no <code>type</code> is provided, it will show as <code>'''Type:''' ''Unknown''</code> as can be seen above
  +
  +
=== Location & Setting ===
  +
; <code>|world=</code>: provide the name of the planet and it will be linked to
  +
; <code>|earth=</code>: provide the name of the series to link to the appropriate alternative earth page
  +
; <code>|universe=</code>: 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 <code>'''World:''' ''Unknown''</code> as can be seen above
  +
  +
=== Optional ===
  +
; <code>|creator=</code> or <code>|creators=</code>: provide links to the people or groups who created the vehicle
  +
; <code>|owner=</code> or <code>|owners=</code>: provide links to the people or groups who own or have owned the vehicle
  +
; <code>|captain=</code>: provide a link to the person in charge of the vehicles operations
  +
  +
=== Advanced ===
  +
; <code>|title=</code>: override the infobox title to the name passed
  +
; <code>|cats=</code>: override the default categorisation of [[:category: Objects and Materials]]
  +
: the template will remove the default category when used on any page not in the [[help: namespaces|main namespace]]

Revisión del 18:16 30 oct 2018

Vehicle
Type Unknown
World Unknown
Featured In {{{books}}}

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

Parameters

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

Required

|books=
as in other infoboxes the books parameter should provide a list of books or series the vehicle is Featured In
|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