Template:Abbreviation: Difference between revisions
(Created page with "<noinclude> This is the "abbreviation" template. It should be called in the following format: <pre> {{abbreviation |abbphrase= |abb= |abbtopic= |abbdesc= |abbpage= |abblink= |...") |
mNo edit summary |
||
(48 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
{{ | {{Abbreviation | ||
| | |Term= | ||
| | |Abb= | ||
| | |Definition= | ||
| | |Article= | ||
| | |RelatedURL= | ||
| | |Poster= | ||
| | |Postdate= | ||
| | |TermID= | ||
}} | }} | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
{{# | |||
</noinclude><includeonly>{{#cargo_store:_table= | {{#cargo_attach:_table = definition}} | ||
< | </noinclude> | ||
<div class=" | <includeonly>{{#cargo_store:_table=definition|Term={{{Term|}}}|Abb={{{Abb|}}}|Definition={{{Definition|}}}|Article={{{Article|}}}|RelatedURL={{{RelatedURL|}}}|Poster={{{Poster|}}}|Postdate={{{Postdate|}}}|TermID={{{TermID|}}} }} | ||
<div class=" | <templatestyles src="Definition/styles.css" /> | ||
</div>< | <div class="irlbody irldef"> | ||
< | {{#ifeq:{{NAMESPACE}} | Glossary |{{IRL header library|cat=Dictionary|abb=yes|depth=1|toc=no}} }} | ||
<div class=" | <div class="irldefdiv"><div class="irldeftop"> | ||
{{#if:{{{ | <div class="irldefterm">{{{Term|}}}<span class="irldefabb"> ({{{Abb|}}})</span><!-- {{#if:{{{Article|}}}|<span class="irldeficon">[[File:bullet_page.png|16px|top|link={{{Article|}}}]]</span>}} --></div> | ||
<span class=" | </div> | ||
</div> | <div class="irldefmiddle"> | ||
</div | <div class="irldefdef">{{{Definition|}}}</div> | ||
{{# | <div class="irldeflinks"> | ||
[[Category:Abbreviations]] | {{#if:{{{Article|}}}|<div class="irldefread noprint"><span class="irldeflabel">See Also: </span>[[{{{Article|}}}]]</div>}}{{#if: {{{RelatedURL|}}} |<div class="irldefrelated noprint"><span class="irldeflabel">Web Link: </span>{{{RelatedURL|}}}</div>}} | ||
</div></div> | |||
{{#ifeq:{{NAMESPACE}} | Glossary | {{IRL footer library|cat=Dictionary}} [[Category:Abbreviations]] {{#default_form:abbreviation}} }} | |||
</div> | |||
</includeonly> | </includeonly> | ||
< | <noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 17:19, November 24, 2020
This is the "abbreviation" template. It should be called in the following format:
{{Abbreviation |Term= |Abb= |Definition= |Article= |RelatedURL= |Poster= |Postdate= |TermID= }}
Edit the page to see the template text.
This template adds rows to the table "definition", which is declared by the template Definition. View table.
Abbreviation Template Documentation
The abbreviation template uses the Abbreviation Form to collect info for an Abb entry. Abbreviation data is stored in the Cargo Definition table.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Term | Term | Word phrase to abbreviate. Auto-filled at form start. | String | required |
Abbreviation | Abb | Abbreviation of the word phrase. | String | required |
Definition | Definition | Short description of the abbreviated word phrase. | Unknown | required |
Article | Article | Enter a related Page Title from this site. | Page name | optional |
Related Web Site | RelatedURL | Enter the full url (https://...) of a related web site. | URL | optional |
Poster | Poster | Abbreviation poster Username. Auto-filled. | String | optional |
Posted | Postdate | Date the entry was posted. Auto-filled. | Unknown | optional |
Term ID | TermID | Abbreviation ID is currently used for table sorting. Auto-filled | Unknown | optional |
The above documentation is transcluded from Template:Abbreviation/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |