Template:Now Commons: Difference between revisions
m Localise imported template guidance and policy links; preserve index layout and licence information |
|||
| Line 5: | Line 5: | ||
| image = [[File:Commons-logo.svg|40px|Commons]] |
| image = [[File:Commons-logo.svg|40px|Commons]] |
||
| text = |
| text = |
||
<span id="delete-reason" style="display:none"><nowiki>[[ |
<span id="delete-reason" style="display:none"><nowiki>[[Project:Candidates for speedy deletion|F8]]: File available on Wikimedia Commons as [[</nowiki>c:File:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}<nowiki>]]</nowiki></span> |
||
{{#ifeq:{{{2|}}}|yes|These files are|This file is}} now available on '''[[c:Main Page|Wikimedia Commons]]''' as '''[[c:File:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|File:{{ucfirst:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}}}]]'''{{#ifeq:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|{{PAGENAME}}| (with the same name)}}.<hr /> Files that have been tagged with this template may be deleted after satisfying conditions of [[ |
{{#ifeq:{{{2|}}}|yes|These files are|This file is}} now available on '''[[c:Main Page|Wikimedia Commons]]''' as '''[[c:File:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|File:{{ucfirst:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}}}]]'''{{#ifeq:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|{{PAGENAME}}| (with the same name)}}.<hr /> Files that have been tagged with this template may be deleted after satisfying conditions of [[Project:Candidates for speedy deletion|CSD F8]]. <span class="sysop-show">Administrators: If the file has been properly moved, [{{fullurl:{{FULLPAGENAME}}|action=delete&wpReason={{urlencode:[[WP:CSD#F8|F8]]: File available on Wikimedia Commons as [[c:File:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|File:{{ucfirst:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}}}]] {{#ifeq:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|{{PAGENAME}}|(under the same name)}}}}}} delete it]. If not, change the {{Tl|Now Commons}} tag to: {{Tlx|Incomplete move to Commons|{{{filename|{{{1|{{FULLPAGENAME}}}}}}}}|3=reason=reason why the image could not be moved}}</span> |
||
<div style="text-align: center;"><small>[https://tools.wmflabs.org/magog/fileinfo.php?project=en.wikipedia&information=1&authordate=1&license=1&fields=1&src={{PAGENAMEE}} File upload log] •  [https://tools.wmflabs.org/magog/oldver.php?project=en.wikipedia&src={{PAGENAMEE}}&trg={{PAGENAMEE:{{{filename|{{{1|{{PAGENAME}}}}}}}}}} Move old versions to Commons]</small></div> |
<div style="text-align: center;"><small>[https://tools.wmflabs.org/magog/fileinfo.php?project=en.wikipedia&information=1&authordate=1&license=1&fields=1&src={{PAGENAMEE}} File upload log] •  [https://tools.wmflabs.org/magog/oldver.php?project=en.wikipedia&src={{PAGENAMEE}}&trg={{PAGENAMEE:{{{filename|{{{1|{{PAGENAME}}}}}}}}}} Move old versions to Commons]</small></div> |
||
{{#if:{{{bot|}}}| <br> <strong>Be careful. This file is tagged by a bot ({{{bot|}}}). Be sure to check [[c:File:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|the file at Commons]] before deleting this file.</strong> }} |
{{#if:{{{bot|}}}| <br> <strong>Be careful. This file is tagged by a bot ({{{bot|}}}). Be sure to check [[c:File:{{PAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}}|the file at Commons]] before deleting this file.</strong> }} |
||
| Line 12: | Line 12: | ||
| below = <includeonly><!--Show a box with the image if the Commons image is different than the Wikipedia image--> {{#ifeq: {{BASEPAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}} | {{BASEPAGENAME}} | <!-- same name: do nothing --> |
| below = <includeonly><!--Show a box with the image if the Commons image is different than the Wikipedia image--> {{#ifeq: {{BASEPAGENAME:{{{filename|{{{1|{{PAGENAME}}}}}}}}}} | {{BASEPAGENAME}} | <!-- same name: do nothing --> |
||
| <!-- different name: check for Commons shadow --> {{#ifeq:{{ParmPart|5|2={{filepath:{{BASEPAGENAME:{{{filename|{{{1}}}}}}}}}}}}|en |
| <!-- different name: check for Commons shadow --> {{#ifeq:{{ParmPart|5|2={{filepath:{{BASEPAGENAME:{{{filename|{{{1}}}}}}}}}}}}|en |
||
| <div style="text-align: center;">{{error|message=A [[:File:{{BASEPAGENAME:{{{filename|{{{1}}}}}}}}|file]] on |
| <div style="text-align: center;">{{error|message=A [[:File:{{BASEPAGENAME:{{{filename|{{{1}}}}}}}}|file]] on this wiki shadows the [[c:File:{{BASEPAGENAME:{{{filename|{{{1}}}}}}}}|file on Commons]]. Please do not delete this image until the Wikipedia image has been deleted or moved.}}</div> |
||
| {{#ifexist: Media: {{BASEPAGENAME:{{{filename|{{{1}}}}}}}} |
| {{#ifexist: Media: {{BASEPAGENAME:{{{filename|{{{1}}}}}}}} |
||
| [[File:{{PAGENAME:{{{filename|{{{1}}}}}}}}|150x100px|right]]{{br}} |
| [[File:{{PAGENAME:{{{filename|{{{1}}}}}}}}|150x100px|right]]{{br}} |
||
Revision as of 09:48, 31 October 2026
Files that have been tagged with this template may be deleted after satisfying conditions of CSD F8. Administrators: If the file has been properly moved, delete it. If not, change the {{Now Commons}} tag to:
{{Incomplete move to Commons|Template:Now Commons|reason=reason why the image could not be moved}}
| Template documentation follows |
|---|
| Note: the template above may sometimes be partially or fully invisible. |
| Visit "Template:Now Commons/doc" to edit its documentation if it is available. (How does this work?) |
| Any breaking changes to this template, including moving it or nominating it for deletion, must be communicated in advance to Twinkle's users and maintainers at Wikipedia talk:Twinkle. The standard installation of Twinkle relies on this template. |
| Speedy deletion templates |
|---|
| This template uses Lua: |
This template will categorise tagged files into Category:Wikipedia files with the same name on Wikimedia Commons or Category:Wikipedia files with a different name on Wikimedia Commons. If the files are reviewed they will be categorised into Category:Wikipedia files reviewed on Wikimedia Commons.
Usage
Simple
Same filename on Wikimedia Commons:
{{subst:Now Commons}}
New filename on Wikimedia Commons:
{{subst:Now Commons|NEW FILENAME.ext}}or{{subst:Now Commons|File:NEW FILENAME.ext}}
Detailed
{{Now Commons|FILE|MULTIPLE|date=31 October 2026|bot=BOT|reviewer=REVIEWER}}
All parameters are optional:
- If FILE (
|1=) is omitted, the page name is used as the image name. If not it is assumed that the file on Commons has the same name as the file on English Wikipedia. - If MULTIPLE (
|2=) is "yes", the template text is changed to indicate multiple messages. - If
|date=is used the image is categorized in a subcategory matching the relevant date. It is possible to use dates like 2010-07-01 and 20100601023255. The date will be automatically added if the template is substituted:{{subst:Now Commons|...}}. - If
|bot=is used the template shows a warning to "Be careful. This file is tagged by a bot (normally BotMultichillT). Be sure to check the file at Commons before deleting this file." - If
|reviewer=is used then the file is marked as reviewed on Commons. That means that a user has checked that file has been transferred correct etc. See more at this page.
Examples:
{{Now Commons|1=Crow-Hassan Park Reserve 030527.jpg|2=no|date=2010-07-01|reviewer=SomeUser}}{{Now Commons|File:Assistive Listening Device FM350.jpg|date=20100601023255|bot=BotMultichillT}}
TemplateData
TemplateData for Now Commons
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| file name | 1 filename | Name of the file on Commons, by default the name of the file on Wikipedia.
| File | optional |
| multiple files | 2 | If this parameter is “yes”, the message mention “these files” instead of “this file”.
| Line | optional |
| tag date | date | Date when the file was tagged with this template, affects only categorization.
| Date | optional |
| tagger bot | bot | The bot that tagged the file as transferred (and transferred it). Displays a warning that human check is especially needed.
| User | optional |
| reviewer | reviewer | The file is marked as reviewed on Commons. That means that a user has checked that file has been transferred correct etc. This affects only categorization. | User | optional |