Difference between revisions of "Template:Jurisdiction"

From Creative Commons
Jump to: navigation, search
(Nope. Trying again.)
 
(201 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>
+
<noinclude>
<div class="jurDash" style="width:35%;vertical-align:top;float:right;display:inline-block; margin-left:25px;">
+
This is the "Jurisdiction" template.
{| style="width:100%; border:1px solid #cccccc;background-color:#f4f4f4; vertical-align:top;padding:10px;float:right;display:inline-block;"
+
It should be called in the following format:
! style="width:100%;vertical-align:top;padding-top:5px;" | <h2 style="font-size:1.3em; font-weight:bold;text-align:left;padding-left:5px;margin:0px;letter-spacing:1px;">CC {{PAGENAME}}</h2>
+
<pre>
|style="display:inline-block;"|{{#if: {{{country code|}}}|{{#set: Country code={{lc:{{{country code|}}}}}}}<div style="float:right;display:inline-block;text-align:right;margin-left:5px;" class="jurImage">[http://creativecommons.org/international/{{lc:{{{country code|}}}}}/ http://creativecommons.org/images/international/{{lc:{{{country code|}}}}}.png]<br /><small>[http://creativecommons.org/international/{{lc:{{{country code|}}}}}/ cc.org/{{lc:{{{country code|}}}}}]</small></div>|}}
+
{{Jurisdiction
|-
+
|jurstatus=
|colspan="2" style="font-size:95%;" |
+
|status=
*{{#if: {{{homepage|}}}|{{#set:Jurisdiction homepage={{{homepage|}}}}}[{{{homepage|}}} Homepage]|Homepage <small>([{{fullurl:{{PAGENAME}}|action=formedit}} add link])</small>}}
+
|country code=
*{{#if: {{{blog|}}}|{{#set:Jurisdiction blog={{{blog|}}}}}[{{{blog|}}} Blog]|Blog <small>([{{fullurl:{{PAGENAME}}|action=formedit}} add link])}}</small>
+
|homepage=
*{{#if: {{{mailing list|}}}|{{#set:Jurisdiction mailing list={{{mailing list|}}}}}[{{{mailing list|}}} Mailing list]|Mailing list <small>([{{fullurl:{{PAGENAME}}|action=formedit}} add link])</small>}}
+
|otherurl=
 
+
|region=
'''Affiliated institution or person'''<br />
+
|affiliated=
{{#if: {{{affiliated|}}}|{{#arraymap:{{{affiliated|}}}|,|xyz|{{#set:Jurisdiction affiliate=xyz}}xyz}}|<small>([{{fullurl:{{PAGENAME}}|action=formedit}} add affiliate])</small>}}
+
|affurl=
 
+
|afftype=
'''Most recent license version'''<br />
+
|plead1=
{{#if: {{{status|}}}|{{#set:Most recent port={{{status|}}}}}{{{status|}}}  <small>([{{fullurl:{{PAGENAME}}|action=formedit}} edit version])</small>|<small>([{{fullurl:{{PAGENAME}}|action=formedit}} add version])</small>}}
+
|pemail1=
|}
+
|ptitle1=
<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>
+
|flagurl=
<div style="float:right;display:block;font-size:90%;width:100%;text-align:right;margin-top:5px;">
+
}}
[http://creativecommons.org/international cc.org/international]<br />
+
</pre>
'''[[Jurisdiction Database|back to jurisdiction database >>]]'''
+
Edit the page to see the template text.
</div></div>
+
</noinclude><includeonly>
<div style="margin:0px;margin-bottom:10px;padding:0px;border-bottom:1px solid #c0c0c0;overflow:hidden;"><h2 style="margin-top:0px;padding-top:0px;display:inline-block;width:70%;">3.0 Porting Data</h2>
 
{{#ifexist: {{PAGENAME}}/3.0
 
|Data for the {{PAGENAME}} 3.0 porting process has been added. [{{fullurl:{{PAGENAME}}/3.0|action=formedit}} Click here to edit 3.0] or [[/3.0|click here]] to see the page.
 
|There is no data on the Creative Commons 3.0 license porting to {{PAGENAME}}.<br />[http://wiki.creativecommons.org/Special:FormEdit?form=License&target={{urlencode:{{PAGENAME}}}}/3.0&Jurisdiction{{urlencode:[jurisdiction]}}={{urlencode:{{PAGENAME}}}} Click here to add 3.0]}}
 
 
 
'''Structured 3.0 license text'''<br />
 
{{#ifexist: {{PAGENAME}}/CC_BY|[[/CC_BY|CC BY]]<br />|CC BY (add page)}}
 
{{#ifexist: {{PAGENAME}}/CC_BY-SA|[[/CC_BY-SA|CC BY-SA]]<br />|CC BY-SA (add page)}}
 
{{#ifexist: {{PAGENAME}}/CC_BY-ND|[[/CC_BY-ND|CC BY-ND]]<br />|CC BY-ND (add page)}}
 
{{#ifexist: {{PAGENAME}}/CC_BY-NC|[[/CC_BY-NC|CC BY-NC]]<br />|CC BY-NC (add page)}}
 
{{#ifexist: {{PAGENAME}}/CC_BY-NC-SA|[[/CC_BY-NC-SA|CC BY-NC-SA]]<br />|CC BY-NC-SA (add page)}}
 
{{#ifexist: {{PAGENAME}}/CC_BY-NC-ND|[[/CC_BY-NC-ND|CC BY-NC-ND]]<br />|CC BY-NC-ND (add page)}}
 
 
 
</div>
 
<div style="display:none;">__NOEDITSECTION__
 
 
__NOTOC__
 
__NOTOC__
{{#set: Jurisdiction={{PAGENAME}}}}[[Category:Jurisdictions]]
+
<div style="max-width:33%; position: relative; top: 0; float: right; padding: 15px;margin-top: 0px;border: 1px solid #c0c0c0;background:#f0f0f0;overflow:hidden; display:inline-block;margin-left:20px;margin-bottom:10px;">
 +
<span title=""><strong>Homepage</strong></span><br />{{{homepage|}}} <br />
 +
<span title=""><strong>Other URLs</strong></span><br />{{{otherurl|}}} <br />
 +
<span title=""><strong>Status</strong></span><br />{{{jurstatus|}}}<br />
 +
<span title=""><strong>Most Recent License Version</strong></span><br />{{{status|}}}<br />
 +
<span title=""><strong>Affiliated Institution</strong></span><br />[{{{affurl|}}} {{{affiliated|}}}] ({{{afftype|}}}) <br />
 +
<span title=""><strong>{{{ptitle1|}}}</strong></span><br />{{{plead1|}}}<br />
 +
<span title=""><strong>EMail</strong></span><br />{{{pemail1|}}}<br />
 +
<span title=""><strong>Region</strong></span><br />{{{region|}}}<br />
 +
<span title=""><strong>Country Code</strong></span><br />{{{country code|}}}<br />
 +
<span title=""><strong>Flag</strong></span><br />{{{flagurl|}}}<br />
 
</div>
 
</div>
 +
[[Category:CC Affiliate Locale]][[Category:Affiliate {{{jurstatus|}}}]]
 
</includeonly>
 
</includeonly>

Latest revision as of 23:17, 28 July 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.