Template:Definition: Difference between revisions

From Indian River Lagoon Project
mNo edit summary
mNo edit summary
 
(43 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>}}
{{IRL toc glossary}}
<div class="irldeftop">
<div class="irldefdiv">
<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 class="irldeftop"><div class="irldefterm">{{{Term|}}} {{#if: {{{Abb|}}} |<span class="irldefabb">({{{Abb|}}})</span>}}</div>
</div>
</div>
<div class="irldefmiddle">
<div class="irldefmiddle">
<div class="irldefdef">{{{Definition|}}}<span class="irldefsource noprint">[{{{SourceURL|}}} Source]</span></div>
<div class="irldefdef">{{{Definition|}}}<span class="irldefsource noprint">[{{{SourceURL|}}} Source]</span></div>
<div class="irldeflinks">
<div class="irldeflinks">
{{#if: {{{Pronunciation|}}} |<div class="irldefpro"><span class="irldeflabel">Pronunciation: </span>{{{Pronunciation|}}}</div>}}
{{#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>}}
{{#if: {{{AudioFile|}}} |<div class="irldefaudio noprint"><span class="irldefaudioplayer">[[File:{{{AudioFile|}}}]]</span></div>}}
{{#if:{{{Type|}}}|<div class="irldeftype"><span class="irldeflabel">Word Class: </span>{{#arraymap:{{{Type|}}}|,|x| x }}</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:{{{ImageFile|}}} |<div class="irldefimage">[[File:{{{ImageFile|}}}|640px|frameless|left]]</div>}}
<!-- {{#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>}}
</div>
</div>
</div>
</div>
<div class="irldefbottom noprint">
<div class="irldefbottom noprint">
<span class="irldefposter">Posted By: {{{Poster|}}}</span><span class="irldefpostdate">Date: {{#time: Y-m-d|{{{Postdate|}}} }}</span>
<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}} }}
[[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.