Difference between revisions of "Template:Infobox physical quantity"

From blackwiki
Jump to navigation Jump to search
imported>Underlying lk
(infoboxes should not have v-t-e links)
imported>Sardanaphalus
(replaced multiple with single <includeonly> as template layout now shown via /doc page, labelstyle (per comment added), data4 handling, bodystyle conditional)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| bodystyle = width:{{{width|20.55em}}};background:{{{background|}}};
+
| bodystyle = width:{{{width|20.55em}}};{{#if:{{{background|}}} |background:{{{background}}};}}
 +
 
 
| abovestyle = font-style:italic;
 
| abovestyle = font-style:italic;
| above = {{{name<includeonly>|</includeonly>}}}
+
| above = {{{name|}}}
| image = {{{image<includeonly>|</includeonly>}}}
+
 
 +
| image = {{{image|}}}
 
| captionstyle = padding-bottom:0.35em;border-bottom:1px solid #aaa;
 
| captionstyle = padding-bottom:0.35em;border-bottom:1px solid #aaa;
 
| caption = {{{caption<includeonly>|</includeonly>}}}
 
| caption = {{{caption<includeonly>|</includeonly>}}}
| labelstyle = width:auto;padding:0.55em 0;line-height:1.2em;
 
| datastyle = width:44%<!--(more than 44% makes unsightly linewraps likely)-->;
 
  
|label1=Common symbols                         |data1={{{symbols<includeonly>|</includeonly>}}}
+
| labelstyle = width:auto; padding:0.1em 0;line-height:1.2em;<!--(longitem)-->
|label2=[[SI unit]]                             |data2={{{unit<includeonly>|</includeonly>}}}
+
              padding-right:0.65em;<!--(to ensure some gap between a (long/unwrapped) label and subsequent data on the same line)-->
|label3=Other units                             |data3={{{otherunits<includeonly>|</includeonly>}}}
+
| datastyle = width:44%;<!--(width > 44% makes unsightly linewraps likely)-->
|label4=In [[SI base unit]]s                   |data4={{{baseunits<includeonly>|{{{basequantities|}}}</includeonly>}}}
+
 
|label5=[[Dimensional analysis|SI dimension]]   |data5={{{dimension<includeonly>|</includeonly>}}}
+
| label1 = Common symbols
|label6=[[Intensive and extensive properties|Extensive]]? |data6={{{extensive<includeonly>|</includeonly>}}}
+
| data1 = {{{symbols|}}}
|label7=[[Intensive and extensive properties|Intensive]]? |data7={{{intensive<includeonly>|</includeonly>}}}
+
 
|label8=[[Conserved quantities|Conserved]]?     |data8={{{conserved<includeonly>|</includeonly>}}}
+
| label2 = [[SI unit]]
|label9=Behaviour under<br/>[[Coordinate transformation|coord transformation]] |data9={{{transformsas<includeonly>|</includeonly>}}}
+
| data2 = {{{unit|}}}
|label10=Derivations from<br/>other quantities  |data10={{{derivations<includeonly>|</includeonly>}}}
+
 
 +
| label3 = Other units
 +
| data3 = {{{otherunits|}}}
 +
 
 +
| label4 = In [[SI base unit]]s
 +
| data4 = {{#if:{{{basequantities|}}} |{{{basequantities}}} |{{{baseunits|}}} }}
 +
 
 +
| label5 = [[Dimensional analysis|SI dimension]]
 +
| data5 = {{{dimension|}}}
 +
 
 +
| label6 = [[Intensive and extensive properties|Extensive]]?
 +
| data6 = {{{extensive|}}}
 +
 
 +
| label7 = [[Intensive and extensive properties|Intensive]]?
 +
| data7 = {{{intensive|}}}
 +
 
 +
| label8 = [[Conserved quantities|Conserved]]?
 +
| data8 = {{{conserved|}}}
 +
 
 +
| label9 = Behaviour under<br/>[[Coordinate transformation|coord transformation]]
 +
| data9 = {{{transformsas|}}}
  
}}<noinclude>
+
| label10 = Derivations from<br/>other quantities
 +
| data10 = {{{derivations|}}}
  
{{documentation}}
+
}}<noinclude>{{Documentation}}</noinclude>
</noinclude>
 

Revision as of 10:49, 22 May 2014

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Template:Uses Wikidata

Usage

  1. redirect Template:Parameter names example
{{Infobox physical quantity
| name =
| width =
| background =
| image = 
| caption = 
| unit =
| otherunits =
| symbols =
| baseunits =
| dimension =
| extensive =
| intensive =
| conserved =
| transformsas =
| derivations =
}}

Script error: No such module "aligned table".

Examples

Electric charge
Common symbolsTemplate:Mvar, Template:Mvar
SI unitcoulomb
Other unitsElementary charge
In SI base unitsAs
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox physical quantity{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
| name = Electric charge
| symbols = {{mvar|Q}}, {{mvar|q}}
| baseunits = [[Ampere|A]]⋅[[Second|s]]
| unit = [[coulomb]]
| otherunits = {{nowrap|[[Elementary charge]]}}
}}
Power
Common symbolsTemplate:Mvar
SI unitwatt
In SI base unitskgm2s−3
Derivations from
other quantities
Template:Ublist
[[Category:Infobox templates|Template:Remove first word]]
{{Infobox physical quantity{{#ifeq:{{SUBPAGENAME}}|sandbox |/sandbox}}
| name = Power
| unit = [[watt]]
| symbols = {{mvar|P}}
| baseunits = [[kilogram|kg]]⋅[[meter|m]]{{sup|2}}⋅[[second|s]]{{sup|−3}}
| derivations =
 {{ublist
  | {{math|1=''P'' = [[Energy|''E'']] ∕ [[Time|''t'']]}}
  | {{math|1=''P'' = [[Force|''F'']] ⋅ [[Velocity|''v'']]}}
  | {{math|1=''P'' = [[Electric current|''I'']] ⋅ [[Voltage|''U'']]}}
 }}
}}

See also