Changes
Jump to navigation
Jump to search
m
→Examples
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This template determines if a file exists locally on Wikipedia or at Commons. The local file supersedes the Commons file - if uploaded files exist at both wikis, only the local file is shown.
== Usage ==
Parameter 1 is the name of the file you wish to return the results for. The '''File:''' prefix can be omitted. If the parameter is omitted, the value returned is for the current page - if this is outside the file namespace, it will return {{mono|no}}. Otherwise, the template will return {{mono|yes}} if the file is on Commons and {{mono|no}} if not.
== Examples ==
{| class="wikitable" style="text-align: center;"
|-
! File !! Commons has !! enwiki has !! Call !! Output
|-
| [[:File:Example.png]] || File || Nothing || {{tlc|Is Commons|Example.png}} || {{mono|{{Is Commons|Example.png}}}}
|-
| [[:File:1783 balloonj.jpg]] || File || Description page || {{tlc|Is Commons|1783 balloonj.jpg}} || {{mono|{{Is Commons|1783 balloonj.jpg}}}}
|-
| [[:File:Information icon.svg]] || File || File || {{tlc|Is Commons|Information icon.svg}} || {{mono|{{Is Commons|Information icon.svg}}}}
|-
| [[:File:Starbucks Coffee Logo.svg]] || Nothing || File || {{tlc|Is Commons|Starbucks Coffee Logo.svg}} || {{mono|{{Is Commons|Starbucks Coffee Logo.svg}}}}
|-
| (an example would meet [[WP:G8|G8]]) || Nothing || Description page || || {{mono|no}}
|-
| [[:File:Nonexistent file.png]] || Nothing || Nothing || {{tlc|Is Commons|Nonexistent file.png}} || {{mono|{{Is Commons|Nonexistent file.png}}}}
|}<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikimedia Commons templates]]
[[Category:File namespace templates]]
[[Category:Namespace manipulation templates]]
}}</includeonly>
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
This template determines if a file exists locally on Wikipedia or at Commons. The local file supersedes the Commons file - if uploaded files exist at both wikis, only the local file is shown.
== Usage ==
Parameter 1 is the name of the file you wish to return the results for. The '''File:''' prefix can be omitted. If the parameter is omitted, the value returned is for the current page - if this is outside the file namespace, it will return {{mono|no}}. Otherwise, the template will return {{mono|yes}} if the file is on Commons and {{mono|no}} if not.
== Examples ==
{| class="wikitable" style="text-align: center;"
|-
! File !! Commons has !! enwiki has !! Call !! Output
|-
| [[:File:Example.png]] || File || Nothing || {{tlc|Is Commons|Example.png}} || {{mono|{{Is Commons|Example.png}}}}
|-
| [[:File:1783 balloonj.jpg]] || File || Description page || {{tlc|Is Commons|1783 balloonj.jpg}} || {{mono|{{Is Commons|1783 balloonj.jpg}}}}
|-
| [[:File:Information icon.svg]] || File || File || {{tlc|Is Commons|Information icon.svg}} || {{mono|{{Is Commons|Information icon.svg}}}}
|-
| [[:File:Starbucks Coffee Logo.svg]] || Nothing || File || {{tlc|Is Commons|Starbucks Coffee Logo.svg}} || {{mono|{{Is Commons|Starbucks Coffee Logo.svg}}}}
|-
| (an example would meet [[WP:G8|G8]]) || Nothing || Description page || || {{mono|no}}
|-
| [[:File:Nonexistent file.png]] || Nothing || Nothing || {{tlc|Is Commons|Nonexistent file.png}} || {{mono|{{Is Commons|Nonexistent file.png}}}}
|}<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Wikimedia Commons templates]]
[[Category:File namespace templates]]
[[Category:Namespace manipulation templates]]
}}</includeonly>