This site is supported by donations to The OEIS Foundation.
Template:Abbr/list/doc
From OeisWiki
< Template:Abbr | list
The {{abbr/list}} helper function template contains a "database table" (of abbreviations and their full expressions) that is meant to be used by the {{abbr}} template.
This "database table" currently contains a list of abbreviations used in science (mostly mathematics, computer science, physics...).
NOTES:
- This list is limited to abbreviations of two or more letters. The capitalization of some of these abbreviations is not standardized—different authors use different capitalizations.
- If the entry is not in the "database table," the template returns a link to http://www.abbreviations.com/ followed by the abbreviation.
Contents
Format of "database table"
The "database table" format is the following:
- each line of the "database table" must have the format (including two spaces before the vertical pipe)
| abbrev = unabbreviated term (text only, or HTML character entities; NO HTML tags)
- the lines must be in ascending alphabetical order of abbreviations
- the following characters cannot be used
- | (vertical pipe) (use {{!}} instead)
- " (double quote) (use " HTML character entity instead)
- HTML tags cannot be used
- log<sub>10</sub> (show as log_10 instead)
- <math>log_{10}</math> (show as log_10 instead)
- e<sup>x</sup> (show as e^x instead)
- <math>e^x</math> (show as e^x instead)
- wikitext cannot be used
- [[...]] (messes up the tooltip created with {{Abbr}})
Usage
- {{abbr/list|abbr=abbreviation}}
or
- {{abbr/list|abbreviation}}
Examples
Examples with abbreviation in "database table"
- {{abbr/list|abbr=Card}} gives
- cardinality of a set (Card(X) is also written #X, ♯X or |X|) (set theory)
- {{abbr/list|Card}} gives
- cardinality of a set (Card(X) is also written #X, ♯X or |X|) (set theory)
Code Result {{abbr/list|GCD}} greatest common divisor (GCD also written as HCF - highest common factor) (elementary number theory) {{abbr/list|gcd}} greatest common divisor (GCD also written as HCF - highest common factor) (elementary number theory) {{abbr/list|HCF}} highest common factor (HCF also written as GCD - greatest common divisor) (elementary number theory) {{abbr/list|hcf}} highest common factor (HCF also written as GCD - greatest common divisor) (elementary number theory) {{abbr/list|LCM}} least common multiple (LCM) (elementary number theory) {{abbr/list|lcm}} least common multiple (LCM) (elementary number theory) {{abbr/list|inf}} infimum (of a set) (also written as glb - greatest lower bound) {{abbr/list|sup}} supremum (of a set) (also written as lub - least upper bound) {{abbr/list|sopf}} sum of distinct prime factors (arithmetic function) {{abbr/list|sopfr}} sum of prime factors (with repetition) (integer log) (arithmetic function)
Examples with abbreviation NOT in "database table"
The "database table" currently contains abbreviations used in science (mostly mathematics, computer science, physics...).
Code Result Comment {{abbr/list|AFAIK}} http://www.abbreviations.com/AFAIK (NOT in "database" table!) {{abbr/list|BTW}} http://www.abbreviations.com/BTW (NOT in "database" table!) {{abbr/list|IMHO}} http://www.abbreviations.com/IMHO (NOT in "database" table!)
Examples with invalid arguments
Code Result {{abbr/list|}} Abbr/list error: No argument provided! {{abbr/list}} Abbr/list error: No argument provided!
Code
<noinclude>(...)</noinclude><includeonly>{{#if: {{{abbr|{{{1|}}}}}} | {{#switch: {{{abbr|{{{1}}}}}} </includeonly> | AC = Axiom of Choice (set theory) (...) | ZFC = Zermelo–Fraenkel axioms (with the Axiom of Choice) (set theory) <includeonly> | http://www.abbreviations.com/{{{abbr|{{{1}}}}}} <!-- NOT in database table --> }} | {{error| Abbr/list error: No argument provided! }} }}</includeonly><noinclude>(...)</noinclude>