Difference between revisions of "Template:Films"

From Creative Commons
Jump to: navigation, search
(added film type)
(added IMDB, why not)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>This template simplifies the creation of articles about [[Films|Films]]. When inserted in an Film'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 &ndash; there are far easier ways of creating tables in MediaWiki.
 
<noinclude>This template simplifies the creation of articles about [[Films|Films]]. When inserted in an Film'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 &ndash; 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 book.
+
To use this template, insert the following at the beginning of your page. All fields are '''optional''' except for FilmType and should be omitted if no information is available.  The page name should reflect the name of the book.
  
 
<pre>{{Film|
 
<pre>{{Film|
Line 7: Line 7:
 
   producer= The producer(s)|
 
   producer= The producer(s)|
 
   filmtype= See below|
 
   filmtype= See below|
   website= Website|
+
   mainurl= Main URL|
 +
  imdburl= IMDB URL|
 
   publisher= The publisher|
 
   publisher= The publisher|
 
   releasedate= The date of release|
 
   releasedate= The date of release|
Line 25: Line 26:
 
! colspan="2" style="background: #006600; color: white" |[[Name:={{{Name|{{PAGENAME}}}}}]]
 
! colspan="2" style="background: #006600; color: white" |[[Name:={{{Name|{{PAGENAME}}}}}]]
 
|-
 
|-
{{#ifeq:{{{author|}}}|||{{Tablerow|Label='''Director:'''|Value=[[director:={{{director}}}]]}}}}
+
{{#ifeq:{{{director|}}}|||{{Tablerow|Label='''Director:'''|Value=[[director:={{{director}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{author|}}}|||{{Tablerow|Label='''Producer:'''|Value=[[producer:={{{producer}}}]]}}}}
+
{{#ifeq:{{{producer|}}}|||{{Tablerow|Label='''Producer:'''|Value=[[producer:={{{producer}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{genre|}}}|||{{Tablerow|Label='''Film Type:'''|Value=[[filmtype::{{{filmtype}}}]]}} }}
+
{{#ifeq:{{{filmtype|}}}|||{{Tablerow|Label='''Film Type:'''|Value=[[filmtype::{{{filmtype}}}]]}} }}
 
|-
 
|-
{{#ifeq:{{{publisher|}}}|||{{Tablerow|Label='''Website:'''|Value=[[website:={{{website}}}]]}}}}
+
{{#ifeq:{{{mainurl|}}}|||{{Tablerow|Label='''Main URL:'''|Value=[[mainurl:={{{mainurl}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{publisher|}}}|||{{Tablerow|Label='''Distributer:'''|Value=[[distributer:={{{distributer}}}]]}}}}
+
{{#ifeq:{{{imdburl|}}}|||{{Tablerow|Label='''IMDB URL:'''|Value=[[imdburl:={{{imdburl}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{pubdate|}}}|||{{Tablerow|Label='''Release Date:'''|Value=[[releasedate:={{{releasedate}}}]]}}}}
+
{{#ifeq:{{{distributer|}}}|||{{Tablerow|Label='''Distributer:'''|Value=[[distributer:={{{distributer}}}]]}}}}
 +
|-
 +
{{#ifeq:{{{releasedate|}}}|||{{Tablerow|Label='''Release Date:'''|Value=[[releasedate:={{{releasedate}}}]]}}}}
 
|-
 
|-
 
{{#ifeq:{{{license|}}}|||{{Tablerow|Label='''License:'''|Value=[[license:={{{license}}}]]}}}}
 
{{#ifeq:{{{license|}}}|||{{Tablerow|Label='''License:'''|Value=[[license:={{{license}}}]]}}}}
Line 41: Line 44:
 
{{#ifeq:{{{cclicensed|}}}|||{{Tablerow|Label='''CC-Licensed Version:'''|Value=[[cclicensed:={{{cclicensed}}}]]}}}}
 
{{#ifeq:{{{cclicensed|}}}|||{{Tablerow|Label='''CC-Licensed Version:'''|Value=[[cclicensed:={{{cclicensed}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{nbpages|}}}|||{{Tablerow|Label='''Length (minutes):'''|Value=[[length:={{{length}}}]]}}}}
+
{{#ifeq:{{{length|}}}|||{{Tablerow|Label='''Length (minutes):'''|Value=[[length:={{{length}}}]]}}}}
 
|-
 
|-
 
|}
 
|}
 
[[Category:Film]]</includeonly>
 
[[Category:Film]]</includeonly>

Latest revision as of 00:32, 30 July 2008

This template simplifies the creation of articles about Films. When inserted in an Film'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 except for FilmType and should be omitted if no information is available. The page name should reflect the name of the book.

{{Film|
  director= The director|
  producer= The producer(s)|
  filmtype= See below|
  mainurl= Main URL|
  imdburl= IMDB URL|
  publisher= The publisher|
  releasedate= The date of release|
  license= URL of the license|
  cclicensed= CC Licensed version|
  length= Length in Minutes|
 }}

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

Otherwise, you can easily add articles by using a form, just go here