Template:Definition: Difference between revisions
From Indian River Lagoon Project
mNo edit summary |
mNo edit summary |
||
(93 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
{{definition | {{definition | ||
|Term= | |Term= | ||
|Abb= | |||
|Definition= | |||
|SourceURL= | |||
|Type= | |Type= | ||
|Pronunciation= | |Pronunciation= | ||
|AudioFile= | |AudioFile= | ||
| | |Synonym= | ||
|Sentence= | |Sentence= | ||
|Article= | |||
|RelatedURL= | |RelatedURL= | ||
|ImageFile= | |ImageFile= | ||
|Poster= | |Poster= | ||
|Postdate= | |Postdate= | ||
Line 20: | Line 21: | ||
}} | }} | ||
</pre> | </pre> | ||
{{#cargo_declare:_table=definition|Term=String|Abb=String|Definition=Text|SourceURL=URL|Type=List (,) of String||Pronunciation=String|AudioFile=File|Synonym=String|Sentence=Text|Article=Page|RelatedURL=URL|ImageFile=File|Poster=String|Postdate=String|TermID=String}}</noinclude><includeonly>{{#cargo_store:_table=definition|Term={{lc:{{{Term|}}} }}|Abb={{{Abb|}}}|Definition={{{Definition|}}}|SourceURL={{{SourceURL|}}}|Type={{{Type|}}}|Pronunciation={{{Pronunciation|}}}|AudioFile={{{AudioFile|}}}|Synonym={{{Synonym|}}}|Sentence={{{Sentence|}}}|Article={{{Article|}}}|RelatedURL={{{RelatedURL|}}}|ImageFile={{{ImageFile|}}}|Poster={{{Poster|}}}|Postdate={{{Postdate|}}}|TermID={{{TermID|}}} }} | |||
{{#cargo_declare:_table=definition|Term=String|Abb=String|Type=List (,) of String||Pronunciation=String|AudioFile=File| | <templatestyles src="Definition/styles.css" /> | ||
</noinclude><includeonly>{{#cargo_store:_table=definition|Term={{lc:{{{Term|}}} }}|Abb={{{Abb|}}}| | |||
<div class="irlbody irldef"> | <div class="irlbody irldef"> | ||
{{IRL header | {{#ifeq:{{NAMESPACE}} | Glossary | {{IRL header library|cat=Dictionary|toc=no}}{{Definition_toc}} }} | ||
<div class=" | {{#if:{{{ImageFile|}}} |<div class="irldefimage">[[File:{{{ImageFile|}}}|640px|frameless|left|Indian River Lagoon {{{Term|}}}]]</div>}} | ||
<div class="irldeftop"> | <div class="irldeftop"> | ||
<div class="irldefterm">{{{Term|}}} {{#if: {{{Abb|}}} |<span class="irldefabb">({{{Abb|}}}) | <div class="irldefterm">{{{Term|}}}{{#if:{{{Abb|}}}|<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="irldefdef">{{{Definition|}}}<span class="irldefsource noprint">[{{{SourceURL|}}} Source]</span></div> | |||
<div class="irldeflinks"> | <div class="irldeflinks"> | ||
{{#if:{{{Type|}}}|<span class=" | {{#if:{{{Type|}}}|<div class="irldeftype"><span class="irldeflabel">Word Class: </span><span class="irldeftypespan">{{#arraymap:{{{Type|}}}|,|x| x }}</span></div>}}{{#if: {{{Pronunciation|}}} |<div class="irldefpro"><span class="irldeflabel">Pronunciation: </span>{{{Pronunciation|}}}</div> }}{{#if: {{{AudioFile|}}} |<div class="irldefaudio noprint"><span class="irldefaudioplayer">[[File:{{{AudioFile|}}}]]</span></div>}}{{#if: {{{Synonym|}}} |<div class="irldefsynonym"><span class="irldeflabel">Synonym: </span>{{{Synonym|}}}</div> }}{{#if: {{{Sentence|}}} |<div class="irldefexample"><span class="irldeflabel">Example: </span><span class="irldefsentence">{{{Sentence|}}}</span></div>}}{{#if:{{{Article|}}}|<div class="irldefread noprint"><span class="irldeflabel">See Also: </span>[[{{{Article|}}}]]</div>}}{{#if: {{{RelatedURL|}}} |<div class="irldefrelated noprint"><span class="irldeflabel">Related Link: </span>{{{RelatedURL|}}}</div>}} | ||
</div> | |||
</div> | |||
<div class="irldefbottom noprint"> | |||
<div class="irldefposter">Posted By: {{{Poster|}}}</div><div class="irldefposted">Date: {{#time: Y-m-d|{{{Postdate|}}} }}</div> | |||
</div></div> | </div></div> | ||
</div> | </div> | ||
{{#ifeq:{{NAMESPACE}} | Glossary | [[Category:Glossary]]{{#if:{{{Abb|}}}|[[Category:Abbreviations]]}}{{#default_form:definition}} }} | |||
</includeonly> | |||
Latest revision as of 10:43, February 10, 2021
This is the "definition" template. It should be called in the following format:
{{definition |Term= |Abb= |Definition= |SourceURL= |Type= |Pronunciation= |AudioFile= |Synonym= |Sentence= |Article= |RelatedURL= |ImageFile= |Poster= |Postdate= |TermID= }}
This template defines the table "definition". View table.