Difference between revisions of "Template:Organization"

From Creative Commons
Jump to: navigation, search
Line 25: Line 25:
 
<div style="position: relative; width: 100%;overflow: auto;">
 
<div style="position: relative; width: 100%;overflow: auto;">
 
<div style="width: auto; position: relative; float: left; padding-right: 30px; margin: 5px; padding-top: 0px; margin-top: 0px;border-right: 1px solid #E0E0E0;">
 
<div style="width: auto; position: relative; float: left; padding-right: 30px; margin: 5px; padding-top: 0px; margin-top: 0px;border-right: 1px solid #E0E0E0;">
<div class="odepolabel" title="This is the mainspace url.">'''Main URL [[Property:Mainurl|?]]'''</div>{{#ifeq: {{{Mainurl|}}}||[http://opened.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add resource]|{{#arraymap:{{{Mainurl|}}}|,|x|[[Mainurl::x]]}}}}
+
<div class="odepolabel">'''Main URL [[Property:Mainurl|?]]'''</div>
<div class="odepolabel" title="What is a Resource url?">'''Resource URL [[Property:Resource URL|?]]'''</div>{{#ifeq: {{{Resource URL|}}}||[http://opened.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add resource]|{{#arraymap:{{{Resource URL|}}}|,|x|[[Resource URL::x]]}}}}<br />
+
{{#ifeq: {{{Mainurl| }}}||[http://opened.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add resource]|{{#arraymap:{{{Mainurl|}}}|,|x|[[Mainurl::x]]}}}}
<div class="odepolabel" title="What is a Resource Feed URL?">'''Resource Feed [[Property:Resource Feed URL|?]]'''</div>{{#ifeq: {{{Resource Feed URL| }}} ||[http://opened.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add feed]|{{#arraymap:{{{Resource Feed URL|}}}|,|x|[[Resource Feed URL::x]]}}}}<br />
+
<div class="odepolabel">'''Resource URL [[Property:Resource URL|?]]'''</div>
 +
{{#ifeq: {{{Resource URL| }}}||[http://opened.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add resource]|{{#arraymap:{{{Resource URL|}}}|,|x|[[Resource URL::x]]}}}}<br />
 +
<div class="odepolabel">'''Resource Feed [[Property:Resource Feed URL|?]]'''</div>
 +
{{#ifeq: {{{Resource Feed URL| }}} ||[http://opened.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add feed]|{{#arraymap:{{{Resource Feed URL|}}}|,|x|[[Resource Feed URL::x]]}}}}<br />
 
</div>
 
</div>
 
<div style="width: auto; position: relative; text-align:left; padding: 8px;padding-top:0px;padding-left: 20px;overflow: auto; height: 100%;">
 
<div style="width: auto; position: relative; text-align:left; padding: 8px;padding-top:0px;padding-left: 20px;overflow: auto; height: 100%;">
 
<div class="odepolabel">'''License [[Property:License short name|?]]'''</div>
 
<div class="odepolabel">'''License [[Property:License short name|?]]'''</div>
{{#arraymap:{{{License provider|}}}|,|x|[[License provider::x| ]]}}
+
{{#ifeq: {{{License provider|}}}||Add|{{#arraymap:{{{License provider|}}}|,|x|[[License provider::x| ]]}}}}<br />
{{#arraymap:{{{License short name|}}}|,|x|[[License short name::x| ]] [[:Special:SearchByProperty/License short name/x|x]]}}{{#ifeq: {{{License| }}} |http://|| ([{{{License| }}} <span>URL</span>])}}{{#arraymap:{{{License |}}}|,|x|[[License::x| ]]}}
+
{{#ifeq: {{{License short name|}}}||Add lsn|{{#arraymap:{{{License short name|}}}|,|x|[[License short name::x| ]] [[:Special:SearchByProperty/License short name/x|x]]}}}}<br />
 +
{{#ifeq: {{{License| }}} |http://|| ([{{{License| }}} <span>URL</span>])}}{{#arraymap:{{{License |}}}|,|x|[[License::x| ]]}}}}
 
{{#switch: {{{License short name|}}}
 
{{#switch: {{{License short name|}}}
 
  | CC BY = [[Image:Cc-by.png|link=]]
 
  | CC BY = [[Image:Cc-by.png|link=]]
Line 53: Line 57:
 
}}
 
}}
 
<div class="odepolabel">'''Affiliation [[Property:Affiliation|?]]'''</div>
 
<div class="odepolabel">'''Affiliation [[Property:Affiliation|?]]'''</div>
{{#arraymap:{{{Affiliation|}}}|,|x|[[Affiliation::x| ]] [[:Special:SearchByProperty/Affiliation/x|x]] }}
+
{{#ifeq: {{{Affiliation|}}}||add|{{#arraymap:{{{Affiliation|}}}|,|x|[[Affiliation::x| ]] [[:Special:SearchByProperty/Affiliation/x|x]] }}}}<br />
 
<div class="odepolabel">'''Organization Type [[Property:Organization Type|?]]'''</div>
 
<div class="odepolabel">'''Organization Type [[Property:Organization Type|?]]'''</div>
{{#arraymap:{{{Organization Type|}}}|,|x|[[Organization Type::x| ]] [[:Special:SearchByProperty/Organization Type/x|x]]}}
+
{{#ifeq: {{{Organization Type|}}}||add|{{#arraymap:{{{Organization Type|}}}|,|x|[[Organization Type::x| ]] [[:Special:SearchByProperty/Organization Type/x|x]]}}}}<br />
 
<div class="odepolabel">''' Location [[Property:Location|?]]</div>
 
<div class="odepolabel">''' Location [[Property:Location|?]]</div>
{{#arraymap:{{{Location|}}}|,|x|[[Location::x| ]] [[:Special:SearchByProperty/Location/x|x]]}}
+
{{#ifeq: {{{Location|}}}||add|{{#arraymap:{{{Location|}}}|,|x|[[Location::x| ]] [[:Special:SearchByProperty/Location/x|x]]}}}}<br />
 
<div class="odepolabel">'''Language [[Property:Language code|?]]</div>
 
<div class="odepolabel">'''Language [[Property:Language code|?]]</div>
{{#arraymap:{{{Language code|}}}|,|x|[[Language code::x| ]] [[:Special:SearchByProperty/Language code/x|x]]}}
+
{{#ifeq: {{{Language code|}}}||add|{{#arraymap:{{{Language code|}}}|,|x|[[Language code::x| ]] [[:Special:SearchByProperty/Language code/x|x]]}}}}<br />
 
<div class="odepolabel">'''Contact Person [[Property:Contact|?]]'''</div>
 
<div class="odepolabel">'''Contact Person [[Property:Contact|?]]'''</div>
{{#arraymap:{{{Contact|}}}|,|x|[[Contact::x| ]] [[:Special:SearchByProperty/Contact/x|x]]}}
+
{{#ifeq: {{{Contact|}}}||add|{{#arraymap:{{{Contact|}}}|,|x|[[Contact::x| ]] [[:Special:SearchByProperty/Contact/x|x]]}}}}<br />
 
<div class="odepolabel">'''Email [[Property:Email|?]]'''</div>
 
<div class="odepolabel">'''Email [[Property:Email|?]]'''</div>
{{#arraymap:{{{Email|}}}|,|x|[[Email::x]]}}
+
{{#ifeq: {{{Email|}}}||add|{{#arraymap:{{{Email|}}}|,|x|[[Email::x]]}}}}<br />
 
<div class="odepolabel">'''Tags [[Property:Tag|?]]'''</div>
 
<div class="odepolabel">'''Tags [[Property:Tag|?]]'''</div>
{{#arraymap:{{{Tag|}}}|,|x|[[Tag::x| ]] [[:Special:SearchByProperty/Tag/x|x]]}}
+
{{#ifeq: {{{Tag|}}}||add|{{#arraymap:{{{Tag|}}}|,|x|[[Tag::x| ]] [[:Special:SearchByProperty/Tag/x|x]]}}}}<br />
 
{{#arraymap:{{{Open or Free Statement|}}}|,|x|[[Open or Free Statement::x| ]]}}
 
{{#arraymap:{{{Open or Free Statement|}}}|,|x|[[Open or Free Statement::x| ]]}}
 
</div>
 
</div>

Revision as of 20:51, 1 March 2010

This is the 'Organization' template. It should be called in the following format:

{{Organization
|Affiliation=
|Location=T
|Language code=
|Contact=
|Email=
|Mainurl=
|Resource URL=
|Resource Feed URL=
|Tag=
|Organization Type=
|Open or Free Statement=
|OER Statement=
|License provider=
|License short name=
|License=
}}

Edit the page to see the template text.