Difference between revisions of "Template:Case Study"
Line 34: | Line 34: | ||
__NOTOC__ | __NOTOC__ | ||
[[Category:Casestudy]] | [[Category:Casestudy]] | ||
− | + | <div style="padding:15px;background-color:#f4f4f4;border:1px solid #c0c0c0;display:block;width:100%;"> | |
− | + | {{#if:{{{Mainurl|}}}|{{#arraymap:{{{Mainurl|}}}|,|x|[[Mainurl::x|:x]]}}|}} | |
− | + | '''[[Property:Author|Author/Organisation]]'''<br /> | |
− | + | {{#arraymap:{{{Author|}}}|,|x|[[Author::x]]}} | |
− | |||
− | |||
− | | {{#arraymap:{{{ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | {{# | + | '''[[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> | ||
</includeonly> | </includeonly> |
Revision as of 17:36, 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.