Difference between revisions of "Template:Organization"

From Creative Commons
Jump to: navigation, search
(De-SMW in progress.)
Line 25: Line 25:
 
<div style="position: relative; width: 100%;overflow: visible;">
 
<div style="position: relative; width: 100%;overflow: visible;">
 
<div style="width: auto; max-width:50%;position: relative; float: left; padding: 10px; padding-top: 5px; margin-top: 0px;border-right: 1px solid #E0E0E0;background:#f6f6f6;border-top: 1px solid #E0E0E0; overflow: hidden;padding-bottom:25px;">
 
<div style="width: auto; max-width:50%;position: relative; float: left; padding: 10px; padding-top: 5px; margin-top: 0px;border-right: 1px solid #E0E0E0;background:#f6f6f6;border-top: 1px solid #E0E0E0; overflow: hidden;padding-bottom:25px;">
<div class="odepolabel">'''License(s)'''</div><span class="fielddata">{{#ifeq: {{{License short name|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap: {{{License short name|}}}|,|xyz|[[License short name::xyz| ]][http://wiki.creativecommons.org/Special:BrowseData/Organization?_single&License_short_name={{urlencode:xyz}} xyz]}}}}{{#arraymap:{{{License provider|}}}|,|xyz|[[License provider::xyz| ]]}}{{#arraymap:{{{License |}}}|,|xyz|[[License::xyz| ]]}}  {{#switch: {{{License short name|}}}
+
<div class="odepolabel">'''Main URL'''</div><span class="fielddata">{{{Mainurl| }}}</span>
| CC BY = [[Image:Cc-by.png|link=]]
+
<div class="odepolabel">'''Resource URL''' [[Image:Information.png|14px|link=Property:Resource URL]]</div>
| CC BY-ND = [[Image:Cc-by-nd.png|link=]]
+
<span class="fielddata">{{{Resource URL| }}}</span>
| CC BY-NC-ND = [[Image:Cc-by-nc-nd.png|link=]]
+
<div class="odepolabel">'''Resource Feed''' [[Image:Information.png|14px|link=Property:Resource Feed URL]]</div><span class="fielddata">{{{Resource Feed URL| }}}</span>
| CC BY-NC = [[Image:Cc-by-nc.png|link=]]
+
{{{Contact|}}}
| CC BY-NC-SA = [[Image:Cc-by-nc-sa.png|link=]]
+
{{{Email|}}}
| CC BY-SA  = [[Image:Cc-by-sa.png|link=]]
 
| PD =
 
| GNU GPL =
 
| GNU Lesser GPL =
 
| GNU Affero GPL =
 
| GNU FDL =
 
| Creative Archive =
 
| Open Publication License =
 
| custom =
 
| copyright =
 
| various  =
 
|
 
}}</span><div class="odepolabel">'''Main URL'''</div><span class="fielddata">{{#ifeq: {{{Mainurl| }}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Mainurl|}}}|,|xyz|[[Mainurl::xyz]]}}}}</span>
 
<div class="odepolabel">'''Resource URL''' [[Image:Information.png|14px|link=Property:Resource URL]]</div><span class="fielddata">{{#ifeq: {{{Resource URL| }}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Resource URL|}}}|,|xyz|[[Resource URL::xyz]]}}}}</span>
 
<div class="odepolabel">'''Resource Feed''' [[Image:Information.png|14px|link=Property:Resource Feed URL]]</div><span class="fielddata">{{#ifeq: {{{Resource Feed URL| }}} ||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Resource Feed URL|}}}|,|xyz|[[Resource Feed URL::xyz]]}}}}</span>{{#arraymap:{{{Contact|}}}|,|xyz|[[Contact::xyz| ]]}}{{#arraymap:{{{Email|}}}|,|xyz|[[Email::xyz| ]]}}
 
 
</div>
 
</div>
 +
 
<div style="width: auto; position: relative; text-align:left;padding-left: 30px;overflow: auto; height: 100%;padding-bottom: 10px; padding-top:0px;">
 
<div style="width: auto; position: relative; text-align:left;padding-left: 30px;overflow: auto; height: 100%;padding-bottom: 10px; padding-top:0px;">
 
<div class="odepolabel">'''Affiliation'''</div><span class="fielddata">{{#ifeq: {{{Affiliation|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Affiliation|}}}|,|xyz|[[Affiliation::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Affiliation&value={{urlencode:xyz}} xyz]}}}}</span>
 
<div class="odepolabel">'''Affiliation'''</div><span class="fielddata">{{#ifeq: {{{Affiliation|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Affiliation|}}}|,|xyz|[[Affiliation::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Affiliation&value={{urlencode:xyz}} xyz]}}}}</span>
Line 52: Line 38:
 
<div class="odepolabel">'''Location'''</div><span class="fielddata">{{#ifeq: {{{Location|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Location|}}}|,|xyz|[[Location::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Location&value={{urlencode:xyz}} xyz]}}}}</span>
 
<div class="odepolabel">'''Location'''</div><span class="fielddata">{{#ifeq: {{{Location|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Location|}}}|,|xyz|[[Location::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Location&value={{urlencode:xyz}} xyz]}}}}</span>
 
<div class="odepolabel">'''Language'''</div><span class="fielddata">{{#ifeq: {{{Language code|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Language code|}}}|,|xyz|[[Language code::xyz| ]] [http://wiki.creativecommons.org/Special:BrowseData/Organization?_single&Language_code={{urlencode:xyz}} xyz]}}}}</span>
 
<div class="odepolabel">'''Language'''</div><span class="fielddata">{{#ifeq: {{{Language code|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap:{{{Language code|}}}|,|xyz|[[Language code::xyz| ]] [http://wiki.creativecommons.org/Special:BrowseData/Organization?_single&Language_code={{urlencode:xyz}} xyz]}}}}</span>
<div class="odepolabel">'''Tags'''</div><span class="fielddata">{{#ifeq: {{{Tag|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap: {{{Tag|}}}|,|xyz|[[Tag::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Tag&value={{urlencode: xyz}} xyz]}}}}</span>{{#arraymap:{{{Open or Free Statement|}}}|,|xyz|[[Open or Free Statement::xyz| ]]}}
+
<div class="odepolabel">'''Tags'''</div><span class="fielddata">{{#ifeq: {{{Tag|}}}||[http://wiki.creativecommons.org{{localurl:{{PAGENAME}}|action=formedit}} Add]|{{#arraymap: {{{Tag|}}}|,|xyz|[[Tag::xyz| ]] [http://wiki.creativecommons.org/Special:SearchByProperty?title=Special%3ASearchByProperty&property=Tag&value={{urlencode: xyz}} xyz]}}}}</span>{{{Open or Free Statement|}}}|,|xyz|[[Open or Free Statement::xyz| ]]}}
 
</div>
 
</div>
 
</div>
 
</div>
 
<div style="width:0px;height:0px;overflow:hidden;padding-bottom: 10px;"><br />
 
<div style="width:0px;height:0px;overflow:hidden;padding-bottom: 10px;"><br />
 
[[Category:Organization]]
 
[[Category:Organization]]
{{#if: {{{Location|}}}|{{#set:Coordinates = {{#geocode:{{{Location|}}}}}}}|}}
 
{{#arraydefine:OrgTypecount|{{{Organization Type|}}}}}
 
{{#set:Organization Type count={{#arraysize:OrgTypecount}}}}
 
{{#arraydefine:lsncount|{{{License short name|}}}}}
 
{{#set:License short name count={{#arraysize:lsncount}}}}
 
{{#arraydefine:affcount|{{{Affiliation|}}}}}
 
{{#set:Affiliation count={{#arraysize:affcount}}}}
 
{{#arraydefine:langcodecount|{{{Language code|}}}}}
 
{{#set:Language code count={{#arraysize:langcodecount}}}}
 
[[Page has default form::Organization-edit| ]]
 
 
</div><br />
 
</div><br />
 
</includeonly>
 
</includeonly>

Revision as of 23:17, 25 June 2015

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

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

Edit the page to see the template text.