Difference between revisions of "Template:Case Study"

From Creative Commons
Jump to: navigation, search
(License link formatting)
 
(100 intermediate revisions by 4 users not shown)
Line 17: Line 17:
 
|License short name=
 
|License short name=
 
|License=
 
|License=
 +
|CC adoption date=
 
|Format=
 
|Format=
 
|Country=
 
|Country=
 +
|importance=
 +
|quality=
 
|}}
 
|}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude>
 
</noinclude>
<includeonly>__NOTOC__
+
<includeonly>
<div style="padding:10px;background-color:#f4f4f4;border:1px solid #c0c0c0;width:100%;overflow-y:auto;display:block;">
+
<center><div class="limitimage" style="display:block;margin-bottom:20px;padding-bottom:10px;">{{{Image_Header|}}} <br />
<div style="padding:10px;display:block;overflow:hidden;">
+
<span style="font-size:75%;">{{{Image_attribution|}}}</span>
<center>{{#if: {{{Image_Header|}}} | [[Image Header::{{{Image_Header|}}}]] <br />{{#if: {{{Image_attribution}}} | <span style="font-size:75%;">[[Image_attribution::{{{Image_attribution}}}]]</span>}} {{#if: {{{Image_license|}}} | <span style="font-size:75%;">[[Image_license::{{{Image_license}}}]]</span>}} | {{Incomplete|Image Header|formedit}}}}</center><br />
+
<span style="font-size:75%;">{{{Image_license|}}}</span>
 
+
</div></center>
{{ #if: {{{Description|}}} | {{#set: Description={{{Description|}}}}}<div style="font-size:1.3em;text-align:justify;line-height:1.3em;margin-top:10px;margin-bottom:20px;">{{{Description|}}}</div>| (no description) }}
+
<div style="width: auto; max-width:30%;float: right; padding: 15px;margin-top: 0px;border: 1px solid #c0c0c0;background:#f0f0f0;overflow:hidden; display:inline-block;margin-left:20px;margin-bottom:10px;">
 
+
<div class="urllabel">'''[{{{Mainurl|}}} Go to URL]'''</div>
{{ #if: {{{Quote|}}} | <span style="font-size:1.25em;font-weight:bold;line-height:1.2em;text-align:justify;">"[[Quote::{{{Quote}}}]]"</span> | (no pull quote) }} {{ #if: {{{Quote_Attribution|}}} | <span style="color:white;"> &mdash; [[Quote_Attribution::{{{Quote_Attribution}}}]]</span> | (no quote attribution) }}
+
<div class="cslabel">'''[[{{{Author|}}}|License User]]'''</div>
 +
<div class="cslabel">'''[[{{{User_Status|}}}]]'''</div>
 +
<div class="cslabel">'''License Used'''<br />{{{License|unspecified}}}</div>
 +
<div class="cslabel">'''Media'''<br/>{{{Format|}}}</div>
 +
<div class="cslabel">'''{{{CC adoption date|Adoption date unspecified}}}</div>
 +
<div class="cslabel">'''[[{{{Country|Country unspecified}}}|{{{Country|Country unspecified}}}]]'''</div>
 +
<div class="cslabel">'''Tags'''<br />{{{Tag|}}}</div>
 +
{{CS_Trans|{{{translations|}}}}}
 +
{{Quality|{{{quality|}}}|{{{importance|}}}}}
 
</div>
 
</div>
<div style="display:block;padding:10px;">
+
<div style="font-size:1.3em;text-align:justify;line-height:1.3em;;margin-bottom:20px;">{{{Description|(no description)}}}</div>
{{#if:{{{Mainurl|}}}|{{#arraymap:{{{Mainurl|}}}|,|x|{{#set:Mainurl=x}}}}|}}
+
<span style="font-size:1.1em;line-height:1.1em;text-align:justify;">{{{Quote|}}}</span>
'''[[Property:Author|Author/Organisation]]'''<br />
+
<span style="font-size:1.1em;"> &mdash; {{{Quote_Attribution|}}}</span>
{{#arraymap:{{{Author|}}}|,|x|[[Author::x]]}}
+
__NOTOC__
 
 
'''[[Property:User_Status|User Status]]'''<br />
 
{{#arraymap:{{{User_Status|}}}|,|x|[[User_Status::x]]}}
 
 
 
'''[[Property:License short name|Licenses used]]'''<br />
 
{{#arraymap:{{{License short name|}}}|,|x|[[License short name::x]]}}
 
 
 
'''[[Property:Format|Media]]'''<br />
 
{{#arraymap:{{{Format|}}}|,|x|[[Format::x]]}}
 
 
 
'''[[Property:Country|Country]]'''<br />
 
{{#arraymap:{{{Country|}}}|,|x|[[Country::x]]}}
 
 
 
'''[[Property:Tag|Tags]]'''<br />
 
{{#arraymap:{{{Tag|}}}|,|x|[[Tag::x]]|}}
 
{{#ifeq: {{#sub:{{PAGENAME}}|0|4}}|Case|{{#set:Case study title={{#titleparts:{{PAGENAME}}|1|2}}}}|{{#set:Case study title={{PAGENAME}}}}}}{{#arraymap:{{{License|}}}|,|x|{{#set:License=x}}}}
 
</div>
 
<div style="clear:both;display:none;"></div></div>
 
 
[[Category:Casestudy]]
 
[[Category:Casestudy]]
 
</includeonly>
 
</includeonly>

Latest revision as of 23:51, 25 June 2015

This template simplifies the creation of articles about Case Studies. When inserted in a directory's page, it creates a decorative table with information about the content provided. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles. Do not try to read this page's source code for learning table syntax – there are far easier ways of creating tables in MediaWiki.

To use this template, insert the following at the beginning of your page. All fields are optional and should be omitted if no information is available. The page name should reflect the name of the Case Study. It should be called in the following format:

{{Case Study
|Description=
|Quote=
|Quote Attribution=
|Image Header=
|Image attribution=
|Image license=
|Mainurl=
|Author=
|User Status=
|Tag=
|License short name=
|License=
|CC adoption date=
|Format=
|Country=
|importance=
|quality=
|}}

Edit the page to see the template text.