Module:Particles/doc

MyWikiBiz, Author Your Legacy — Friday November 15, 2024
< Module:Particles
Revision as of 05:17, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

This is the documentation page for Module:Particles

This module was used to replace {{Subatomic particle}} in List of baryons to remove that article from Category:Pages where post-expand include size is exceeded. Prior to the replacement, half of the article was not displayed correctly.

Usage

These items are built-in to the module:

Item Result
/ " / "
+ " + "
or " or "
seen " (seen) "
_word1_word2 " word1 word2" Template:Green
(text) "(text)" Template:Green
br "<br />" Template:Green

Any other item must an identifier for a particle (not case sensitive). If an item is not recognized, an error message is displayed. Each identifier is defined in Module:Particles/data.

Any br item divides the result into lines, and each line is enclosed in a nowrap span. If there are no br items, the result is a single line enclosed in a nowrap span.

Examples

Wikitext Result
{{#invoke:particles|nolink|Proton+}}
p+
{{#invoke:particles|link|Sigma*+|(1385)}}
Σ∗+
(1385)
{{#invoke:particles|link|Up quark|Up quark|Down quark}}
u

u

d
{{#invoke:particles|link|Proton|/|Proton+|/|Nucleon+}}
p
/
p+
/
N+
{{#invoke:particles|link|Charmed lambda+|+|Kaon-|+|Pion+|+|Pion+|seen}}
Λ+
c
+
K
+
π+
+
π+
(seen)
{{#invoke:particles|link|Lambda0|+|Pion+|or|br|Sigma+|+|Pion0|or|br|Sigma0|+|Pion+}}
Λ0
+
π+
or


Σ+
+
π0
or


Σ0
+
π+
{{#invoke:particles|link|Lambda0|+|Pion+|_any_text|br|Sigma+|+|Pion0|_more_text|br|Sigma0|+|Pion+}}
Λ0
+
π+
any text


Σ+
+
π0
more text


Σ0
+
π+

Modules

The following modules are used: