Jump to content

Template:Infobox personal vehicle: Difference between revisions

From the Vrienden Universe, a fictional wiki
Page created
Tags: Mobile edit Mobile web edit Advanced mobile edit
No edit summary
Tags: Mobile edit Mobile web edit Advanced mobile edit
Line 1: Line 1:
<templatestyles src="Template:Infobox automobile/styles.css" />
<templatestyles src="Template:Infobox automobile/styles.css" />


{{#invoke:infobox|infoboxTemplate
{{Infobox
| child = {{{child|{{{embed|}}}}}}
| child = {{{child|{{#ifeq:{{lc:{{{embed|}}}}}|yes|yes|}}}}}
| autoheaders = yes
| bodyclass = hproduct infobox-automobile infobox-personal-vehicle
| bodyclass = hproduct infobox-automobile infobox-personal-vehicle
| aboveclass = fn
| aboveclass = fn
| above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}
| above = {{#ifeq:{{lc:{{{embed|}}}}}|yes||{{{name|{{PAGENAMEBASE}}}}}}
| labelstyle = white-space:nowrap;


| image = {{#invoke:InfoboxImage|InfoboxImage
| image = {{#invoke:InfoboxImage|InfoboxImage
  | image={{{image|}}}
  | image = {{{image|}}}
  | size={{{image_size|}}}
  | size = {{{image_size|}}}
  | sizedefault=frameless
  | sizedefault = frameless
  | upright={{{image_upright|1.25}}}
  | upright = {{{image_upright|1.25}}}
  | alt={{{alt|}}}
  | alt = {{{alt|}}}
  | suppressplaceholder=yes
  | suppressplaceholder = yes
  }}
  }}
| caption = {{{caption|}}}
| caption = {{{caption|}}}


| header1 = {{#ifeq:{{lc:{{{child|{{{embed|}}}}}}}}|yes|Personal vehicle|Vehicle}}
| header1 = {{#ifeq:{{lc:{{{embed|}}}}}|yes|Personal vehicle|Vehicle}}


| label2 = Nickname
| label2 = Nickname
| data2 = {{{nickname|}}}
| data2 = {{{nickname|}}}
| class2 = nickname


| label3 = Type
| label3 = Type
| data3 = {{{type|}}}
| data3 = {{{type|}}}
| class3 = category


| label4 = Manufacturer
| label4 = Manufacturer
| data4 = {{{manufacturer|}}}
| data4 = {{{manufacturer|}}}
| class4 = org


| label5 = Model
| label5 = Model
Line 93: Line 92:
| label26 = Status
| label26 = Status
| data26 = {{{status|}}}
| data26 = {{{status|}}}
| class26 = category


| label27 = Fate
| label27 = Fate
Line 103: Line 101:
| label29 = Era
| label29 = Era
| data29 = {{{era|}}}
| data29 = {{{era|}}}
| class29 = category
}}
}}


Line 109: Line 106:
| unknown = {{main other|[[Category:Pages using infobox personal vehicle with unknown parameters|_VALUE_{{PAGENAME}}]]}}
| unknown = {{main other|[[Category:Pages using infobox personal vehicle with unknown parameters|_VALUE_{{PAGENAME}}]]}}
| preview = Page using [[Template:Infobox personal vehicle]] with unknown parameter "_VALUE_"
| preview = Page using [[Template:Infobox personal vehicle]] with unknown parameter "_VALUE_"
| ignoreblank = n
| ignoreblank = y
| acquired
| alt
| alt
| body_style
| body_style
Line 158: Line 156:
'''Infobox personal vehicle''' is used for a specific vehicle owned or used by a person or organization. Articles about a vehicle model or production series should use {{tl|Infobox automobile}}.
'''Infobox personal vehicle''' is used for a specific vehicle owned or used by a person or organization. Articles about a vehicle model or production series should use {{tl|Infobox automobile}}.


The template can also be embedded inside another infobox with <code>|embed = yes</code>.
Empty sections are hidden automatically. The template can be embedded in another infobox by setting <code>|embed = yes</code>.


== Usage ==
== Usage ==
Line 200: Line 198:
== Embedded usage ==
== Embedded usage ==


The template may be placed in a supported <code>module</code> field of another infobox.
Use <code>|embed = yes</code> when the vehicle infobox is placed in the module field of another infobox.


<pre>
<pre>
Line 216: Line 214:
</pre>
</pre>


When embedded in a person's infobox, fields already established by the outer infobox should normally be omitted. For example, the owner's name does not need to be repeated.
When embedded in a person's infobox, information already established by the outer infobox should not be repeated. The <code>owner</code> field can therefore be omitted when the vehicle belongs to the person whose infobox contains the module.
 
== Linking ==
 
Link values when they identify subjects that have or merit their own wiki page.
 
Typical linked fields are:
 
* <code>manufacturer</code>, for example <code>[[BMW]]</code>
* <code>model</code>, for example <code>[[BMW 1M|1M]]</code>
* <code>owner</code>
* <code>previous_owner</code>
* <code>registration_country</code>
* <code>location</code>
* <code>era</code>
 
A relevant red link should be retained when the subject merits a future article.
 
Do not automatically link ordinary data such as a nickname, colour, year, registration plate or power output.


== Parameters ==
== Parameters ==


; name
; name
: Name displayed at the top of a standalone infobox. The page title is used when this parameter is omitted.
: Name displayed at the top of a standalone infobox. The page title is used when omitted.


; image
; image
Line 245: Line 261:


; manufacturer
; manufacturer
: Manufacturer of the vehicle.
: Manufacturer of the vehicle. Link the manufacturer when a page exists or is intended.


; model
; model
: Vehicle model.
: Vehicle model. Link to the exact model article when applicable.


; model_year
; model_year
Line 260: Line 276:


; colour
; colour
: Colour of the vehicle. <code>color</code> is supported as an alternative parameter.
: Colour of the vehicle. <code>color</code> is supported as an alternative spelling.


; owner
; owner
Line 269: Line 285:


; acquired
; acquired
: Date or year on which the vehicle was acquired.
: Date or year when the vehicle was acquired.


; ownership_ended
; ownership_ended
: Date or year on which ownership ended.
: Date or year when ownership ended.


; registration
; registration
Line 311: Line 327:


; era
; era
: Applicable era. Era names should be linked. Use {{tl|hlist}} when more than one era applies.
: Applicable era. Link every era name. Use {{tl|hlist}} when more than one era applies.


; embed
; embed
Line 317: Line 333:


; child
; child
: Alternative child-infobox parameter used by the underlying infobox module.
: Child-infobox parameter supported for compatibility with the underlying infobox system.


[[Category:Infobox templates]]
[[Category:Infobox templates]]
}}
}}
</noinclude>
</noinclude>

Revision as of 19:56, 28 September 2026

{{Infobox | child = | autoheaders = yes | bodyclass = hproduct infobox-automobile infobox-personal-vehicle | aboveclass = fn | above = Infobox personal vehicle}