Template:Definition: Difference between revisions
From Indian River Lagoon Project
mNo edit summary |
mNo edit summary |
||
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| | |||
</noinclude><includeonly>{{#cargo_store:_table=definition|Term={{lc:{{{Term|}}} }}|Abb={{{Abb|}}}| | |||
{|<div class="irlbody irldef"> | {|<div class="irlbody irldef"> | ||
<templatestyles src="Definition/styles.css" /> | <templatestyles src="Definition/styles.css" /> | ||
Line 34: | Line 33: | ||
<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: {{{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: {{{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: {{{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> | </div> |
Revision as of 10:13, October 29, 2020
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.