Difference between revisions of "Template:Case Study"

From Creative Commons
Jump to: navigation, search
Line 25: Line 25:
 
<includeonly>__NOTOC__
 
<includeonly>__NOTOC__
 
<div style="padding:10px;background-color:#f4f4f4;border:1px solid #c0c0c0;width:100%;overflow-y:auto;display:block;">
 
<div style="padding:10px;background-color:#f4f4f4;border:1px solid #c0c0c0;width:100%;overflow-y:auto;display:block;">
<div style="display:table;overflow-y:auto;margin-bottom:10px;text-align: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}}}}
 
</div>
 
 
<div style="float:right;max-width:40%;display:inline-block;padding:5px;">
 
<div style="float:right;max-width:40%;display:inline-block;padding:5px;">
 
{{#if:{{{Mainurl|}}}|{{#arraymap:{{{Mainurl|}}}|,|x|{{#set:Mainurl=x}}}}|}}
 
{{#if:{{{Mainurl|}}}|{{#arraymap:{{{Mainurl|}}}|,|x|{{#set:Mainurl=x}}}}|}}
Line 50: Line 47:
 
</div>
 
</div>
 
<div style="float:left;max-width:55%;padding:5px;display:inline-block;">
 
<div style="float:left;max-width:55%;padding:5px;display:inline-block;">
 +
{{#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}}}}
 
{{ #if: {{{Quote|}}} | <span style="font-size:1.5em;">"[[Quote::{{{Quote}}}]]"</span> | (no pull quote) }} {{ #if: {{{Quote_Attribution|}}} | <span style="color:white;"> &mdash; [[Quote_Attribution::{{{Quote_Attribution}}}]]</span> | (no quote attribution) }}
 
{{ #if: {{{Quote|}}} | <span style="font-size:1.5em;">"[[Quote::{{{Quote}}}]]"</span> | (no pull quote) }} {{ #if: {{{Quote_Attribution|}}} | <span style="color:white;"> &mdash; [[Quote_Attribution::{{{Quote_Attribution}}}]]</span> | (no quote attribution) }}
  

Revision as of 18:02, 17 August 2010

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=
|Format=
|Country=
|}}

Edit the page to see the template text.