Template:Gaps
Template:Gapsは、名前のついていない引数を順番通りにmargin-left: 0.25emのCSSルールを適用して出力します(ただし、1番目の�…
| Luaモジュールを使用しています: |
Template:Gapsは、名前のついていない引数を順番通りにmargin-left: 0.25emのCSSルールを適用して出力します(ただし、1番目の引数には適用しません)。これにより、各引数が0.25emの間隔を置いて表示されます。全ての出力はwhite-space: nowrapのCSSルールを伴うため、2行にまたがって表示されることはありません。
このテンプレートは、20までの名前なしの引数を受け付けます。加えて、指数表記を表現するためのbaseとeの引数を有します。base引数が明示されない場合は、10が基数として表示されます。また、e引数のハイフンマイナス "-" は自動的にマイナス記号 "−" に変換されます。また、左辺および単位を改行なしで表示するためのlhsとuの引数を有します。
使い方
| 入力 | 出力 |
|---|---|
{{gaps|−2.002|319|304|3622(15)}}
|
−2.0023193043622(15) |
{{gaps|299|792|458|u=m/s}}
|
299792458 m/s |
{{gaps|lhs=π|3.14159|26535|89793|23846|26433|83279|...}}
|
π = 3.141592653589793238462643383279... |
{{gaps|P.|A.|M.}} Dirac
|
P.A.M. Dirac |
{{nowrap begin}}{{gaps|sin|2''φ''}} = 2 {{gaps|sin|''φ''}} {{gaps|cos|''φ''}}{{nowrap end}}
|
sin2φ = 2 sinφ cosφ |
"She disputed his statement that 'Voltaire never said "I disapprove of what you say, but I will defend to the death your right to say {{gaps|it."|'|"}}
|
"She disputed his statement that 'Voltaire never said "I disapprove of what you say, but I will defend to the death your right to say it."'" |
{{gaps|1.602|176|487(40)|e=-19|u=C}}
|
1.602176487(40)×10−19 C |
64 MB ({{gaps|64|base=2|e=20}} bytes)
|
64 MB (64×220 bytes) |
関連項目
- {{val}}
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.