Difference between revisions of "Template:Infobox unit/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jikybebna
 
(32 intermediate revisions by 13 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES WHERE INDICATED AT THE BOTTOM OF THIS PAGE -->
−
{{Generic template demo
+
{{Parameter names example
−
  |name |image |caption |standard |quantity |symbol |symbol2 |dimension |namedafter |extralabel |extradata
+
  |name |image |caption |standard |quantity |symbol |symbol2 |symbol3 |namedafter |extraheader |extralabel |extradata
 
  |units1 |inunits1 |units2 |inunits2 |units3=...... |inunits3=...... |units6 |inunits6
 
  |units1 |inunits1 |units2 |inunits2 |units3=...... |inunits3=...... |units6 |inunits6
 
  |units_imp1 |inunits_imp1 |units_imp2 |inunits_imp2 |units_imp3=...... |inunits_imp3=...... |units_imp6 |inunits_imp6
 
  |units_imp1 |inunits_imp1 |units_imp2 |inunits_imp2 |units_imp3=...... |inunits_imp3=...... |units_imp6 |inunits_imp6
 
  |units_us1 |inunits_us1 |units_us2 |inunits_us2 |units_us3=...... |inunits_us3=...... |units_us6 |inunits_us6
 
  |units_us1 |inunits_us1 |units_us2 |inunits_us2 |units_us3=...... |inunits_us3=...... |units_us6 |inunits_us6
 +
|authority |event |effective |definition
 
}}
 
}}
  
Line 19: Line 20:
 
| symbol      =  
 
| symbol      =  
 
| symbol2      =  
 
| symbol2      =  
−
| dimension    =
+
| symbol3      =  
 
| namedafter  =  
 
| namedafter  =  
 
| extralabel  =  
 
| extralabel  =  
 
| extradata    =  
 
| extradata    =  
−
| units1 =  
+
| units1       =  
 
| inunits1    =  
 
| inunits1    =  
 
<!--...-->
 
<!--...-->
Line 53: Line 54:
 
| standard  || The unit system ([[system of measurement]]) of which the unit is a part (e.g. [[SI]])
 
| standard  || The unit system ([[system of measurement]]) of which the unit is a part (e.g. [[SI]])
 
|-
 
|-
−
| quantity  || The [[physical quantity]] of which it is a unit
+
| quantity  || The type of [[physical quantity|quantity]] of which it is a unit
 
|-
 
|-
 
| symbol    || The symbol used for the [[Units of measurement|unit]]
 
| symbol    || The symbol used for the [[Units of measurement|unit]]
Line 59: Line 60:
 
| symbol2  || A secondary, alternative symbol for the unit
 
| symbol2  || A secondary, alternative symbol for the unit
 
|-
 
|-
−
| dimension   || The [[dimensional analysis|dimensional symbol]] of the [[base quantity]] for the unit
+
| symbol3   || A tertiary symbol for the unit
 
|-
 
|-
 
| namedafter|| The person after which the unit is named
 
| namedafter|| The person after which the unit is named
 
|-
 
|-
−
| extralabel<br>extradata || Miscellaneous (e.g. If there's just one unit conversion, it can be put here.)
+
| extraheader<br>extralabel<br>extradata<br>extraheader2<br>extralabel2<br>extradata2 || Miscellaneous (e.g., a unit conversion if only one is given)
 
|-
 
|-
 
| inunits''N''    || Conversions: the unit expressed in {{{units''N''}}}, where ''N'' can be 1 to 6
 
| inunits''N''    || Conversions: the unit expressed in {{{units''N''}}}, where ''N'' can be 1 to 6
Line 78: Line 79:
 
| name = coulomb
 
| name = coulomb
 
| standard = [[SI derived unit]]
 
| standard = [[SI derived unit]]
−
| quantity = [[Electric charge]]
+
| quantity = [[electric charge]]
 
| symbol = C
 
| symbol = C
 
| namedafter = [[Charles-Augustin de Coulomb]]
 
| namedafter = [[Charles-Augustin de Coulomb]]
 
| units1 = [[SI base unit]]s
 
| units1 = [[SI base unit]]s
−
| inunits1 = 1 [[Ampere|A]] [[Second|s]]
+
| inunits1 = 1 [[Ampere|A]]⋅[[Second|s]]
 
| units2 = [[CGS unit]]s
 
| units2 = [[CGS unit]]s
−
| inunits2 = {{gaps|2|997|924|580}} [[Statcoulomb|statC]]
+
| inunits2 = {{val|2997924580}} [[Statcoulomb|statC]]
 
| units3 = [[Natural units#Natural units (particle physics)|Natural units]]
 
| units3 = [[Natural units#Natural units (particle physics)|Natural units]]
−
| inunits3 = {{val|6.242|e=18}} [[Elementary charge|e]]
+
| inunits3 = {{val|6.242|e=18}} [[Elementary charge|''e'']]
 
}}
 
}}
 
{| style="background:transparent;"
 
{| style="background:transparent;"
 
| <pre>
 
| <pre>
 
{{Infobox unit
 
{{Infobox unit
−
| name = Coulomb
+
| name = coulomb
 
| standard = [[SI derived unit]]
 
| standard = [[SI derived unit]]
−
| quantity = [[Electric charge]]
+
| quantity = [[electric charge]]
 
| symbol = C
 
| symbol = C
 
| namedafter = [[Charles-Augustin de Coulomb]]
 
| namedafter = [[Charles-Augustin de Coulomb]]
 
| units1 = [[SI base unit]]s
 
| units1 = [[SI base unit]]s
−
| inunits1 = 1 [[Ampere|A]] [[Second|s]]
+
| inunits1 = 1 [[Ampere|A]]⋅[[Second|s]]
 
| units2 = [[CGS unit]]s
 
| units2 = [[CGS unit]]s
−
| inunits2 = {{gaps|2|997|924|580}} [[Statcoulomb|statC]]
+
| inunits2 = {{val|2997924580}} [[Statcoulomb|statC]]
−
| units3 = [[Natural units#Natural units (particle physics)|Natural units]]
+
| units3 = [[Natural units#Natural units (particle physics)|natural units]]
−
| inunits3 = {{val|6.242|e=18}} [[Elementary charge|e]]
+
| inunits3 = {{val|6.242|e=18}} [[Elementary charge|''e'']]
 
}}
 
}}
 
</pre>
 
</pre>
Line 111: Line 112:
 
| name = kilogram
 
| name = kilogram
 
| image = [[File:CGKilogram.jpg|300px]]
 
| image = [[File:CGKilogram.jpg|300px]]
−
| caption = {{longitem|A computer-generated image of the IPK (International Prototype Kilogram). The IPK '''''is''''' the kilogram. It sits next to an inch-based ruler for scale.}}
+
| caption = {{longitem|A computer-generated image of the IPK (International Prototype Kilogram). The IPK {{em|is}} the kilogram. It sits next to an inch-based ruler for scale.}}
 
| standard = [[SI base unit]]
 
| standard = [[SI base unit]]
−
| quantity = [[Mass]]
+
| quantity = [[mass]]
 
| symbol = kg
 
| symbol = kg
 
| units1 = [[United States customary units|U.S. customary]]
 
| units1 = [[United States customary units|U.S. customary]]
−
| inunits1 = ≈{{thinsp}}{{val|2.205}} [[Pound (mass)|pounds]]
+
| inunits1 = ≈{{thin space}}{{val|2.205}} [[Pound (mass)|pounds]]
 
| units2 = [[Natural units]]
 
| units2 = [[Natural units]]
−
| inunits2 = ≈{{thinsp}}{{val|4.59|e=7|u=[[Planck mass]]es}}
+
| inunits2 = ≈{{thin space}}{{val|4.59|e=7|u=[[Planck mass]]es}}
 
}}
 
}}
 
{| style="background:transparent;"
 
{| style="background:transparent;"
 
| <pre>
 
| <pre>
 
{{Infobox unit
 
{{Infobox unit
−
| name = Kilogram
+
| name = kilogram
 
| image = [[File:CGKilogram.jpg|300px]]
 
| image = [[File:CGKilogram.jpg|300px]]
 
| caption = {{longitem|A computer-generated image of the IPK [...] }}
 
| caption = {{longitem|A computer-generated image of the IPK [...] }}
 
| standard = [[SI base unit]]
 
| standard = [[SI base unit]]
−
| quantity = [[Mass]]
+
| quantity = [[mass]]
 
| symbol = kg
 
| symbol = kg
 
| units1 = [[United States customary units|U.S. customary]]
 
| units1 = [[United States customary units|U.S. customary]]
−
| inunits1 = ≈{{thinsp}}{{val|2.205}} [[Pound (mass)|pounds]]
+
| inunits1 = ≈{{thin space}}{{val|2.205}} [[Pound (mass)|pounds]]
−
| units2 = [[Natural units]]
+
| units2 = [[natural units]]
−
| inunits2 = ≈{{thinsp}}{{val|4.59|e=7|u=[[Planck mass]]es}}
+
| inunits2 = ≈{{thin space}}{{val|4.59|e=7|u=[[Planck mass]]es}}
 
}}
 
}}
 
</pre>
 
</pre>
Line 142: Line 143:
 
| name = hertz  
 
| name = hertz  
 
| standard = [[SI derived unit]]
 
| standard = [[SI derived unit]]
−
| quantity = [[Frequency]]
+
| quantity = [[frequency]]
 
| symbol = Hz
 
| symbol = Hz
 
| namedafter = [[Heinrich Hertz]]
 
| namedafter = [[Heinrich Hertz]]
Line 153: Line 154:
 
| name = hertz  
 
| name = hertz  
 
| standard = [[SI derived unit]]
 
| standard = [[SI derived unit]]
−
| quantity = [[Frequency]]
+
| quantity = [[frequency]]
 
| symbol = Hz
 
| symbol = Hz
 
| namedafter = [[Heinrich Hertz]]
 
| namedafter = [[Heinrich Hertz]]
Line 165: Line 166:
 
-->
 
-->
  
−
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
+
<includeonly>{{Sandbox other|
 
| <!-- Categories below this line, please: -->
 
| <!-- Categories below this line, please: -->
 
[[Category:Physics infobox templates|Unit]]
 
[[Category:Physics infobox templates|Unit]]
−
 
−
[[de:Vorlage:Infobox Einheit]]
 
 
[[es:Plantilla:Ficha de unidad]]
 
[[es:Plantilla:Ficha de unidad]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 20:01, 16 December 2020

Template:Parameter names example

Syntax and parameters

{{Infobox unit
| bgcolor      = 
| name         = 
| image        = 
| caption      = 
| standard     = 
| quantity     = 
| symbol       = 
| symbol2      = 
| symbol3      = 
| namedafter   = 
| extralabel   = 
| extradata    = 
| units1       = 
| inunits1     = 
<!--...-->
| units6       = 
| inunits6     = 
| units_imp1   = 
| inunits_imp1 = 
<!--...-->
| units_imp6   = 
| inunits_imp6 = 
| units_us1    = 
| inunits_us1  = 
<!--...-->
| units_us6    = 
| inunits_us6  = 
}}
Parameter Description
bgcolor The colour of the background of the table
name The name of the unit (defaults to {{PAGENAME}}). Capitalize the name as if it appeared in the middle of a sentence, for example, "watt" rather than "Watt".
image The image for the infobox (use full wikicode)
caption A caption for the image
standard The unit system (system of measurement) of which the unit is a part (e.g. SI)
quantity The type of quantity of which it is a unit
symbol The symbol used for the unit
symbol2 A secondary, alternative symbol for the unit
symbol3 A tertiary symbol for the unit
namedafter The person after which the unit is named
extraheader
extralabel
extradata
extraheader2
extralabel2
extradata2
Miscellaneous (e.g., a unit conversion if only one is given)
inunitsN Conversions: the unit expressed in {{{unitsN}}}, where N can be 1 to 6
inunits_impN Imperial conversions: the unit expressed in {{{units_impN}}}, where N can be 1 to 6
inunits_usN U.S. conversions: the unit expressed in {{{units_usN}}}, where N can be 1 to 6

Examples

Coulomb

{{Infobox unitTemplate:\sandbox | name = coulomb | standard = SI derived unit | quantity = electric charge | symbol = C | namedafter = Charles-Augustin de Coulomb | units1 = SI base units | inunits1 = 1 A⋅s | units2 = CGS units | inunits2 = Template:Val statC | units3 = Natural units | inunits3 = Template:Val e }}

{{Infobox unit
| name = coulomb
| standard = [[SI derived unit]]
| quantity = [[electric charge]]
| symbol = C
| namedafter = [[Charles-Augustin de Coulomb]]
| units1 = [[SI base unit]]s
| inunits1 = 1 [[Ampere|A]]⋅[[Second|s]]
| units2 = [[CGS unit]]s
| inunits2 = {{val|2997924580}} [[Statcoulomb|statC]]
| units3 = [[Natural units#Natural units (particle physics)|natural units]]
| inunits3 = {{val|6.242|e=18}} [[Elementary charge|''e'']]
}}

Kilogram

{{Infobox unitTemplate:\sandbox | name = kilogram | image = CGKilogram.jpg

| caption =

A computer-generated image of the IPK (International Prototype Kilogram). The IPK is the kilogram. It sits next to an inch-based ruler for scale.

| standard = SI base unit | quantity = mass | symbol = kg | units1 = U.S. customary | inunits1 = ≈ Template:Val pounds | units2 = Natural units | inunits2 = ≈ Template:Val }}

{{Infobox unit
| name = kilogram
| image = [[File:CGKilogram.jpg|300px]]
| caption = {{longitem|A computer-generated image of the IPK [...] }}
| standard = [[SI base unit]]
| quantity = [[mass]]
| symbol = kg
| units1 = [[United States customary units|U.S. customary]]
| inunits1 = ≈{{thin space}}{{val|2.205}} [[Pound (mass)|pounds]]
| units2 = [[natural units]]
| inunits2 = ≈{{thin space}}{{val|4.59|e=7|u=[[Planck mass]]es}}
}}

Hertz

{{Infobox unitTemplate:\sandbox | name = hertz | standard = SI derived unit | quantity = frequency | symbol = Hz | namedafter = Heinrich Hertz | extralabel = In SI base units | extradata = 1 Hz = 1/s }}

{{Infobox unit
| name = hertz 
| standard = [[SI derived unit]]
| quantity = [[frequency]]
| symbol = Hz
| namedafter = [[Heinrich Hertz]]
| extralabel = In [[SI base unit]]s
| extradata = 1 Hz = 1/[[Second|s]]
}}