Difference between revisions of "Template talk:InfoboxVehicle"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(9 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
<pre>
 
<pre>
 
{{InfoboxVehicle
 
{{InfoboxVehicle
|name   = TBD
+
|name     = TBD
|arms    = TBD
+
|alsosee  = TBD
|caption = TBD
+
|architect= TBD
|cargo   = TBD
+
|arms     = TBD
|cr     = TBD
+
|canon   = TBD
|crew   = TBD
+
|caption = TBD
|footnote= TBD
+
|cargo   = TBD
|image   = [[File: Imperial Sunburst-Sun-IISS-Traveller.gif]]
+
|cr       = TBD
|mode   = TBD
+
|crew     = TBD
|pass   = TBD
+
|footnote = TBD
|size   = TBD
+
|image   = [[File: Wiki Navy.png]]
|speed   = TBD
+
|IOC      = TBD
|TL      = TBD
+
|mode     = TBD
 +
|origin  = Third Imperium
 +
|pass     = TBD
 +
|QVP      = TBD
 +
|ref      = TBD
 +
|size     = TBD
 +
|speed   = TBD
 +
|TL       = TBD
 +
|uvp     = TBD
 +
|volume  = TBD
 +
|manufacturer= Various
 
}}
 
}}
 
</pre>
 
</pre>
Line 25: Line 35:
 
|caption = {image caption}
 
|caption = {image caption}
 
|cargo  = {Cargo volume of the craft}
 
|cargo  = {Cargo volume of the craft}
|cr      = {cost in credits, usually imperial credit}
+
|cost    = {cost in credits, usually imperial credit}
 
|crew    = {number of crew members}
 
|crew    = {number of crew members}
 
|footnote= {Additional note}
 
|footnote= {Additional note}
Line 31: Line 41:
 
|mode    = {mode of transport, usually one of ground, flight, water, underwater}
 
|mode    = {mode of transport, usually one of ground, flight, water, underwater}
 
|pass    = {number of carried passengers}
 
|pass    = {number of carried passengers}
 +
|QSP    = {T5 Core Rules Code, pgs. 314, 349}
 
|size    = {mass in kg or tons}
 
|size    = {mass in kg or tons}
 
|speed  = {top speed velocity in kph}
 
|speed  = {top speed velocity in kph}
Line 36: Line 47:
 
}}
 
}}
 
</pre>
 
</pre>
 +
 +
== Change parameter cr to cost ==
 +
 +
To match the [[Template:InfoboxShip]] and [[Template:InfoboxGoods]], I would like to change the "cr" parameter to "cost". This requires updating all the templates currently in use. This can be automated. [[User:Tjoneslo|Tjoneslo]] ([[User talk:Tjoneslo|talk]]) 07:48, 21 June 2020 (EDT)
 +
 +
Agree...I need to touch them all anyway to add type data so can review the results of the automation.[[User:BackworldTraveller|BackworldTraveller]] ([[User talk:BackworldTraveller|talk]]) 07:50, 21 June 2020 (EDT)
 +
 +
: Automation complete. 241 articles updated. If you find problems please let me know. [[User:Tjoneslo|Tjoneslo]] ([[User talk:Tjoneslo|talk]]) 09:48, 21 June 2020 (EDT)
 +
 +
==Addition of type category==
 +
If the category is defined as a link, the category appears as text not as a category definition
 +
 +
so ''|type=Armoured Personnel Carrier'' works while ''|type=[[Armoured Personnel Carrier]]'' doesn't.
 +
 +
Can |Type needs to be displayed as a link (i.e. in double-square-brackets) and used in category?
 +
 +
[[User:BackworldTraveller|BackworldTraveller]] ([[User talk:BackworldTraveller|talk]]) 08:34, 21 June 2020 (EDT)
 +
 +
: Fixed.Please enter type as plain text, not a link. The template will automatically convert it to a link and set the category correctly. [[User:Tjoneslo|Tjoneslo]] ([[User talk:Tjoneslo|talk]]) 09:50, 21 June 2020 (EDT)

Latest revision as of 13:50, 21 June 2020

Notes (2018)[edit]

{{InfoboxVehicle
|name     = TBD
|alsosee  = TBD
|architect= TBD
|arms     = TBD
|canon    = TBD
|caption  = TBD
|cargo    = TBD
|cr       = TBD
|crew     = TBD
|footnote = TBD
|image    = [[File: Wiki Navy.png]]
|IOC      = TBD
|mode     = TBD
|origin   = Third Imperium
|pass     = TBD
|QVP      = TBD
|ref      = TBD
|size     = TBD
|speed    = TBD
|TL       = TBD
|uvp      = TBD
|volume   = TBD
|manufacturer= Various
}}

{{InfoboxVehicle
|name    = {common name}
|arms    = {Weapons carried}
|caption = {image caption}
|cargo   = {Cargo volume of the craft}
|cost    = {cost in credits, usually imperial credit}
|crew    = {number of crew members}
|footnote= {Additional note}
|image   = [[File: Imperial Sunburst-Sun-IISS-Traveller.gif]]
|mode    = {mode of transport, usually one of ground, flight, water, underwater}
|pass    = {number of carried passengers}
|QSP     = {T5 Core Rules Code, pgs. 314, 349}
|size    = {mass in kg or tons}
|speed   = {top speed velocity in kph}
|TL      = [[TL-?]]
}}

Change parameter cr to cost[edit]

To match the Template:InfoboxShip and Template:InfoboxGoods, I would like to change the "cr" parameter to "cost". This requires updating all the templates currently in use. This can be automated. Tjoneslo (talk) 07:48, 21 June 2020 (EDT)

Agree...I need to touch them all anyway to add type data so can review the results of the automation.BackworldTraveller (talk) 07:50, 21 June 2020 (EDT)

Automation complete. 241 articles updated. If you find problems please let me know. Tjoneslo (talk) 09:48, 21 June 2020 (EDT)

Addition of type category[edit]

If the category is defined as a link, the category appears as text not as a category definition

so |type=Armoured Personnel Carrier works while |type=Armoured Personnel Carrier doesn't.

Can |Type needs to be displayed as a link (i.e. in double-square-brackets) and used in category?

BackworldTraveller (talk) 08:34, 21 June 2020 (EDT)

Fixed.Please enter type as plain text, not a link. The template will automatically convert it to a link and set the category correctly. Tjoneslo (talk) 09:50, 21 June 2020 (EDT)