Difference between revisions of "Template:ContentCurator"

From Creative Commons
Jump to: navigation, search
Line 4: Line 4:
 
<pre>{{ContentCurator|
 
<pre>{{ContentCurator|
 
   title=Name|
 
   title=Name|
   mainurl= The main URL|
+
   mainurl= The main URL without "http://"|
 
   ccportal= CC-only portal|
 
   ccportal= CC-only portal|
 
   ccfeed= CC-only feed|
 
   ccfeed= CC-only feed|
   format={{format| format=change-here}} change-here|
+
   format={{format| format=audio}} MP3 192k / Ogg Vorbis Q7|
 
   sizeandscope= Size and scope of CC-licensed collection|
 
   sizeandscope= Size and scope of CC-licensed collection|
 
   notes= Notes
 
   notes= Notes
 
  }}</pre>
 
  }}</pre>
 
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page.
 
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page.
 +
{{#ifeq:{{{format|}}}|||{{Tablerow|Label=* Formats:|Value=[[format::{{{format}}}]]}}}}
  
  
Line 20: Line 21:
 
{{#ifeq:{{{title|}}}|||{{Tablelongrow|Value=[[title::{{{title}}}]]|Color=#CAF7B7}}}}
 
{{#ifeq:{{{title|}}}|||{{Tablelongrow|Value=[[title::{{{title}}}]]|Color=#CAF7B7}}}}
 
|-
 
|-
{{#ifeq:{{{mainurl|}}}|||{{Tablerow|Label=* Main URL:|Value=[[mainurl::{{{mainurl}}}]]}}}}
+
{{#ifeq:{{{mainurl|}}}|||{{Tablerow|Label=* Main URL:|Value=[http://{{{mainurl}}} [[mainurl:=http://{{{mainurl}}}|{{{mainurl label|{{{mainurl}}}}}}]]]}}}}
 
|-
 
|-
 
{{#ifeq:{{{ccportal|}}}|||{{Tablerow|Label=* CC-only portal:|Value=[[ccportal::{{{ccportal}}}]]}}}}
 
{{#ifeq:{{{ccportal|}}}|||{{Tablerow|Label=* CC-only portal:|Value=[[ccportal::{{{ccportal}}}]]}}}}

Revision as of 21:33, 28 June 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 strictly optional and should be omitted if no data is given.

{{ContentCurator|
  title=Name|
  mainurl= The main URL without "http://"|
  ccportal= CC-only portal|
  ccfeed= CC-only feed|
  format={{format| format=audio}} MP3 192k / Ogg Vorbis Q7|
  sizeandscope= Size and scope of CC-licensed collection|
  notes= Notes
 }}

The order of the fields is not relevant. The template should be given as the first thing on a page. {{#ifeq:||||style="vertical-align: top;" width="20%"|* Formats: | [[format::{{{format}}}]]}}