Template:Abbreviation: Difference between revisions

From Indian River Lagoon Project
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
{{Abbreviation
|abbphrase=
|Term=
|abb=
|Abb=
|abbtopic=
|Definition=
|abbdesc=
|Article=
|abbpage=
|RelatedURL=
|abblink=
|Poster=
|abbtag=
|Postdate=
|abbtrack=
|TermID=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=abbreviation|abbphrase=String|abb=String|abbtopic=List (,) of String|abbdesc=Text|abbpage=String|abblink=String|abbtag=String|abbtrack=String}}
 
</noinclude><includeonly>{{#cargo_store:_table=abbreviation|abbphrase={{{abbphrase|}}}|abb={{{abb|}}}|abbtopic={{{abbtopic|}}}|abbdesc={{{abbdesc|}}}|abbpage={{{abbpage||}}}|abblink={{{abblink|}}}|abbtag={{{abbtag|}}}|abbtrack={{{abbtrack|}}} }}
{{#cargo_attach:_table = definition}}
<div class="irlabbdiv" style="width:99%;float:left">
</noinclude>
<div class="irlabbtop"><div class="irlabbabb">{{uc:{{{abb|}}} }} =</div>
<includeonly>{{#cargo_store:_table=definition|Term={{{Term|}}}|Abb={{{Abb|}}}|Definition={{{Definition|}}}|Article={{{Article|}}}|RelatedURL={{{RelatedURL|}}}|Poster={{{Poster|}}}|Postdate={{{Postdate|}}}|TermID={{{TermID|}}} }}
<div class="irlabbphrase">{{{abbphrase|}}}<span class="irlabbpage">{{#if:{{{abbpage|}}}|[[File:bullet_page.png|16px|link={{{abbpage|}}}]]| }}</span><span class="irlabblink">{{#if:{{{abblink|}}}|[[File:bullet_www.png|16px|link={{{abblink|}}}]]| }}</span>
<templatestyles src="Definition/styles.css" />
</div><!-- END irlabbphrase -->
<div class="irlbody irldef">
</div><!-- END irlabbtop -->
{{#ifeq:{{NAMESPACE}} | Glossary |{{IRL header library|cat=Dictionary|abb=yes|depth=1|toc=no}} }}
<div class="irlabbbottom">
<div class="irldefdiv"><div class="irldeftop">
{{#if:{{{abbdesc|}}}|<div class="irlabbdesc">{{{abbdesc|}}}</div>| }}
<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="irlabbtopic">{{#arraymap:{{{abbtopic|}}}|,|x| x }}</span>
</div>
</div><!-- END irlabbbottom -->
<div class="irldefmiddle">
</div><!-- END irlabbdiv -->
<div class="irldefdef">{{{Definition|}}}</div>
{{#default_form:abbreviation}}
<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>
<span class="irlabbpage">{{#if:{{{abbpage|}}}|[[File:bullet_page.png|16px|link={{{abbpage|}}}]]| }}</span>
<span class="irlabblink">{{#if:{{{abblink|}}}|[[File:bullet_www.png|16px|link={{{abblink|}}}]]| }}</span>
-->

Latest revision as of 18: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.


Template documentation[view] [edit] [history] [purge]

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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
TermTerm

Word phrase to abbreviate. Auto-filled at form start.

Stringrequired
AbbreviationAbb

Abbreviation of the word phrase.

Stringrequired
DefinitionDefinition

Short description of the abbreviated word phrase.

Unknownrequired
ArticleArticle

Enter a related Page Title from this site.

Page nameoptional
Related Web SiteRelatedURL

Enter the full url (https://...) of a related web site.

URLoptional
PosterPoster

Abbreviation poster Username. Auto-filled.

Stringoptional
PostedPostdate

Date the entry was posted. Auto-filled.

Unknownoptional
Term IDTermID

Abbreviation ID is currently used for table sorting. Auto-filled

Unknownoptional