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)
 
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|imdb=0029606|allmovie=46638}}</nowiki></code>
 
  
 +
=== [[Template:{{TEMPLATENAME|testcases}}/sandbox|Sandbox version]] ===
  
* {{Official website}}
+
<code><nowiki>{{subst:FilmLinks/sandbox | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}</nowiki></code>
* {{imdb title| 0029606 | FilmLinks/testcases  }}
 
* {{AllMovie title| 46638 | FilmLinks/testcases  }}
 
* {{Mojo title| | FilmLinks/testcases  }}
 
* {{Metacritic film| [[Category:Errors reported by Module String]]<strong class="error">String Module Error: String subset index out of range</strong> | FilmLinks/testcases }}
 
* {{Rotten Tomatoes| 1019828-star_is_born | FilmLinks/testcases }}
 
* {{Internet Archive film| AStarIsBorn | FilmLinks/testcases }}
 
  
{{clear}}
+
* {{IMDb title|1375666|Inception}}
 +
* {{AllMovie title|480818|Inception}}
 +
* {{Mojo title|inception|Inception}}
 +
* {{Metacritic film|inception|Inception}}
 +
* {{Rotten Tomatoes|inception|Inception}}
  
== [[Template:{{TEMPLATENAME|testcases}}|Main template]] ==
+
=== [[Template:{{TEMPLATENAME|testcases}}|Main template]] ===
* <code><nowiki>{{FilmLinks|imdb=0029606|allmovie=46638}}</nowiki></code>
 
  
{{FilmLinks|imdb=0029606|allmovie=46638}}
+
<code><nowiki>{{subst:FilmLinks | name = Inception | imdb = 1375666 | allmovie = 480818 | mojo = inception | metacritic = inception | rotten = inception | bfidb = | screen = | brit = | sony = | turner = }}</nowiki></code>
  
{{clear}}
+
* {{IMDb title|1375666|Inception}}
 +
* {{AllMovie title|480818|Inception}}
 +
* {{Mojo title|inception|Inception}}
 +
* {{Metacritic film|inception|Inception}}
 +
* {{Rotten Tomatoes|inception|Inception}}
 +
 
 +
== 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 }}