Difference between revisions of "Template:AMG/sandbox"

From blackwiki
Jump to navigation Jump to search
blackwiki>PC78
(www)
blackwiki>Elegie
(The AllGame site is no longer in operation so link to an archived resource)
Line 1: Line 1:
 
{{#switch:{{lc:{{{1|}}}}}
 
{{#switch:{{lc:{{{1|}}}}}
  |game    = [http://www.allgame.com/game.php?id={{{id|{{{2|}}}}}} {{{label|{{{3|{{PAGENAME}}}}}}}}] at [[Allgame]]
+
  |game    = [//web.archive.org/web/20141210131006/http://allgame.com/game.php?id={{{id|{{{2|}}}}}} {{{label|{{{3|{{PAGENAMEBASE}}}}}}}}] at [[AllGame]]
|music    = [http://www.allmusic.com/cg/amg.dll?p=amg&sql={{{id|{{{2|}}}}}} {{{label|{{{3|{{PAGENAME}}}}}}}}] at [[Allmusic]]
+
  |movie    = [http://www.allmovie.com/work/{{{id|{{{2|}}}}}} {{{label|{{{3|{{PAGENAMEBASE}}}}}}}}] at [[AllMovie]]
  |movie    = [http://www.allmovie.com/work/{{{id|{{{2|}}}}}} {{{label|{{{3|{{PAGENAME}}}}}}}}] at [[Allmovie]]
 
 
  |#default = {{error|Please state the type.}}
 
  |#default = {{error|Please state the type.}}
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 07:33, 11 June 2015

Please state the type.

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

The {{AMG}} 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