Difference between revisions of "Template:Jurisdiction"

From Creative Commons
Jump to: navigation, search
(Temporary, reduced, non-Semantic templat.)
Line 1: Line 1:
<includeonly>
+
<noinclude>
<div style="clear: both;"></div>
+
This is the "Jurisdiction" template.
<div class="jurDash" style="width:40%;vertical-align:top;float:right;display:inline-block;margin-left:40px;">
+
It should be called in the following format:
<div id="jurbox" style="width:100%; border:1px solid #cccccc;background-color:#f4f4f4; vertical-align:top;padding:15px;float:right;display:inline-block;font-size:0.95em;">
+
<pre>
<h2 style="font-size:1.3em; font-weight:bold;text-align:left;padding-left:5px;margin:0px;letter-spacing:1px;display:inline-block;padding-bottom:10px;">CC {{PAGENAME}}</h2>{{#set: Name={{PAGENAME}}}}
+
{{Jurisdiction
<div style="float:right;display:inline-block;text-align:right;margin-left:5px;" class="jurImage">{{#if: {{{country code|}}}|{{#set: Country code={{lc:{{{country code|}}}}}}}}}{{#set: Flag URL=https://creativecommons.org/images/international/{{lc:{{{country code|}}}}}.png|frame|200px}}{{#if: {{{homepage|}}}|[{{{homepage|}}} https://creativecommons.org/images/international/{{lc:{{{country code|}}}}}.png]|https://creativecommons.org/images/international/{{lc:{{{country code|}}}}}.png|frame|200px}}{{#if: {{{logourl|}}}|<br /><br /><div id="logoimg" style="max-width: 200px">{{{logourl|frame|200px}}}</div>|}}</div>
+
|jurstatus=
 
+
|status=
* {{#if: {{{homepage|}}}|{{#set:Jurisdiction homepage={{{homepage|}}}}}'''[{{{homepage|}}} Homepage]'''|[{{fullurl:{{PAGENAME}}|action=formedit}} Add homepage]}}{{#if: {{{blog|}}}|{{#set:Jurisdiction blog={{{blog|}}}}}|}}
+
|country code=
* {{#if: {{{mailing list|}}}|{{#set:Jurisdiction mailing list={{{mailing list|}}}}}'''[{{{mailing list|}}} Mailing list]'''|[{{fullurl:{{PAGENAME}}|action=formedit}} Add mailing list]}}
+
|homepage=
* {{#if: {{{twitter|}}}|{{#set:Microblog URL={{{twitter|}}}}}'''[{{{twitter|}}} Microblog]'''|[{{fullurl:{{PAGENAME}}|action=formedit}} Add microblog]}}
+
|otherurl=
* {{#if: {{{social|}}}|{{#set:Social URL={{{social|}}}}}'''[{{{social|}}} Social network]'''|[{{fullurl:{{PAGENAME}}|action=formedit}} Add social network page]}}
+
|region=
 
+
|affiliated=
'''Other URLs'''<br />
+
|affurl=
{{#if: {{{otherurl|}}}|{{#set:Other URLs={{{otherurl|}}}}}<small>{{{otherurl|}}}</small>|<small>[{{fullurl:{{PAGENAME}}|action=formedit}} Add URLs]</small>}}
+
|afftype=
 
+
|plead1=
<div style="border-top: 1px solid #cccccc; margin-top:5px;margin-bottom:5px;padding-top:1em;">
+
|pemail1=
'''Status'''<br />
+
|ptitle1=
{{#if: {{{jurstatus|}}}|[[Has status::{{{jurstatus|}}}]]|<small>[{{fullurl:{{PAGENAME}}|action=formedit}} Add status]</small>}}
+
|flagurl=
 
 
'''Affiliated institution(s)'''<br />
 
{{#if: {{{affiliated|}}}|{{#set:Jurisdiction affiliate={{{affiliated|}}}}}{{#if:{{{affurl|}}}|[[Affiliate URL::{{{affurl|}}}|{{{affiliated|}}}]]|{{{affiliated|}}}}}|<small>[{{fullurl:{{PAGENAME}}|action=formedit}} Add affiliate(s)]</small>}}{{#if: {{{affiliated2|}}}|{{#set:Jurisdiction affiliate={{{affiliated2|}}}}}{{#if:{{{affurl2|}}}|, [[Affiliate URL::{{{affurl2|}}}|{{{affiliated2|}}}]]|, {{{affiliated2|}}}}}|}}{{#if: {{{affiliated3|}}}|{{#set:Jurisdiction affiliate={{{affiliated3|}}}}}{{#if:{{{affurl3|}}}|, [[Affiliate URL::{{{affurl3|}}}|{{{affiliated3|}}}]]|, {{{affiliated3|}}}}}|}}{{#if: {{{affiliated4|}}}|{{#set:Jurisdiction affiliate={{{affiliated4|}}}}}{{#if:{{{affurl4|}}}|, [[Affiliate URL::{{{affurl4|}}}|{{{affiliated4|}}}]]|, {{{affiliated4|}}}}}|}}{{#if: {{{affiliated5|}}}|{{#set:Jurisdiction affiliate={{{affiliated5|}}}}}{{#if:{{{affurl5|}}}|, [[Affiliate URL::{{{affurl5|}}}|{{{affiliated5|}}}]]|, {{{affiliated5|}}}}}|}}
 
 
 
'''Project lead(s)'''<br />
 
{{#if: {{{plead1|}}}|{{#set:Has project lead::{{{plead1|}}}}}{{#if:{{{pemail1|}}}|[[Has project lead email::{{{pemail1|}}}|{{{plead1|}}}]]|{{{plead1|}}}}} {{#if: {{{ptitle1|}}}|{{#set: Jurisdiction lead title={{{ptitle1|}}}}} ({{{ptitle1|}}})|}}|<small>[{{fullurl:{{PAGENAME}}|action=formedit}} Add lead(s)]</small>}}{{#if: {{{plead2|}}}|, {{#set:Has project lead::{{{plead2|}}}}}{{#if:{{{pemail2|}}}|[[Has project lead email::{{{pemail2|}}}|{{{plead2|}}}]]|{{{plead2|}}}}} {{#if: {{{ptitle2|}}}|{{#set: Jurisdiction lead title={{{ptitle2|}}}}} ({{{ptitle2|}}})|}}|}}{{#if: {{{plead3|}}}|, {{#set:Has project lead::{{{plead3|}}}}}{{#if:{{{pemail3|}}}|[[Has project lead email::{{{pemail3|}}}|{{{plead3|}}}]]|{{{plead3|}}}}} {{#if: {{{ptitle3|}}}|{{#set: Jurisdiction lead title={{{ptitle3|}}}}} ({{{ptitle3|}}})|}}|}}{{#if: {{{plead4|}}}|, {{#set:Has project lead::{{{plead4|}}}}}{{#if:{{{pemail4|}}}|[[Has project lead email::{{{pemail4|}}}|{{{plead4|}}}]]|{{{plead4|}}}}} {{#if: {{{ptitle4|}}}|{{#set: Jurisdiction lead title={{{ptitle4|}}}}} ({{{ptitle4|}}})|}}|}}{{#if: {{{plead5|}}}|, {{#set:Has project lead::{{{plead5|}}}}}{{#if:{{{pemail5|}}}|[[Has project lead email::{{{pemail5|}}}|{{{plead5|}}}]]|{{{plead5|}}}}} {{#if: {{{ptitle5|}}}|{{#set: Jurisdiction lead title={{{ptitle5|}}}}} ({{{ptitle5|}}})|}}|}}{{#set: Has team of size={{{teamsize|}}}}}
 
 
 
'''Mailing address'''<br />
 
{{#if: {{{mailing|}}}|<small>{{#set: Mailing address={{{mailing|}}}}}{{{mailing|}}}</small>|<small>[{{fullurl:{{PAGENAME}}|action=formedit}} Add address]</small>}}
 
 
 
'''Region'''<br />
 
{{#if: {{{region|}}}|{{#set: In region={{{region|}}}}}{{{region|}}}|[{{fullurl:{{PAGENAME}}|action=formedit}} <small>Add region</small>]}}
 
</div>
 
<div style="border-top: 1px solid #cccccc; margin-top:5px;margin-bottom:5px;padding-top:1em;"><div style="font-weight:bold;padding-bottom:5px;">Most recent license version</div>{{#if: {{{status|}}}|{{#set:Most recent port={{{status|}}}}}{{#if:{{{country code|}}}|
 
* '''[http://creativecommons.org/licenses/by/{{{status|}}}/{{#switch: {{{country code|}}}|unported=|none=|#default={{{country code|}}}}} Attribution {{{status|}}} {{PAGENAME}}]''' {{#ifexist: {{PAGENAME}}/{{{status|}}}/BY|<small>([[{{PAGENAME}}/{{{status|}}}/BY|wiki version]])</small>[[Category:Jurisdictions with license data]]|}}
 
* '''[http://creativecommons.org/licenses/by-nc/{{{status|}}}/{{#switch: {{{country code|}}}|unported=|none=|#default={{{country code|}}}}} Attribution-NonCommercial {{{status|}}} {{PAGENAME}}]''' {{#ifexist: {{PAGENAME}}/{{{status|}}}/BY NC|<small>([[{{PAGENAME}}/{{{status|}}}/BY-NC|wiki version]])</small>[[Category:Jurisdictions with license data]]|}}
 
* '''[http://creativecommons.org/licenses/by-nc-nd/{{{status|}}}/{{#switch: {{{country code|}}}|unported=|none=|#default={{{country code|}}}}} Attribution-NonCommercial-NoDerivs {{{status|}}} {{PAGENAME}}]''' {{#ifexist: {{PAGENAME}}/{{{status|}}}/BY-NC-ND|<small>([[{{PAGENAME}}/{{{status|}}}/BY-NC-ND|wiki version]])</small>[[Category:Jurisdictions with license data]]|}}
 
* '''[http://creativecommons.org/licenses/by-nc-sa/{{{status|}}}/{{#switch: {{{country code|}}}|unported=|none=|#default={{{country code|}}}}} Attribution-NonCommercial-ShareAlike {{{status|}}} {{PAGENAME}}]''' {{#ifexist: {{PAGENAME}}/{{{status|}}}/BY-NC-SA|<small>([[{{PAGENAME}}/{{{status|}}}/BY-NC-SA|wiki version]])</small>[[Category:Jurisdictions with license data]]|}}
 
* '''[http://creativecommons.org/licenses/by-nd/{{{status|}}}/{{#switch: {{{country code|}}}|unported=|none=|#default={{{country code|}}}}} Attribution-NoDerivs {{{status|}}} {{PAGENAME}}]''' {{#ifexist: {{PAGENAME}}/{{{status|}}}/BY-ND|<small>([[{{PAGENAME}}/{{{status|}}}/BY-ND|wiki version]])</small>[[Category:Jurisdictions with license data]]|}}
 
* '''[http://creativecommons.org/licenses/by-sa/{{{status|}}}/{{#switch: {{{country code|}}}|unported=|none=|#default={{{country code|}}}}} Attribution-ShareAlike {{{status|}}} {{PAGENAME}}]''' {{#ifexist: {{PAGENAME}}/{{{status|}}}/BY-SA|<small>([[{{PAGENAME}}/{{{status|}}}/BY-SA|wiki version]])</small>[[Category:Jurisdictions with license data]]|}}
 
{{#ifeq: {{{status|}}}|3.0|<small>[http://wiki.creativecommons.org/Special:FormEdit?form=Ported_License&Ported_License{{urlencode:[Jurisdiction]}}={{urlencode:{{PAGENAME}}}} Add a 3.0 wiki-version]</small>|}}
 
|<br /><small>[{{fullurl:{{PAGENAME}}|action=formedit}} Add country code]</small>}}|<br /><small>[{{fullurl:{{PAGENAME}}|action=formedit}} Edit latest version]</small>}}
 
 
 
{{#ifexist: {{PAGENAME}}/3.0
 
|'''[[{{PAGENAME}}/3.0|View]]''' or '''[{{fullurl:{{PAGENAME}}/3.0|action=formedit}} Edit]''' 3.0 porting process information for this jurisdiction.|'''[http://wiki.creativecommons.org/Special:FormEdit?form=License&target={{urlencode:{{PAGENAME}}}}/3.0&Jurisdiction{{urlencode:[jurisdiction]}}={{urlencode:{{PAGENAME}}}} Begin submitting 3.0 porting information.]'''}}
 
</div></div>
 
<div style="float:left;padding:4px;padding-top:2px;padding-bottom:1px;display:block;font-size:85%;border:1px solid #cccccc;border-top:none;background-color:#f9f9f9;-moz-border-radius-bottomright:3px;-moz-border-radius-bottomleft:3px;-webkit-border-bottom-left-radius:3px;-webkit-border-bottom-right-radius:3px;margin-top:-1px;">[{{fullurl:{{PAGENAME}}|action=formedit}} Edit]</div>
 
<div style="float:right;display:inline-block;font-size:90%;text-align:right;margin-top:5px;">
 
'''[[Jurisdiction Database|back to jurisdiction database >>]]'''<br />
 
<small>Please read the [http://wiki.creativecommons.org/Jurisdiction_Database#Disclaimer disclaimer].</small>
 
</div>
 
<div style="float:right;display:block;font-size:90%;width:100%;padding-bottom:5px;margin-bottom:10px;"><div style="margin-bottom:15px;margin-top:5px;display:block;font-weight:bold;font-size:1.5em;">{{PAGENAME}} Case Studies</div>
 
{{#ifeq: {{#ask: [[Category:Casestudy]][[Country::{{PAGENAME}}]]|format=count}}|0|No case studies for this jurisdiction. [[Case Studies|Add some now]].|{{#ask: [[Category:Casestudy]][[Country::{{PAGENAME}}]]|?Case study title|?Description|?Image Header|link=none|format=template|template=Explorebox|limit=3|sort=Case study title|order=random|searchlabel='''See more Case Studies from {{PAGENAME}}...'''}}}}
 
</div>
 
<div style="float:right;display:block;font-size:90%;width:100%;padding-bottom:5px;margin-bottom:10px;"><div style="margin-bottom:15px;margin-top:5px;display:block;font-weight:bold;font-size:1.5em;">{{PAGENAME}} Case Law</div>
 
{{#ifeq: {{#ask: [[Category:Case Law]][[In country or region::{{PAGENAME}}]]|format=count}}|0|No case law for this jurisdiction. [[Case Law|Add some now]].|{{#ask: [[Category:Case Law]][[In country or region::{{PAGENAME}}]]|format=ul|limit=3|searchlabel='''See more Case Law from {{PAGENAME}}...'''}}}}
 
</div></div>
 
<div style="display:none;">
 
{{#set: Jurisdiction={{PAGENAME}}}}[[Category:Jurisdictions]]
 
{{#switch: {{PAGENAME}}
 
|China Mainland = {{#set: Coordinates={{#geocode: China}}}}
 
|Unported =
 
|UK: England and Wales = {{#set: Coordinates={{#geocode: England}}}}
 
|UK: Scotland = {{#set: Coordinates={{#geocode: Scotland}}}}
 
|#default={{#set: Coordinates={{#geocode: {{PAGENAME}}}}}}
 
 
}}
 
}}
__NOEDITSECTION__
+
</pre>
 +
Edit the page to see the template text.
 +
</noinclude><includeonly>
 
__NOTOC__
 
__NOTOC__
</div>
+
<div style="position: relative;">
 +
<span title=""><strong>Homepage</strong>:</span> [{{{homepage|}}}] <br /></div>
 +
<span title=""><strong>Other URLs</strong>:</span> [{{{otherurl|}}}] <br /></div>
 +
<span title=""><strong>Status</strong>:</span> {{{jurstatus|}}}<br /></div>
 +
<span title=""><strong>Most Recent License Version</strong>:</span> {{{status|}}}<br /></div>
 +
<span title=""><strong>Affiliated Institution</strong>:</span> [{{{affurl|}}} {{{affiliated|}}}] ({{{afftype|}}}) <br /></div>
 +
<span title=""><strong></strong>:</span> {{{|}}}<br /></div>
 +
<span title=""><strong>{{{ptitle1|}}}</strong>:</span> {{{plead1|}}}<br /></div>
 +
<span title=""><strong>Mailing address</strong>:</span> {{{pemail|}}}<br /></div>
 +
<span title=""><strong>Region</strong>:</span> {{{region|}}}<br /></div>
 +
<span title=""><strong>Country Code</strong>:</span> {{{country code|}}}<br /></div>
 +
<span title=""><strong>Flag</strong>:</span> [[File:{{{flagurl|}}}]]<br /></div>
 
</includeonly>
 
</includeonly>

Revision as of 21:26, 11 June 2015

This is the "Jurisdiction" template. It should be called in the following format:

{{Jurisdiction
|jurstatus=
|status=
|country code=
|homepage=
|otherurl=
|region=
|affiliated=
|affurl=
|afftype=
|plead1=
|pemail1=
|ptitle1=
|flagurl=
}}

Edit the page to see the template text.