Template:Definition: Difference between revisions

From Indian River Lagoon Project
mNo edit summary
mNo edit summary
 
(94 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=
|Definition=
|Synonym=
|SourceURL=
|Sentence=
|Sentence=
|Article=
|RelatedURL=
|RelatedURL=
|Synonym=
|ImageFile=
|ImageFile=
|Abb=
|Poster=
|Poster=
|Postdate=
|Postdate=
Line 20: Line 21:
}}
}}
</pre>
</pre>
Edit the page to see the template text.
{{#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|Definition=Text|Sentence=Text|Synonym=String|SourceURL=URL|RelatedURL=URL|ImageFile=File|Poster=String|Postdate=String|TermID=String}}
<templatestyles src="Definition/styles.css" />
</noinclude><includeonly>{{#cargo_store:_table=definition|Term={{lc:{{{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|}}} }}
<div class="irlbody irldef">
{|<div class="irlbody irldef">
{{#ifeq:{{NAMESPACE}} | Glossary | {{IRL header library|cat=Dictionary|toc=no}}{{Definition_toc}} }}
{{IRL header glossary}}
{{#if:{{{ImageFile|}}} |<div class="irldefimage">[[File:{{{ImageFile|}}}|640px|frameless|left|Indian River Lagoon {{{Term|}}}]]</div>}}
<div class="irldefdiv">
<div class="irldeftop">
<div class="irldeftop">
<div class="irldefterm">{{{Term|}}} {{#if: {{{Abb|}}} |<span class="irldefabb">({{{Abb|}}})</span>|  }}{{#ifexist: {{SUBPAGENAME}} | <span class="irldefread noprint">[[File:bullet_page.png|16px|top|alt=Article|link={{SUBPAGENAME}}]]</span> }}{{#if: {{{RelatedURL|}}} |<span class="irldefrelated noprint">[[File:bullet_www.png|16px|top|link={{{RelatedURL|}}}]]</span> }}{{#if: {{{AudioFile|}}} |<span class="irldefaudioplayer noprint">[[File:{{{AudioFile|}}}]]</span> }}
<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="irldeftype">( {{#arraymap:{{{Type|}}}|,|x| x }} )</span> }}{{#if: {{{Pronunciation|}}} |<span class="irldefpro">( {{{Pronunciation|}}} )</span> }}
{{#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 class="irldefmiddle">
<div class="irldefdef">{{#if:{{{ImageFile|}}} |<div class="irldefimage">[[File:{{{ImageFile|}}}|100px|frameless|left]]</div>|  }}{{{Definition|}}}<span class="irldefsource noprint">[{{{SourceURL|}}} Source]</span></div>
{{#if: {{{Synonym|}}} |<div class="irldefsynonym">Synonym: {{{Synonym|}}}</div>| }}
{{#if: {{{Sentence|}}} |<div class="irldefexample">Example Sentence: </br><span class="irldefsentence">{{{Sentence|}}}</span></div>| }}
</div>
</div>
<div class="irldefbottom noprint">
{{#ifeq:{{NAMESPACE}} | Glossary | [[Category:Glossary]]{{#if:{{{Abb|}}}|[[Category:Abbreviations]]}}{{#default_form:definition}} }}
<span class="irldefspacert">Posted By: {{{Poster|}}}</span><span class="irldefspacert">Date: {{#time: Y-m-d|{{{Postdate|}}} }}</span></div></div></div>
|}
[[Category:Glossary]]
{{#if:{{{Abb|}}} | [[Category:Abbreviations]] }}
{{#default_form:definition}}
</includeonly>
</includeonly>

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