Diferencia entre revisiones de «Plantilla:Vehicle»

De La Coppermind
Ir a la navegación Ir a la búsqueda
m (add templatedata)
 
(No se muestran 25 ediciones intermedias de 5 usuarios)
Línea 1: Línea 1:
  +
{{infobox
{{infobox|title={{{title|{{PAGENAME}}|}}}|id=vehicle|
+
|title={{{name|{{PAGENAME}}}}}|id=vehicle|
   
<!-- -->{{row/kv|Type |{{{type|''Unknown''}}} }}
+
{{#if:{{{image|}}} |{{row/image+artist | {{{image}}} }} }}
{{#if:{{{creator|}}} |{{row/kv|Creator |{{{creator}}} }}|}}
 
{{#if:{{{creators|}}} |{{row/kv|Creators |{{{creators}}} }}|}}
 
{{#if:{{{owner|}}} |{{row/kv|Owner |{{{owner}}} }}|}}
 
{{#if:{{{owners|}}} |{{row/kv|Owners |{{{owners}}} }}|}}
 
{{#if:{{{captain|}}} |{{row/kv|Captain |{{{captain}}} }}|}}
 
   
{{#if:{{{earth|}}} |{{row/kv|World |[[Earth ({{{earth}}})]] }}
+
<!-- -->{{row/kv| Tipo | {{{type|''Unknown''}}} }} {{#if:{{{type|}}}| {{info/type}} }}
|{{#if:{{{world|}}} |{{row/kv|World |[[{{{world}}}]] }}
+
{{#if:{{{creator|}}} |{{row/kv| Creador | {{{creator}}} }} {{info/creator}} }}
|{{#if:{{{universe|}}} |{{row/kv|Universe |{{{universe}}} }}
+
{{#if:{{{creators|}}} |{{row/kv| Creadores | {{{creators}}} }} {{info/creators}} }}
<!-- ELSE -->|{{row/kv|World |''Unknown'' }}
+
{{#if:{{{owner|}}} |{{row/kv| Propietario | {{{owner}}} }} {{info/owner}} }}
 
{{#if:{{{owners|}}} |{{row/kv| Propietarios | {{{owners}}} }} {{info/owners}} }}
<!-- END IFs -->}}|}}|}}
 
 
{{#if:{{{captain|}}} |{{row/kv| Capitán | {{{captain}}} }} {{info/creator}} }}
   
  +
<!-- world & universe -->
{{row/kv|Featured In |''{{{books}}}''}}
 
  +
{{#if:{{{earth|}}} |{{row/kv| Mundo de origen | [[Earth ({{{earth}}})]]<!-- REF:-->{{{^world|}}} }} {{info/earth}} }}
  +
{{#if:{{{world|}}} |{{row/kv| Mundo de origen | {{toponym link|{{{world}}}}}<!-- REF:-->{{{^world|}}} }} {{info/world}} }}
  +
{{#if:{{{'world|}}} |{{row/kv| Mundo de origen | {{{'world}}}<!-- REF:-->{{{^world|}}} }} {{raw/world}} }}
 
{{#if:{{{universe|}}} |{{row/kv| Universo | {{{universe}}} }} {{info/universe}} }}
   
  +
{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
}}<includeonly><!--
 
  +
---->|<!-- there is a location row present
  +
---->| <includeonly>{{missing/world}}</includeonly> <!-- tag with missing world-location
 
-->}}
  +
<!-- REF PARAMETER: -->{{#if:{{{^world|}}}| {{info/^ref}} }}
   
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]]}}<!--
 
   
  +
CATS:
--></includeonly><noinclude>[[category: infoboxes]]
 
  +
-->{{cat ns|Objetos y materiales|only=0}}<!--
  +
  +
END:
 
-->}}<noinclude>[[category: infoboxes]]
   
 
The {{t|vehicle}} template is used on articles describing 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.
Línea 35: Línea 37:
 
<pre class=mw-code>
 
<pre class=mw-code>
 
{{vehicle|title=
 
{{vehicle|title=
  +
|image=
 
|type=
 
|type=
 
|creator=
 
|creator=
Línea 44: Línea 47:
 
|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}}
* Trains and other rail craft are tagged with {{t|cat tag|railcraft|Traincar}}
+
* Trains and other rail craft are tagged with {{t|cat tag|ferrocarril|Traincar}}
 
* Aircraft are tagged with {{t|cat tag|Aircraft}} or {{t|cat tag|aircraft|Airship}} for example
 
* 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}}
+
* Watercraft are tagged with {{t|cat tag|Embarcaciones|Ship}} or {{t|cat tag|Embarcaciones|Boat}}
 
* Spacecraft are tagged with {{t|cat tag|Spacecraft}}
 
* 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
 
: Any more specialised vehicles should be {{t|tag}}d to the specific page and then added to one of the above too
Línea 76: Línea 77:
 
: 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>
+
<!-- <templatedata>
 
{
 
{
 
"params": {
 
"params": {
Línea 117: Línea 118:
 
"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",
 
"description": "override the default category",
 
"description": "override the default category",
"default": "[[Category: Objects and Materials]]"
+
"default": "[[Categoría:Objetos y materiales]]"
 
},
 
},
 
"image-artist": {
 
"image-artist": {
Línea 134: Línea 129:
 
},
 
},
 
"paramOrder": [
 
"paramOrder": [
"books",
 
 
"type",
 
"type",
 
"creator",
 
"creator",
Línea 149: Línea 143:
 
}
 
}
 
</templatedata>
 
</templatedata>
  +
-->
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Revisión actual del 14:29 5 abr 2024

Vehicle
Tipo 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|ferrocarril|Traincar}}
  • Aircraft are tagged with {{cat tag|Aircraft}} or {{cat tag|aircraft|Airship}} for example
  • Watercraft are tagged with {{cat tag|Embarcaciones|Ship}} or {{cat tag|Embarcaciones|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