Difference between revisions of "Template:Film show year"
Jump to navigation
Jump to search
Template documentation
imported>Frietjes |
imported>Frietjes |
||
| Line 1: | Line 1: | ||
{{#ifexist: {{{1}}} ({{{2}}} film) | ''[[{{{1}}} ({{{2}}} film)|{{{1}}}]]'' ({{{2}}}) | | {{#ifexist: {{{1}}} ({{{2}}} film) | ''[[{{{1}}} ({{{2}}} film)|{{{1}}}]]'' ({{{2}}}) | | ||
| − | {{#ifexist: {{{1}}} (film) | ''[[{{{1}}} (film)|{{{1}}}]]'' ({{{2}}}) | ''[[ | + | {{#ifexist: {{{1}}} (film) | ''[[{{{1}}} (film)|{{{1}}}]]'' ({{{2}}}) | ''[[{{{1}}}]]'' ({{{2}}}) }} |
| − | }}<noinclude> | + | }}<noinclude>{{documentation|content= |
| + | 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: <code><nowiki>{{Film year|Foo|1234}}</nowiki></code> | ||
| + | |||
| + | # Check if "Foo (1234 film)" exists, if so, return <code><nowiki>''[[Foo (1234 film)|Foo]]'' (1234)</nowiki></code> | ||
| + | # Check if "Foo (film)" exists, if so, return <code><nowiki>''[[Foo (film)|Foo]]'' (1234)</nowiki></code> | ||
| + | # Return <code><nowiki>''[[Foo]]'' (1234)</nowiki></code> | ||
| + | |||
| + | == See also == | ||
| + | * {{tl|Film date}} | ||
| + | * {{tl|Film show year}} | ||
| + | |||
[[Category:Film templates]] | [[Category:Film templates]] | ||
| − | </noinclude> | + | }}</noinclude> |
Revision as of 18:14, 15 June 2012
[[{{{1}}}]] ({{{2}}})
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}}
- Check if "Foo (1234 film)" exists, if so, return
''[[Foo (1234 film)|Foo]]'' (1234) - Check if "Foo (film)" exists, if so, return
''[[Foo (film)|Foo]]'' (1234) - Return
''[[Foo]]'' (1234)
See also
- {{Film date}}
- {{Film show year}}
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |