Difference between revisions of "Template:AMG"

From blackwiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{#switch:{{lc:{{{1|}}}}}
 
{{#switch:{{lc:{{{1|}}}}}
 
  |game    = {{Allgame|id={{{id|{{{2|}}}}}}|name={{{label|{{{3|{{PAGENAMEBASE}}}}}}}}}}
 
  |game    = {{Allgame|id={{{id|{{{2|}}}}}}|name={{{label|{{{3|{{PAGENAMEBASE}}}}}}}}}}
  |movie    = [http://www.allmovie.com/work/{{{id|{{{2|}}}}}} {{{label|{{{3|{{PAGENAMEBASE}}}}}}}}] at [[AllMovie]]
+
  |movie    = {{AllMovie title|id={{{id|{{{2|}}}}}}|title={{{label|{{{3|{{PAGENAMEBASE}}}}}}}}}}
 
  |#default = {{error|Please state the type.}}
 
  |#default = {{error|Please state the type.}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 18:42, 10 February 2017

Please state the type.

Template documentation[view] [edit] [history] [purge]

This template is designed for linking to two of the websites owned by All Media Guide:

Note: Links to AllMusic are not supported; instead please use {{AllMusic}} specifically designed for that purpose.

Usage

  • {{AMG|type|id|label}}
  • {{AMG|type|id=id|label=label}}

Parameters

  1. type - either movie or game
  2. id - the ID number for the page on the AllGame website
  3. label - an optional label to display the link, which defaults to name of the article where this template is used

Examples

Game (with unnamed parameters)

Movie (with named parameters)

See also