Difference between revisions of "Template:ContentCurator"

From Creative Commons
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>This template simplifies the creation of articles about Content Curator. When inserted in an content curator's page, it creates a decorative table with much helpful information. 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 &ndash; there are far easier ways of creating tables in MediaWiki.
 
<noinclude>This template simplifies the creation of articles about Content Curator. When inserted in an content curator's page, it creates a decorative table with much helpful information. 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 &ndash; there are far easier ways of creating tables in MediaWiki.
  
To use this template, insert the following at the beginning of your user page. All fields are strictly '''optional''' and should be omitted if no data is given.
+
To use this template, insert the following at the beginning of your user page. All fields are '''optional''' and should be omitted if no information is available. The page name should reflect the name of the Content Directory.
 +
 
 
<pre>{{ContentCurator|
 
<pre>{{ContentCurator|
  title=Name of Content Curator (ie: Flickr)|
 
 
   mainurl= The main URL of the site, without "http://" (ie: flickr.com)|
 
   mainurl= The main URL of the site, without "http://" (ie: flickr.com)|
 
   ccportal= The URL for the CC-only portal (ie: http://flickr.com/creativecommons/)|
 
   ccportal= The URL for the CC-only portal (ie: http://flickr.com/creativecommons/)|
Line 33: Line 33:
 
{| cellspacing="0" cellpadding="5" style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: center; clear: right; width: 60em"
 
{| cellspacing="0" cellpadding="5" style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; border: 1px solid #aaa; background: #fff; float: center; clear: right; width: 60em"
 
! colspan="2" style="background: #006600; color: white" |[[Name:={{{Name|{{PAGENAME}}}}}]]
 
! colspan="2" style="background: #006600; color: white" |[[Name:={{{Name|{{PAGENAME}}}}}]]
|-
 
{{#ifeq:{{{title|}}}|||{{Tablelongrow|Value=[[title::{{{title}}}]]|Color=#CAF7B7}}}}
 
 
|-
 
|-
 
{{#ifeq:{{{mainurl|}}}|||{{Tablerow|Label=* Main URL:|Value=[http://{{{mainurl}}} [[mainurl:=http://{{{mainurl}}}|{{{mainurl label|{{{mainurl}}}}}}]]]}}}}
 
{{#ifeq:{{{mainurl|}}}|||{{Tablerow|Label=* Main URL:|Value=[http://{{{mainurl}}} [[mainurl:=http://{{{mainurl}}}|{{{mainurl label|{{{mainurl}}}}}}]]]}}}}
Line 40: Line 38:
 
{{#ifeq:{{{ccportal|}}}|||{{Tablerow|Label=* CC-only portal:|Value=[[ccportal:={{{ccportal}}}]]}}}}
 
{{#ifeq:{{{ccportal|}}}|||{{Tablerow|Label=* CC-only portal:|Value=[[ccportal:={{{ccportal}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{ccfeed|}}}|||{{Tablerow|Label=* CC-only feed:|Value=[[ccfeed::{{{ccfeed}}}]]}}}}
+
{{#ifeq:{{{ccfeed|}}}|||{{Tablerow|Label=* CC-only feed:|Value=[[ccfeed:={{{ccfeed}}}]]}}}}
 
|-
 
|-
 
{{#if:{{{format1|}}}|{{Tablerow|Label=* Formats:|Value=[[format::{{{format1}}}]]|}}{{#if:{{{format2|}}}|, [[format::{{{format2}}}]]}}{{#if:{{{format3|}}}|, [[format::{{{format3}}}]]}}{{#if:{{{format4|}}}|, [[format::{{{format4}}}]]}}{{#if:{{{format5|}}}|, [[format::{{{format5}}}]]}}{{#if:{{{format6|}}}|, [[format::{{{format6}}}]]}}  
 
{{#if:{{{format1|}}}|{{Tablerow|Label=* Formats:|Value=[[format::{{{format1}}}]]|}}{{#if:{{{format2|}}}|, [[format::{{{format2}}}]]}}{{#if:{{{format3|}}}|, [[format::{{{format3}}}]]}}{{#if:{{{format4|}}}|, [[format::{{{format4}}}]]}}{{#if:{{{format5|}}}|, [[format::{{{format5}}}]]}}{{#if:{{{format6|}}}|, [[format::{{{format6}}}]]}}  
 
}}  
 
}}  
 
|-
 
|-
{{#ifeq:{{{size|}}}|||{{Tablerow|Label=* Approximate Size of the CC-licensed collection:|Value={{{size}}}}}}}
+
{{#ifeq:{{{size|}}}|||{{Tablerow|Label=* Approximate Size of the CC-licensed collection:|Value=[[size:={{{size}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{notes|}}}|||{{Tablerow|Label=* Notes:|Value={{{notes}}}}}}}
 
 
|}
 
|}
 
[[Category:Content_Directory]]</includeonly>
 
[[Category:Content_Directory]]</includeonly>

Revision as of 17:08, 12 July 2007

This template simplifies the creation of articles about Content Curator. When inserted in an content curator's page, it creates a decorative table with much helpful information. 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 user page. All fields are optional and should be omitted if no information is available. The page name should reflect the name of the Content Directory.

{{ContentCurator|
  mainurl= The main URL of the site, without "http://" (ie: flickr.com)|
  ccportal= The URL for the CC-only portal (ie: http://flickr.com/creativecommons/)|
  ccfeed= The URL for the CC-only feed |
  format1=audio|
  format2=video|
  format3=image|
  format4=|
  format5=|
  format6=|
  size= Approximate size of the CC-licensed collection (ie: 1000)|
 }}

The order of the fields is not relevant. The template should be given as the first thing on a page.

Formats

The following are recommended values for the format fields:

  • Sound
  • Image
  • Text
  • MovingImage
  • InteractiveResource