Template:Organization: Difference between revisions
From Indian River Lagoon Project
m 1 revision imported |
mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
<noinclude> | |||
This is the "Organization" template. | |||
It should be invoked using the [[Form:Organization|Organization form]]. | |||
<pre> | |||
{{Organization | |||
|Name= | |||
|Abbreviation= | |||
|Website= | |||
|Focus= | |||
|Region= | |||
|Founded= | |||
|Statement= | |||
|Description= | |||
|Street= | |||
|City= | |||
|State= | |||
|Country= | |||
|Zip= | |||
|County= | |||
|Email= | |||
|Phone= | |||
|ShowMap= | |||
|Coordinates= | |||
|Facebook= | |||
|Twitter= | |||
|Flickr= | |||
|You Tube= | |||
|Logo= | |||
|Type= | |||
|Division= | |||
|Parent= | |||
|Child= | |||
|Partner= | |||
|Article= | |||
|Poster= | |||
|Postdate= | |||
}} | |||
</pre> | |||
Edit the page to see the template text. | |||
{{#cargo_declare:_table=Organization|Name=String|Abbreviation=String|Website=URL|Focus=List (,) of String|Region=List (,) of String|Founded=Date|Statement=String|Description=Wikitext|Street=String|City=String|State=String|Country=String|Zip=Integer|County=String|Email=Email|Phone=String|ShowMap=Boolean|Coordinates=Coordinates|Facebook=URL|Twitter=URL|Flickr=URL|You_Tube=URL|Logo=File|Type=List (,) of String|Division=List (;) of String|Parent=List (,) of String|Child=List (,) of String|Partner=List (,) of String|Article=Page|Poster=String|Postdate=Integer}} | |||
</noinclude><includeonly>{{#vardefine:division|{{{Academia Division|}}}{{{Business Division|}}}{{{NonProfit Division|}}}{{{Private Division|}}}{{{Research Institute Division|}}}{{{Government Division|}}}{{{New Division|}}} }}{{#vardefine:division2|{{{US Division2|}}}{{{FL Division2|}}}{{{County Division2|}}}{{{City Division2|}}} }}{{#vardefine:division3|{{{US Executive|}}}{{{US Legislative|}}}{{{US Judicial|}}}{{{FL Executive|}}}{{{FL Legislative|}}}{{{FL Judicial|}}}{{{County Division3|}}}{{{City Division3|}}} }}{{#vardefine:division4|{{{US Division4|}}}{{{FL Division4|}}}{{{County Division4|}}}{{{City Division4|}}} }}{{#vardefine:division5|{{{US Division5|}}}{{{FL Division5|}}}{{{County Division5|}}}{{{City Division5|}}} }}{{#vardefine:division6|{{{US Division6|}}}{{{FL Division6|}}}{{{County Division6|}}}{{{City Division6|}}} }}{{#vardefine:divisionall| {{#var:division}}; {{#varexists:division2 | {{#var:division2}}; }} {{#varexists:division3 | {{#var:division3}}; }} {{#varexists:division4 | {{#var:division4}}; }} {{#varexists:division5 | {{#var:division5}}; }} {{#varexists:division6 | {{#var:division6}} }} }}{{#cargo_store:_table=Organization|Name={{{Name|}}}|Abbreviation={{{Abbreviation|}}}|Website={{{Website|}}}|Focus={{{Focus|}}}|Region={{{Region|}}}|Founded={{{Founded|}}}|Statement={{{Statement|}}}|Description={{{Description|}}}|Street={{{Street|}}}|City={{{City|}}}|State={{{State|}}}|Country={{{Country|}}}|Zip={{{Zip|}}}|County={{{County|}}}|Email={{{Email|}}}|Phone={{{Phone|}}}|ShowMap={{{ShowMap|}}}|Coordinates={{{Coordinates|}}}|Facebook={{{Facebook|}}}|Twitter={{{Twitter|}}}|Flickr={{{Flickr|}}}|You_Tube={{{You Tube|}}}|Logo={{{Logo|}}}|Type={{{Type|}}}|Division={{#var:division}}|Parent={{{Parent|}}}|Child={{{Child|}}}|Partner={{{Partner|}}}|Article={{{Article|}}}|Poster={{{Poster|}}}|Postdate={{{Postdate|}}} }}<div class="irlorgbody"> | |||
{{IRL header org}} | |||
<div class="irlorgtype"> | |||
<p>{{#arraymap:{{{Type|}}}|,|x| [[Category:x]][[:Category:x|x Organization: ]] |\s}} {{#if:{{{Division|}}} | {{#arraymap:{{{Division|}}}|;|x| [[Category:x]][[:Category:x|x: ]] |\s}} | {{#arraymap:{{#var:divisionall}}|;|x| [[Category:x]][[:Category:x|x: ]] |\s}} }}</p> | |||
</div><div class="irlorgcontent"><div class="irlorgtop"> | |||
<div class="irlorgname"><h2>{{{Name|}}}{{#if:{{{Abbreviation|}}}| ({{{Abbreviation|}}}) }}</h2></div> | |||
{{#if:{{{Logo|}}}|[[File:{{{Logo|}}}|128px|frameless|right|{{{Name|}}}|link={{{Website|}}}]] }} | |||
{{#if:{{{Statement|}}}|<div class="irlorgstatement"><p>{{{Statement|}}}</p></div> }} | |||
{{#if:{{{Focus|}}}|<div class="irlorgfocus">Focus: {{#arraymap:{{{Focus|}}}|,|x|x }}</div> }} | |||
{{#if:{{{Region|}}}|<div class="irlorgregion">Region: {{#arraymap:{{{Region|}}}|,|x|x }}</div> }} | |||
{{#if:{{{Description|}}}|<div class="irlorgdesc"><p>{{{Description|}}}</p>{{#if:{{{Article|}}}|<span class="irlorgarticle">[[{{{Article|}}}|Read Article]]</span>| }}</div>| }}</div> | |||
{{#if:{{{Parent|}}}{{{Child|}}}{{{Partner|}}}|<div class="irlorgaffiliate"><h3>Affiliations</h3> | |||
{{#if:{{{Parent|}}}|<p class="irlorgparent">Parent Organizations: {{#arraymap:{{{Parent|}}}|,|x|x|\s}}</p> }} | |||
{{#if:{{{Child|}}}|<p class="irlorgchild">Subsidaries: {{#arraymap:{{{Child|}}}|,|x|x|\s}}</p> }} | |||
{{#if:{{{Partner|}}}|<p class="irlorgpartner">Partners: {{#arraymap:{{{Partner|}}}|,|x|x|\s}}</p> }}</div>| }} | |||
<div class="irlorgaddress"> | |||
<h3>Contact</h3> | |||
{{#if:{{{ShowMap|}}}| {{#if:{{{Coordinates|}}}| <div class="irlorgmap">{{#cargo_display_map:point= {{{Coordinates|}}}|service=googlemaps|width=400px|height=310px|zoom=14 }}</div> }} }} | |||
<div class="irlorgname">{{{Name|}}}</div> | |||
{{#if:{{{Street|}}}|<div class="irlorgadd">{{{Street|}}}</div> }} | |||
{{#if:{{{City|}}}{{State|}}}|<div class="irlorgadd">{{{City|}}}, {{{State|}}} {{{Zip|}}}</div> }} | |||
<div class="irlorgadd">{{#if:{{{County|}}}|<span class="irlorgcounty">County: {{{County|}}}</span> }}{{#ifeq:{{{Country|}}}|United States||<div class="irlorgcountry">Country: {{{Country|}}} }}</div> | |||
{{#if:{{{Phone|}}}|<div class="irlorgadd"><span class="irlorgphone">Phone:</span> {{{Phone|}}}</div> }} | |||
{{#if:{{{Email|}}}|<div class="irlorgadd"><span class="irlorgemail">Email:</span> {{{Email|}}}</div> }} | |||
{{#if:{{{Website|}}}|<div class="irlorgadd"><span class="irlorgwebsite">Website: {{{Website|}}}</span></div> }} | |||
<div class="irlorgsocial"> | |||
{{#if:{{{Facebook|}}}|<span class="irlorgicon">[[File:Icon-facebook.png|32px|Facebook|link={{{Facebook|}}}]]</span> }} | |||
{{#if:{{{Twitter|}}}|<span class="irlorgicon">[[File:Icon-twitter.png|32px|Twitter|link={{{Twitter|}}}]]</span> }} | |||
{{#if:{{{Flickr|}}}|<span class="irlorgicon">[[File:Icon-flickr.png|32px|Flickr|link={{{Flickr|}}}]]</span> }} | |||
{{#if:{{{You Tube|}}}|<span class="irlorgicon">[[File:Icon-youtube.png|32px|You Tube|link={{{You Tube|}}}]]</span> }} | |||
</div></div></div> | |||
{{IRL footer org}} | |||
</div> | |||
{{#default_form:Organization}} | |||
[[Category:Organization]] | |||
</includeonly> |
Revision as of 08:51, November 27, 2019
This is the "Organization" template.
It should be invoked using the Organization form.
{{Organization |Name= |Abbreviation= |Website= |Focus= |Region= |Founded= |Statement= |Description= |Street= |City= |State= |Country= |Zip= |County= |Email= |Phone= |ShowMap= |Coordinates= |Facebook= |Twitter= |Flickr= |You Tube= |Logo= |Type= |Division= |Parent= |Child= |Partner= |Article= |Poster= |Postdate= }}
Edit the page to see the template text. This template defines the table "Organization". View table.