Template:Abbreviation: Difference between revisions

From Indian River Lagoon Project
mNo edit summary
mNo edit summary
 
(18 intermediate revisions by the same user not shown)
Line 7: Line 7:
|Abb=
|Abb=
|Definition=
|Definition=
|Article=
|RelatedURL=
|RelatedURL=
|Poster=
|Poster=
Line 14: Line 15:
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{#cargo_store:_table=definition|Term={{{Term|}}}|Abb={{{Abb|}}}|Type={{{Type|}}}|Pronunciation={{{Pronunciation|}}}|AudioFile={{{AudioFile|}}}|Definition={{{Definition|}}}|Sentence={{{Sentence|}}}|Synonym={{{Synonym|}}}|SourceURL={{{SourceURL|}}}|RelatedURL={{{RelatedURL|}}}|ImageFile={{{ImageFile|}}}|Poster={{{Poster|}}}|Postdate={{{Postdate|}}}|TermID={{{TermID|}}} }}
 
{|<templatestyles src="Definition/styles.css" />
{{#cargo_attach:_table = definition}}
<div class="irlbody irldef">{{IRL header abbreviation}}
</noinclude>
<includeonly>{{#cargo_store:_table=definition|Term={{{Term|}}}|Abb={{{Abb|}}}|Definition={{{Definition|}}}|Article={{{Article|}}}|RelatedURL={{{RelatedURL|}}}|Poster={{{Poster|}}}|Postdate={{{Postdate|}}}|TermID={{{TermID|}}} }}
<templatestyles src="Definition/styles.css" />
<div class="irlbody irldef">
{{#ifeq:{{NAMESPACE}} | Glossary |{{IRL header library|cat=Dictionary|abb=yes|depth=1|toc=no}} }}
<div class="irldefdiv"><div class="irldeftop">
<div class="irldefdiv"><div class="irldeftop">
<div class="irldefterm">{{{Term|}}}<span class="irldefabb"> ({{{Abb|}}})</span>{{#ifexist: {{SUBPAGENAME}} | <span class="irldeficon">[[File:bullet_page.png|16px|top|alt=Article|link={{SUBPAGENAME}}]]</span>}}{{#if:{{{RelatedURL|}}}|<span class="irldeficon">[[File:bullet_www.png|16px|top|link={{{RelatedURL|}}}]]</span>}}</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>
</div>
</div>
<div class="irldefmiddle">
<div class="irldefmiddle">
<div class="irldefdef">{{{Definition|}}}</div>
<div class="irldefdef">{{{Definition|}}}</div>
<div class="irldeflinks">
<div class="irldeflinks">
{{#ifexist: {{SUBPAGENAME}}|<div class="irldefread noprint"><span class="irldeflabel">See Also: </span>[[{{SUBPAGENAME}}]]</div>}}{{#if: {{{RelatedURL|}}} |<div class="irldefrelated noprint"><span class="irldeflabel">Related Link: </span>{{{RelatedURL|}}}</div>}}
{{#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>
</div></div>
{{IRL footer abbreviation}}
{{#ifeq:{{NAMESPACE}} | Glossary | {{IRL footer library|cat=Dictionary}} [[Category:Abbreviations]] {{#default_form:abbreviation}} }}
</div>
</div>
|}
[[Category:Abbreviations]]
<!-- [[Category:Glossary]] -->
{{#default_form:abbreviation}}
</includeonly>
</includeonly>
<noinclude>{{Documentation}}</noinclude>

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