Difference between revisions of "Template:Media"

From Disobiki
Jump to navigation Jump to search
Line 1: Line 1:
<includeonly>{{ #if: {{{type|}}} |
+
<includeonly>
  {{ #switch: {{{type|}}}
+
{{ #if: {{{film|}}} |
  | Album = [[Category:Album covers for {{{year|????}}}]][[Category:All album covers]]
+
  {{ #if: {{{type|}}} |
  | Betamax = [[Category:Betamax covers for {{{year|????}}}]][[Category:All Betamax covers]]
+
    {{ #switch: {{{type|}}}
  | Blu-ray = [[Category:Blu-ray covers for {{{year|????}}}]][[Category:All Blu-ray covers]]
+
    | Album = [[Category:Album covers for {{{year|????}}}]][[Category:All album covers]]
  | DVD = [[Category:DVD covers for {{{year|????}}}]][[Category:All DVD covers]]
+
    | Betamax = [[Category:Betamax covers for {{{year|????}}}]][[Category:All Betamax covers]]
  | LD = [[Category:LD covers for {{{year|????}}}]][[Category:All LD covers]]
+
    | Blu-ray = [[Category:Blu-ray covers for {{{year|????}}}]][[Category:All Blu-ray covers]]
  | VHS = [[Category:VHS covers for {{{year|????}}}]][[Category:All VHS covers]]
+
    | DVD = [[Category:DVD covers for {{{year|????}}}]][[Category:All DVD covers]]
 +
    | LD = [[Category:LD covers for {{{year|????}}}]][[Category:All LD covers]]
 +
    | VHS = [[Category:VHS covers for {{{year|????}}}]][[Category:All VHS covers]]
 +
    }}
 +
    {{ #switch: {{{type|}}}
 +
    | Promo = [[Category:Promotional items]]
 +
    | Still = [[Category:Still images]]
 +
    | Title = [[Category:Title cards]]
 +
    | [[Category:Posters and covers for {{{year|????}}}]]
 +
      [[Category:{{{language|English}}}-language posters and covers]]
 +
      [[Category:All posters and covers]]
 +
    }}
 +
  | [[Category:Unknown media (type)]]
 
   }}
 
   }}
  {{ #switch: {{{type|}}}
 
  | Promo = [[Category:Promotional items]]
 
  | Still = [[Category:Still images]]
 
  | Title = [[Category:Title cards]]
 
  | [[Category:Posters and covers for {{{year|????}}}]]
 
    [[Category:{{{language|English}}}-language posters and covers]]
 
    [[Category:All posters and covers]]
 
  }}
 
| [[Category:Unknown media (type)]]
 
}}
 
{{ #if: {{{film|}}} |
 
 
   {{ #switch: {{{type|}}}
 
   {{ #switch: {{{type|}}}
 
   | Album = This {{lc:{{{type}}}}} is for {{{film}}} ({{{year|????}}}).
 
   | Album = This {{lc:{{{type}}}}} is for {{{film}}} ({{{year|????}}}).
Line 28: Line 29:
 
   }}
 
   }}
 
{{AmazonVideoSearch|{{{film|}}}|Search for this film on Amazon.}}
 
{{AmazonVideoSearch|{{{film|}}}|Search for this film on Amazon.}}
| [[Category:Unknown media (film)]]
+
  {{ #if: {{{distributor|}}} | <br />Distributed by {{{distributor}}}. |
 +
    {{ #switch: {{{type|}}}
 +
    | Album = [[Category:Unknown media (distributor)]]
 +
    | Betamax = [[Category:Unknown media (distributor)]]
 +
    | Blu-ray = [[Category:Unknown media (distributor)]]
 +
    | DVD = [[Category:Unknown media (distributor)]]
 +
    | LD = [[Category:Unknown media (distributor)]]
 +
    | VHS = [[Category:Unknown media (distributor)]]
 +
    }}
 +
  }}
 
}}
 
}}
{{ #if: {{{distributor|}}} | <br />Distributed by {{{distributor}}}. |
+
{{AutoDEFAULTSORT|namespace=1}}</includeonly><noinclude>
  {{ #switch: {{{type|}}}
 
  | Album = [[Category:Unknown media (distributor)]]
 
  | Betamax = [[Category:Unknown media (distributor)]]
 
  | Blu-ray = [[Category:Unknown media (distributor)]]
 
  | DVD = [[Category:Unknown media (distributor)]]
 
  | LD = [[Category:Unknown media (distributor)]]
 
  | VHS = [[Category:Unknown media (distributor)]]
 
  }}
 
}}{{AutoDEFAULTSORT|namespace=1}}</includeonly><noinclude>
 
 
This template is used to describe '''uploaded media''' (images, videos, audio, etc.).
 
This template is used to describe '''uploaded media''' (images, videos, audio, etc.).
 
<br />Its primary purpose is to handle organizing of media in the proper categories.
 
<br />Its primary purpose is to handle organizing of media in the proper categories.

Revision as of 12:25, 16 August 2010

This template is used to describe uploaded media (images, videos, audio, etc.).
Its primary purpose is to handle organizing of media in the proper categories.

Usage

 {{Media
 | film           =
 | year           =
 | type           =
 | language       =
 | distributor    =
 }}

Parameters

Note: * denotes required fields.

Parameter Explanation
film Insert the full common name of the film (as a link).
year Insert the year the film was released (if unknown, leave blank).
type One of Album, Betamax, Blu-ray, DVD, LD, VHS, Poster, Promo, Still, or Title.
language If not English, the type of language on display (Italian, Thai, French, etc.).
distributor The distributor(s) for this DVD, VHS, LD, Album, etc. (as a link).

Examples

 {{Media
 | film           = [[Baberellas]]
 | year           = 2003
 | type           = Poster
 }}
 {{Media
 | film           = [[12 Monkeys]]
 | year           = 1995
 | type           = DVD
 | language       = French
 }}