Diferencia entre revisiones de «Plantilla:Vehicle»
Ir a la navegación
Ir a la búsqueda
m (add documentation) |
m (add templatedata) |
||
Línea 75: | Línea 75: | ||
; <code>|cats=</code>: override the default categorisation of [[:category: Objects and Materials]] |
; <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]] |
: the template will remove the default category when used on any page not in the [[help: namespaces|main namespace]] |
||
+ | |||
+ | <templatedata> |
||
+ | { |
||
+ | "params": { |
||
+ | "title": { |
||
+ | "label": "Title", |
||
+ | "description": "override the template title", |
||
+ | "deprecated": true |
||
+ | }, |
||
+ | "type": { |
||
+ | "label": "Type", |
||
+ | "description": "what kind of vehicle is this, use tag templates", |
||
+ | "type": "content", |
||
+ | "required": true |
||
+ | }, |
||
+ | "creator": { |
||
+ | "aliases": [ |
||
+ | "creators" |
||
+ | ], |
||
+ | "label": "Creator", |
||
+ | "description": "link to the people or groups who created the vehicle", |
||
+ | "type": "content", |
||
+ | "suggested": true |
||
+ | }, |
||
+ | "owner": { |
||
+ | "aliases": [ |
||
+ | "owners" |
||
+ | ], |
||
+ | "label": "Owner", |
||
+ | "description": "link to the people or groups who own the vehicle", |
||
+ | "type": "content", |
||
+ | "suggested": true |
||
+ | }, |
||
+ | "captain": { |
||
+ | "label": "Captain", |
||
+ | "description": "link to the lead operator of the vehicle", |
||
+ | "type": "content", |
||
+ | "suggested": true |
||
+ | }, |
||
+ | "earth": {}, |
||
+ | "world": {}, |
||
+ | "universe": {}, |
||
+ | "books": { |
||
+ | "label": "Featured In", |
||
+ | "description": "link to the books or series the vehicle is featured in", |
||
+ | "type": "content", |
||
+ | "required": true |
||
+ | }, |
||
+ | "cats": { |
||
+ | "label": "Categories", |
||
+ | "description": "override the default category", |
||
+ | "default": "[[Category: Objects and Materials]]" |
||
+ | }, |
||
+ | "image-artist": { |
||
+ | "description": "provide attribution for any art", |
||
+ | "deprecated": "{{row/image+artist}} template automatically attributes art in infoboxes" |
||
+ | } |
||
+ | }, |
||
+ | "paramOrder": [ |
||
+ | "books", |
||
+ | "type", |
||
+ | "creator", |
||
+ | "owner", |
||
+ | "captain", |
||
+ | "earth", |
||
+ | "world", |
||
+ | "universe", |
||
+ | "title", |
||
+ | "cats", |
||
+ | "image-artist" |
||
+ | ], |
||
+ | "format": "block" |
||
+ | } |
||
+ | </templatedata> |
Revisión del 18:33 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 asType: 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
Sin descripción.
Parámetro | Descripción | Tipo | Estado | |
---|---|---|---|---|
Featured In | books | link to the books or series the vehicle is featured in | Contenido | obligatorio |
Type | type | what kind of vehicle is this, use tag templates | Contenido | obligatorio |
Creator | creator creators | link to the people or groups who created the vehicle | Contenido | sugerido |
Owner | owner owners | link to the people or groups who own the vehicle | Contenido | sugerido |
Captain | captain | link to the lead operator of the vehicle | Contenido | sugerido |
Earth | earth | sin descripción | Desconocido | opcional |
World | world | sin descripción | Desconocido | opcional |
Universe | universe | sin descripción | Desconocido | opcional |
Title | title | override the template title | Desconocido | en desuso |
Categories | cats | override the default category
| Desconocido | opcional |
Image-artist | image-artist | provide attribution for any art | Desconocido | en desuso |