User:Izno/Sandbox/Math-link
[[{{{1}}}|{{{math}}}]]
This template uses TemplateStyles: |
Math-link is a template designed to implement {{math}} for links to workaround a 'bug' in TemplateStyles (phab:T200704).
Usage
[edit]It is only necessary for the set of articles where all of the following are true:
- {{math}} would be used inside an internal link to wrap the link display text,
- {{math}} is used only for a part of the link display text, and
- The use of {{math}}, or one of the other templates using Template:Math/styles.css such as {{mvar}}, is the first use on the page.
If #1 or #3 is not true, use {{math}} instead. If #2 is not true, use {{math}} instead by wrapping the link and its expression text with the template, rather than putting the template inside the link text.
Item 1 is only an internal link. It is not an external link text and it is not an image link text.
Parameters
[edit]There are two required parameters. The rest are optional and should be employed only where necessary.
|1=
|link=
- Required. The link target.
|math=
- Required. The first math display text.
|pre=
- Optional. Display text intended to be placed before
|math=
. |prespace=
- Optional. Set to any value (such as
|prespace=y
) to add a space between the text from|pre=
and|math=
. |midspace1=
- Optional. Set to any value (such as
|mid1space=y
) to add a space between the text from|math=
and|mid=
or|math=
and|math2=
. |mid=
- Optional. Display text intended to be placed between
|math=
and|math2=
. Will likely require the use of at least one of the|midnspace=
parameters. |midspace2=
- Optional. Set to any value (such as
|mid2space=y
) to add a space between the text from|mid=
and|math2=
or|math=
and|math2=
. |math2=
- Optional. The second math display text.
|postspace=
- Optional. Set to any value (such as
|postspace=y
) to add a space between the text from|mid=
and|math2=
or|math=
and|math2=
. |post=
- Optional. Display text intended to be placed after
|math=
(or|math2=
).
Examples
[edit]Math-link wikitext | Display | Original {{math}} |
---|---|---|
{{math-link |Norm (mathematics) |math=''ℓ<sup>2</sup>'' |post=-norm}}
|
ℓ2-norm | [[Norm (mathematics)|{{math|''ℓ<sup>2</sup>''}}-norm]]
|
{{math-link |Lp space |math=''L<sup>p</sup>'' |postspace=y |post=spaces}}
|
Lp spaces | [[Lp space|{{math|''L<sup>p</sup>''}} spaces]]
|
{{math-link |Riemann Xi function |pre=Riemann |prespace=y |math=''ξ'' |postspace=y |post=function}}
|
Riemann ξ function | [[Riemann Xi function|Riemann {{math|''ξ''}} function]]
|
{{mvar-link |Q factor |pre=higher |prespace=y |mvar=Q}}
|
higher Q | [[Q factor|higher {{mvar|Q}}]]
|
Original articles
[edit]When first implemented, this template or its sister {{mvar-link}} was needed for approximately 100 pages out of some 5,000-8,000.
- Abel–Ruffini theorem
- Additive category
- Affinity propagation
- Algebraic equation
- Ampère's circuital law
- B − L
- Band-pass filter
- Binomial distribution
- Borromean rings
- Caroline Klivans
- Central configuration
- Central tendency
- Character theory
- Classification of finite simple groups
- Clique-width
- Closed-form expression
- Coarea formula
- Coefficient of fractional parentage
- Compartmental models in epidemiology
- Conflict continuum
- Convex Polytopes
- Convex embedding
- Coordinate singularity
- Deborah Joseph
- Dimension
- Dirac cone
- Discrete Fourier transform (general)
- Donald B. Johnson
- Donald G. Saari
- E number (disambiguation)
- Entropy in thermodynamics and information theory
- Enzo Martinelli
- Euclidean space
- Feynman diagram
- Finite field
- Flat (geometry)
- Fly algorithm
- Forbidden mechanism
- Gabriel Andrew Dirac
- Gabriella Pinzari
- Geometric mean
- Georges Giraud
- Harmonious coloring
- Hölder's inequality
- Ideal (ring theory)
- Immersed boundary method
- Initial algebra
- Jolie Cizewski
- Julia Gordon
- Kappa curve
- Kolmogorov–Arnold–Moser theorem
- Krull–Schmidt category
- Langlands program
- Laplacian of the indicator
- Li's criterion
- Likelihood principle
- Locally integrable function
- Logical connective
- Lothar Collatz
- Lou van den Dries
- Mathematics Subject Classification
- Measure space
- Metric space
- Minimum cut
- Multiplicative group of integers modulo n
- Nike Sun
- Nu (letter)
- Number
- OZI rule
- Octahedron
- Ostrowski's theorem
- P-adic analysis
- Pati–Salam model
- Period 4 element
- Plane of rotation
- Preselector
- Pseudo-Euclidean space
- Radical extension
- Root (disambiguation)
- Several complex variables
- Singly and doubly even
- Sobolev space
- Stationary point
- Studentized range distribution
- Supersingular isogeny graph
- T-antenna
- Tamal Dey
- Three-body problem
- Transconductance
- Vantage-point tree
- Very low frequency
- Wiener's Tauberian theorem
- Yvette Amice
- Zariski topology
- 𝔹
- 𝕊
Sunset
[edit]This template is intended to be a "temporary" workaround until the bug is resolved, at which point it should be changed to implement {{math}} directly, with spaces where appropriate, and then substed and deleted.