Template:Notation: Difference between revisions

From FusionGirl Wiki
Jump to navigationJump to search
(Phase H2: class-only styling (no inline backgrounds); theme-aware via Common.css)
(Phase H2: class-only styling (no inline backgrounds); theme-aware via Common.css)
 
(One intermediate revision by the same user not shown)
Line 32: Line 32:
== Styling ==
== Styling ==
Styling is provided by <code>MediaWiki:Common.css</code> via the class <code>notation-box</code>, with light + dark theme support.
Styling is provided by <code>MediaWiki:Common.css</code> via the class <code>notation-box</code>, with light + dark theme support.
Uses HTML tables internally to sidestep the <code><nowiki>{{#if}}</nowiki></code>-strips-whitespace parser bug that breaks wikitext <code><nowiki>|-</nowiki></code> separators inside conditionals.


[[Category:Psionics templates]]
[[Category:Psionics templates]]
Line 37: Line 39:
</noinclude><includeonly><div class="notation-box">
</noinclude><includeonly><div class="notation-box">
'''Notation on this page'''
'''Notation on this page'''
{| class="notation-box-table"
<table class="notation-box-table">{{#if:{{{psi_convention|}}}|<tr><th>ψ-convention</th><td>{{{psi_convention}}}</td></tr>}}{{#if:{{{signature|}}}|<tr><th>Metric signature</th><td>{{{signature}}}</td></tr>}}{{#if:{{{units|}}}|<tr><th>Units</th><td>{{{units}}}</td></tr>}}{{#if:{{{index_convention|}}}|<tr><th>Index convention</th><td>{{{index_convention}}}</td></tr>}}{{#if:{{{extra|}}}|<tr><th>Other</th><td>{{{extra}}}</td></tr>}}</table>
{{#if:{{{psi_convention|}}}|
|-
! ψ-convention
| {{{psi_convention}}} }}{{#if:{{{signature|}}}|
|-
! Metric signature
| {{{signature}}} }}{{#if:{{{units|}}}|
|-
! Units
| {{{units}}} }}{{#if:{{{index_convention|}}}|
|-
! Index convention
| {{{index_convention}}} }}{{#if:{{{extra|}}}|
|-
! Other
| {{{extra}}} }}
|}
</div></includeonly>
</div></includeonly>

Latest revision as of 06:18, 12 May 2026

Standard notation header for any equation-bearing page. Documents ψ-convention, metric signature, and unit system in a compact box.

Usage

{{Notation
| psi_convention = lowercase ψ = field amplitude; uppercase Ψ = energy density T⁰⁰(ψ)
| signature      = mostly-plus (−,+,+,+)
| units          = SI
| index_convention = Greek μ,ν,ρ,σ ∈ {0,1,2,3,4} (5D); Latin i,j,k ∈ {1,2,3} (spatial)
| extra          = ℏ = c = 1 unless noted
}}

Parameters

Parameter Notes
psi_convention How ψ vs Ψ vs φ are used on this page. (Optional.)
signature mostly-plus (−,+,+,+) or mostly-minus (+,−,−,−). (Optional.)
units SI, natural (ℏ=c=1), Gaussian, etc. (Optional.)
index_convention optional — Greek/Latin index ranges.
extra optional — any other site-wide convention notes.

All parameters are optional. If none are supplied, the box renders an empty body.

Styling

Styling is provided by MediaWiki:Common.css via the class notation-box, with light + dark theme support.

Uses HTML tables internally to sidestep the {{#if}}-strips-whitespace parser bug that breaks wikitext |- separators inside conditionals.