Difference between revisions of "Template:FilmLinks/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Nami-ja
imported>Zyxw
(add tests based on examples in documentation)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
{{Testcases notice <!--|toc=on-->}}
 
{{Testcases notice <!--|toc=on-->}}
  
== [[Template:{{TEMPLATENAME|testcases}}/sandbox|Sandbox version]] ==
+
== Example 1 ==
* <code><nowiki>{{subst:FilmLinks/sandbox}}</nowiki></code>
 
  
 +
=== [[Template:{{TEMPLATENAME|testcases}}/sandbox|Sandbox version]] ===
  
 +
<code><nowiki>{{subst:FilmLinks/sandbox | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}</nowiki></code>
  
* {{Official website|http://marvel.com/captainamerica}}
+
* {{IMDb title|1375666|Inception}}
* {{imdb title|3498820|FilmLinks/testcases}}
+
* {{AllMovie title|480818|Inception}}
* {{AllMovie title||FilmLinks/testcases}}
+
* {{Mojo title|inception|Inception}}
* {{Internet Archive film|id=|title=FilmLinks/testcases}}
+
* {{Metacritic film|inception|Inception}}
* {{Mojo title|marvel2016|FilmLinks/testcases}}
+
* {{Rotten Tomatoes|inception|Inception}}
* {{Metacritic film|captain-america-civil-war|FilmLinks/testcases}}
 
* {{Rotten Tomatoes|captain_america_3|FilmLinks/testcases}}
 
  
{{clear}}
+
=== [[Template:{{TEMPLATENAME|testcases}}|Main template]] ===
  
== [[Template:{{TEMPLATENAME|testcases}}|Main template]] ==
+
<code><nowiki>{{subst:FilmLinks | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}</nowiki></code>
* <code><nowiki>{{FilmLinks| name = test| imdb = 3498820}}</nowiki></code>
 
  
{{FilmLinks| name = test| imdb = 3498820}}
+
* {{IMDb title|1375666|Inception}}
 +
* {{AllMovie title|480818|Inception}}
 +
* {{Mojo title|inception|Inception}}
 +
* {{Metacritic film|inception|Inception}}
 +
* {{Rotten Tomatoes|inception|Inception}}
  
{{clear}}
+
== Example 2 ==
 +
 
 +
=== [[Template:{{TEMPLATENAME|testcases}}/sandbox|Sandbox version]] ===
 +
 
 +
<code><nowiki>{{subst:FilmLinks/sandbox | name = They Drive by Night | imdb = 0030858 | bfidb = 53898 | screen = 502445 | brit = They-Drive-by-Night_1938 }}</nowiki></code>
 +
 
 +
* {{IMDb title|0030858|They Drive by Night}}
 +
* {{Bfidb title|53898|They Drive by Night}}
 +
* {{Screenonline title|502445|They Drive by Night}}
 +
* {{Britmovie title|They-Drive-by-Night_1938|They Drive by Night}}
 +
 
 +
=== [[Template:{{TEMPLATENAME|testcases}}|Main template]] ===
 +
 
 +
<code><nowiki>{{subst:FilmLinks | name = They Drive by Night | imdb = 0030858 | bfidb = 53898 | screen = 502445 | brit = They-Drive-by-Night_1938 }}</nowiki></code>
 +
 
 +
* {{IMDb title|0030858|They Drive by Night}}
 +
* {{Bfidb title|53898|They Drive by Night}}
 +
* {{Screenonline title|502445|They Drive by Night}}
 +
* {{Britmovie title|They-Drive-by-Night_1938|They Drive by Night}}
 +
 
 +
== Example 3 ==
 +
 
 +
=== [[Template:{{TEMPLATENAME|testcases}}/sandbox|Sandbox version]] ===
 +
 
 +
<code><nowiki>{{subst:FilmLinks/sandbox | name = Midnight in Paris | imdb = 1605783 | sony = midnightinparis | turner = 802334 }}</nowiki></code>
 +
 
 +
* {{IMDb title|1605783|Midnight in Paris}}
 +
* [http://www.sonyclassics.com/midnightinparis ''Midnight in Paris''] at [[Sony Pictures Classics]]
 +
* {{TCMDb title|802334|Midnight in Paris}}
 +
 
 +
=== [[Template:{{TEMPLATENAME|testcases}}|Main template]] ===
 +
 
 +
<code><nowiki>{{subst:FilmLinks | name = Midnight in Paris | imdb = 1605783 | sony = midnightinparis | turner = 802334 }}</nowiki></code>
 +
 
 +
* {{IMDb title|1605783|Midnight in Paris}}
 +
* [http://www.sonyclassics.com/midnightinparis ''Midnight in Paris''] at [[Sony Pictures Classics]]
 +
* {{TCMDb title|802334|Midnight in Paris}}
  
 
<!--
 
<!--

Latest revision as of 02:21, 15 August 2020

Example 1

Sandbox version

{{subst:FilmLinks/sandbox | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}

Main template

{{subst:FilmLinks | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}

Example 2

Sandbox version

{{subst:FilmLinks/sandbox | name = They Drive by Night | imdb = 0030858 | bfidb = 53898 | screen = 502445 | brit = They-Drive-by-Night_1938 }}

Main template

{{subst:FilmLinks | name = They Drive by Night | imdb = 0030858 | bfidb = 53898 | screen = 502445 | brit = They-Drive-by-Night_1938 }}

Example 3

Sandbox version

{{subst:FilmLinks/sandbox | name = Midnight in Paris | imdb = 1605783 | sony = midnightinparis | turner = 802334 }}

Main template

{{subst:FilmLinks | name = Midnight in Paris | imdb = 1605783 | sony = midnightinparis | turner = 802334 }}