Template:Definition: Difference between revisions
From Indian River Lagoon Project
mNo edit summary |
mNo edit summary |
||
Line 22: | Line 22: | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
{{#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}} | {{#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}} | ||
</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"> | </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"> | |||
{{IRL header glossary}} | {{IRL header glossary}} | ||
<div class="irldefdiv" style="width:100%; float:left; box-sizing:border-box;margin-top:20px"> | <div class="irldefdiv" style="width:100%; float:left; box-sizing:border-box;margin-top:20px"> | ||
<div class="irldeftop"> | <div class="irldeftop"> | ||
<div class="irldefterm">{{lc: {{{Term|}}} }} {{#if: {{{Abb|}}} |<span class="irldefabb">({{{Abb|}}})</span>| }}{{#ifexist: {{FULLPAGENAME}}/{{SUBPAGENAME}}_about |<span class="irldefread">[[File:bullet_page.png|16px|top|alt=About|link={{FULLPAGENAME}}/{{SUBPAGENAME}}_about]]</span> | {{#ifexist: {{SUBPAGENAME}} | <span class="irldefread">[[File:bullet_page.png|16px|top|alt=Article|link={{SUBPAGENAME}}]]</span> | }} }}{{#if: {{{RelatedURL|}}} |<span class="irldefrelated">[[File:bullet_www.png|16px|link={{{RelatedURL|}}}]]</span> | }}</div> | <div class="irldefterm">{{lc: {{{Term|}}} }} {{#if: {{{Abb|}}} |<span class="irldefabb">({{{Abb|}}})</span>| }}{{#ifexist: {{FULLPAGENAME}}/{{SUBPAGENAME}}_about |<span class="irldefread">[[File:bullet_page.png|16px|top|alt=About|link={{FULLPAGENAME}}/{{SUBPAGENAME}}_about]]</span> | {{#ifexist: {{SUBPAGENAME}} | <span class="irldefread">[[File:bullet_page.png|16px|top|alt=Article|link={{SUBPAGENAME}}]]</span> | }} }}{{#if: {{{RelatedURL|}}} |<span class="irldefrelated">[[File:bullet_www.png|16px|top|link={{{RelatedURL|}}}]]</span> | }}</div> | ||
<div class="irldeflinks"><span class="irldeftype">( {{#arraymap:{{{Type|}}}|,|x| x }} )</span>{{#if: {{{Pronunciation|}}} |<span class="irldefpro">( {{{Pronunciation|}}} )</span>| }}</div></div> | <div class="irldeflinks"><span class="irldeftype">( {{#arraymap:{{{Type|}}}|,|x| x }} )</span>{{#if: {{{Pronunciation|}}} |<span class="irldefpro">( {{{Pronunciation|}}} )</span>| }}</div></div> | ||
{{#if: {{{AudioFile|}}} |<div class="irldefaudio"><span class="irldefaudioplayer">[[File:{{{AudioFile|}}}]]</span></div>| }} | {{#if: {{{AudioFile|}}} |<div class="irldefaudio"><span class="irldefaudioplayer">[[File:{{{AudioFile|}}}]]</span></div>| }} |
Revision as of 21:54, November 21, 2019
This is the "definition" template. It should be called in the following format:
{{definition |Term= |Type= |Pronunciation= |AudioFile= |Definition= |SourceURL= |Sentence= |RelatedURL= |Synonym= |ImageFile= |Abb= |Poster= |Postdate= |TermID= }}
Edit the page to see the template text. This template defines the table "definition". View table.