Difference between revisions of "Template:Film year"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
imported>Frietjes
 
Line 10: Line 10:
 
# Check if "Foo (film)" exists, if so, return <code><nowiki>[[Foo (film)|Foo]]</nowiki></code>
 
# Check if "Foo (film)" exists, if so, return <code><nowiki>[[Foo (film)|Foo]]</nowiki></code>
 
# Return <code><nowiki>[[Foo]]</nowiki></code>
 
# Return <code><nowiki>[[Foo]]</nowiki></code>
 +
 +
== See also ==
 +
* {{tl|Film date}}
 +
* {{tl|Film show year}}
  
 
[[Category:Film templates]]
 
[[Category:Film templates]]
 
}}</noinclude>
 
}}</noinclude>

Latest revision as of 18:13, 15 June 2012

[[{{{1}}}]]

Template documentation

This template creates a link to an article about a film, attempting to correctly guess the article name.

How it works

Consider the following input: {{Film year|Foo|1234}}

  1. Check if "Foo (1234 film)" exists, if so, return [[Foo (1234 film)|Foo]]
  2. Check if "Foo (film)" exists, if so, return [[Foo (film)|Foo]]
  3. Return [[Foo]]

See also