求真百科歡迎當事人提供第一手真實資料,洗刷冤屈,終結網路霸凌。

變更

前往: 導覽搜尋

Template:Val/units

增加 2,403 位元組, 11 年前
机器人:移除 14 个跨语言链接,现在由维基数据d:Q12183160提供。
<noinclude>
==Purpose==
Subtemplate for turning an easily typeable name for a unit into a proper scientific notation for the unit ''without'' a link to a page about the unit. See {{tl|val/unitswithlink}} for a version that provides a link to the unit as well. If the template does not have an entry for the unit, it is returned "as is".

This template is used by {{tl|val}} to translate the '''u''' and '''up''' arguments. When adding a unit of the type X/Y (eg. m/s), please consider adding a X·Y{{sup|-1}} version as well (and name it ''X*Y-1'').

==Arguments==
:'''1''' = The easily typable name of the unit.

==Examples==
{|
|<code><nowiki>{{val/units|m/s}}</nowiki></code> || &nbsp;&rarr;&nbsp; || {{val/units|m/s}}
|-
|<code><nowiki>{{val/units|m*s-1}}</nowiki></code> || &nbsp;&rarr;&nbsp; || {{val/units|m*s-1}}
|-
|<code><nowiki>{{val/units|MeV}}</nowiki></code> || &nbsp;&rarr;&nbsp; || {{val/units|MeV}}
|-
|<code><nowiki>{{val/units|kg}}</nowiki></code> || &nbsp;&rarr;&nbsp; || {{val/units|kg}}
|-
|<code><nowiki>{{val/units|whatever}}</nowiki></code> || &nbsp;&rarr;&nbsp; || {{val/units|whatever}} ''(unimplemented)''
|}

Feel free to add new units if they are not implemented.
</noinclude><includeonly>{{#switch:{{{1}}}
|mug=µg
|mus=µs
|muHz=µHz
|mum=µm
|muA=µA
|muV=µV
|muK=µK
|muJ=µJ
|C=C
|F=F
|R=R
|degF=°F
|degC=°C
|degR=°R
|Ym2=Ym{{su|p=2}}
|Zm2=Zm{{su|p=2}}
|Em2=Em{{su|p=2}}
|Pm2=Pm{{su|p=2}}
|Tm2=Tm{{su|p=2}}
|Gm2=Gm{{su|p=2}}
|Mm2=Mm{{su|p=2}}
|km2=km{{su|p=2}}
|hm2=hm{{su|p=2}}
|dam2=dam{{su|p=2}}
|dm2=dm{{su|p=2}}
|cm2=cm{{su|p=2}}
|mm2=mm{{su|p=2}}
|µm2=µm{{su|p=2}}
|nm2=nm{{su|p=2}}
|pm2=pm{{su|p=2}}
|fm2=fm{{su|p=2}}
|am2=am{{su|p=2}}
|zm2=zm{{su|p=2}}
|ym2=ym{{su|p=2}}
|m*s-1=m·s{{sup|-1}}
|m/s2=m/s{{sup|2}}
|m*s-2=m·s{{sup|-2}}
|g/mol=g·mol{{sup|-1}}
|J*mol-1=J·mol{{sup|-1}}
|kJ*mol-1=kJ·mol{{sup|-1}}
|MJ*mol-1=MJ·mol{{sup|-1}}
|GJ*mol-1=GJ·mol{{sup|-1}}
|TJ*mol-1=TJ·mol{{sup|-1}}
|eV/c2=eV/''c''{{sup|2}}
|keV/c2=keV/''c''{{sup|2}}
|MeV/c2=MeV/''c''{{sup|2}}
|GeV/c2=GeV/''c''{{sup|2}}
|TeV/c2=TeV/''c''{{sup|2}}
|m^3=m{{sup|3}}
|g/cm3=g/cm{{sup|3}}
|kg/m3=kg/m{{sup|3}}
|Js=J·s
|H=H
|H*m-1=H·m{{sup|&minus;1}}
|N*m-1=N·m{{sup|&minus;1}}
|N*A-2=N·A{{sup|&minus;2}}
|W/m2=W/m{{sup|2}}
|#default={{#ifexist:Template:Convert/{{{1}}}|{{convert/{{{1}}}|d=ScientificValue/LoffAonSoff}}|{{{1|}}}}}
}}</includeonly><noinclude>

</noinclude>