Template:Crop for Wikidata: Difference between revisions

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Content deleted Content added
No edit summary
m replace ((autotranslate}} with call to Module:Autotransalate
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{#invoke:Autotranslate|autotranslate|base=Crop for Wikidata|1={{{1|}}}|2={{{2|}}}}}<noinclude>
{{Mbox
|lang = {{langSwitch |ar=ar|en=en}}
|type = style
|image = <div style="width:135px">[[File:LA2-NSRW-1-0007.jpg|50px]]&nbsp;→&nbsp;[[File:Chandler B. Beach.jpg|50px]]</div>
|text = {{langSwitch
|ar=طُلب اقتصاص جزء من هذه الصورة، لإنشاء صورة جديدة تخصُّ <!--
-->{{#invoke:Wikidata|getLabel|link=wikidata|entity={{{1|}}}}}.
: {{#switch: {{{2|}}} <!--
-->| missing = {{font color|red|'''هناك حاجة لتنظيم الاقتصاص!وإلا لا يُمكن استكمال العملية...}} <!--
-->انظر[[Template:Crop for Wikidata|التوثيق]]. <!--
-->| <!-- empty --> = {{font color|red|لم تُضف توجيهات محددة للقص!}} <!--
-->انظر [[Template:Crop for Wikidata|توثيق القالب]]. <!--
-->| <!-- default --> '''توجيهات الاقتصاص''': {{{2}}} }}''
<!-- -->إذا كنت تريد قصَّ الصورة، الرجاء إنجاز ما يأتي:
* [https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit انسخ] بيانات هذا الملفَّ <!--
-->وارفعه بواسطة <!--
-->[https://commons.wikimedia.org/w/index.php?title=Special:Upload&uploadformstyle=basic أداة الرَّفع] <!--
-->وأضف قالب"{{tlx|Extracted from|{{FULLPAGENAME}}}}" في حقل المصدر.
* [https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit أضف] <!--
-->{{tlx|Image extracted|xxx.ext}} إلى حقل الإصدارات الأخرى في وصف هذا الملف.
* [[:Wikidata:{{{1|}}}|أضف]] الملف الجديد ضمن خاصية الصورة في عنصر ويكي بيانات ذو الصلة.


|en=It has been requested to crop a part of this image, so that the cropped part can serve as its own image for <!--
-->{{#invoke:Wikidata|getLabel|link=wikidata|entity={{{1|}}}}}.
: ''{{#switch: {{{2|}}} <!--
-->| missing = {{font color|red|'''Crop instructions absolutely needed!''' No way to proceed otherwise...}} <!--
-->See [[Template:Crop for Wikidata|documentation]]. <!--
-->| <!-- empty --> = {{font color|red|No crop indications supplied!}} <!--
-->See [[Template:Crop for Wikidata|documentation]]. <!--
-->| <!-- default --> '''Crop instructions''': {{{2}}} }}''
<!-- -->If you perform the crop, please
* [https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit copy] this file <!--
-->metadata and upload it using <!--
-->[https://commons.wikimedia.org/w/index.php?title=Special:Upload&uploadformstyle=basic this upload form] <!--
-->with "{{tlx|Extracted from|{{FULLPAGENAME}}}}" appended to the source field
* [https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit add] <!--
-->{{tlx|Image extracted|xxx.ext}} to the ''other versions'' field of this file
* [[:Wikidata:{{{1|}}}|add]] the new file as an image to the Wikidata item.

|eo=Iu proponis eltondi parton de tiu ĉi bildo, tiel ke la eltondita parto povas servi kiel bildo por <!--
-->{{#invoke:Wikidata|getLabel|link=wikidata|entity={{{1|}}}}}.
: ''{{#switch: {{{2|}}} <!--
-->| missing = {{font color|red|'''Instrukcioj kiel eltondi absolute necesas!''' Sen tio neniu povas helpi...}} <!--
-->Vidu la [[Template:Crop for Wikidata|dokumentadon (en la angla)]]. <!--
-->| <!-- empty --> = {{font color|red|Ne estas indikoj kiel aŭ kion eltondi!}} <!--
-->Vidu la [[Template:Crop for Wikidata|dokumentadon (en la angla)]]. <!--
-->| <!-- default --> '''Indikoj kiel aŭ kion eltondi''': {{{2}}} }}''
<!-- -->Se vi helpas kaj faras la eltondon, bonvole
* [https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit kopii] tiun dosieron <!--
-->metadata por alŝuti ĝin uzante <!--
-->[https://commons.wikimedia.org/w/index.php?title=Special:Upload&uploadformstyle=basic tiun alŝutan formularon <!--
-->kun "{{tlx|Extracted from|{{FULLPAGENAME}}}}" enkopiita al la informo pri fonto
* [https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit aldonu] <!--
-->{{tlx|Image extracted|xxx.ext}} al la informo pri "aliaj versioj" de tiu ĉi dosiero
* [[:Wikidata:{{{1|}}}|Aldonu]] la novan dosieron kiel bildo al la Vikidatumara ero.

|ja=この画像の一部をトリミングして、その部分をそれ自身の{{#invoke:Wikidata|getLabel|lang=ja|link=wikidata|entity={{{1|}}}}}に使えるようにすることが望まれています。
: ''{{#if: {{{2|}}} |'''Crop instructions''': {{{2}}} | {{font color|red|No crop indications supplied!}} <!--
-->See [[Template:Crop for Wikidata|documentation]].}}''
<!-- -->もしあなたがトリミングを行えるようでしたら次の作業をお願いします。
* このファイルのメタデータを[https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit コピー]<!--
-->して[https://commons.wikimedia.org/w/index.php?title=Special:Upload&uploadformstyle=basic このアップロードフォーム]<!--
-->を使ってアップロードします。出典欄には <!--
-->{{tlx|Extracted from |{{FULLPAGENAME}}}} を追記して下さい。
* {{tlx|Image extracted|ファイル名.拡張子}} をこのファイルの「その他のバージョン」 (other versions) <!--
-->欄に[https://commons.wikimedia.org/w/index.php?title={{iffile|{{FULLPAGENAMEE}}}}&action=edit 追記]します。
* 新しいファイルを画像としてウィキデータのアイテムに[[:Wikidata:{{{1|}}}|追加]]します
}}

{{langSwitch
|ar= إذا كنت تقص صورة ذات نسق JPEG، يُستحسن استعمال أداة قص لا تُسبب خسارة للمحتوى مثل [//tools.wmflabs.org/croptool?title={{FULLPAGENAMEE}} أداة القص] أو [[:en:Libjpeg#jpegtran|jpegtran]] أو [[:en:ImageMagick|ImageMagick]] أو [[:en:IrfanView|IrfanView]] أو [[:en:XnView|XnView]]. للمزيد من المعلومات، انظر [[Commons:Media for cleanup|كومنز:وسائط بحاجة للتنسيق]].
|en=If cropping a JPEG, it is generally preferable to use a lossless cropping tool such as [//tools.wmflabs.org/croptool?title={{FULLPAGENAMEE}} CropTool] on Wikimedia Toolforge, [[:en:Libjpeg#jpegtran|jpegtran]], or in some cases [[:en:GIMP|GIMP]], [[:en:ImageMagick|ImageMagick]], [[:en:IrfanView|IrfanView]], [[:en:XnView|XnView]]. For more help, see [[Commons:Media for cleanup|Media for cleanup]].
|de=JPEG-Dateien sollten wenn möglich mit einem Programm bearbeitet werden, welches verlustfreies Ausschneiden unterstützt, z.B. [//tools.wmflabs.org/croptool?title={{FULLPAGENAMEE}} CropTool] auf den Wikimedia Toolforge, [[:de:GIMP|GIMP]], [[:de:ImageMagick|ImageMagick]], [[:de:IrfanView|IrfanView]], [[:de:Libjpeg#jpegtran|jpegtran]] oder [[:de:XnView|XnView]]. Für weitere Informationen, siehe [[Commons:Media for cleanup|Media for cleanup]].
|eo=JPEG-Dosieroj laŭeble prilaboriĝi per programo kiu subtenas senpardan eltranĉon, ekz. [//tools.wmflabs.org/croptool?title={{FULLPAGENAMEE}} CropTool] en la kolekto "Wikimedia Toolforge", [[:eo:GIMP|GIMP]], [[:en:ImageMagick|ImageMagick]], [[:en:IrfanView|IrfanView]], [[:en:Libjpeg#jpegtran|jpegtran]] aŭ [[:en:XnView|XnView]]. Por pliaj informoj vidu [[Commons:Media for cleanup|tie (en la angla)]].
|ja=JPEGをトリミングする場合は[[toollabs:|ウィキメディア・ツール・ラボ]]の[//tools.wmflabs.org/croptool?title={{FULLPAGENAMEE}} CropTool]、または[[:ja:GIMP|GIMP]]、[[:ja:ImageMagick|ImageMagick]]、[[:ja:IrfanView|IrfanView]]、[[:ja:XnView|XnView]]といった劣化が少ないトリミングツールを使用することをお勧めします。詳しい情報は[[Commons:Media for cleanup|Media for cleanup]]を参照して下さい。
|ml=JPEG ചിത്രങ്ങൾ മുറിക്കുമ്പോൾ, ചിത്രത്തിന്റെ പിക്സലുകൾ നഷ്ടപ്പെടാതെ മുറിക്കാൻ കഴിയുന്ന ഉപകരണങ്ങളായ [[:en:jpegtran|ജെപെഗ്ട്രാൻ]] അല്ലെങ്കിൽ [[:en:IrfanView|ഇർഫാൻവ്യൂ]] ഉപയോഗിക്കുക. [[User:Cropbot|ക്രോപ്പ്ബോട്ട്]] എന്ന ഉപകരണവും ഉപയോഗിക്കാവുന്നതാണ്. സഹായത്തിന് [[Commons:Media for cleanup|കോമൺസ്:ശരിയാക്കാനുള്ള മീഡിയകൾ]] എന്ന താൾ കാണുക.
}}

}}<includeonly>{{iffile|{{{category|[[Category:Crop for Wikidata{{#ifeq:{{{2|}}}|missing|/Instructions needed|}}|{{PAGENAME}}]]}}}}}</includeonly><noinclude>


{{documentation}}
{{documentation}}
</noinclude><includeonly>{{iffile|{{{category|[[Category:Crop for Wikidata{{#ifeq:{{{2|}}}|missing|/Instructions needed|}}|{{PAGENAME}}]]}}}}}</includeonly>

</noinclude>

Latest revision as of 03:37, 9 August 2024

Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Crop for Wikidata/doc.

This template is used to request that a portion of the image be extracted to a separate file; once created, the cropped portion can be used to set property “image” (P18) on the Wikidata item indicated.

The template automatically sets the following categories: Crop for Wikidata or Crop for Wikidata/Instructions needed

Usage

{{Crop for Wikidata |1= |2= }}

Indicate the Wikidata Q item number for which an image is sought. As a second argument, provide as much details as necessary to indicate which part of the picture needs to be extracted.

Template parameters

ParameterDescriptionDefaultStatus
1QitemWikidata item number. Example: Q5551050emptyrequired
2Cropping instructionsInformation about area of the picture to be extracted. If set to missing, will display a different message and rather categorize picture in Category:Crop for Wikidata/Instructions neededemptyoptional
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData

TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard.


Existing template documentation
At Wikimedia Commons, it is recommended to use {{TemplateBox}} with either ‎useTemplateData=1 or ‎useTemplateData=only on the ‎/doc subpage and transcluding it with {{Documentation}} into the template. ‎<nowiki>-tags can be wrapped around the arguments, if required, to avoid templates being expanded.

Newly created template documentation and imports
Another option, especially for imported templates, or for users with JSON experience, is placing raw ‎<templatedata>-tags into the Wikitext of the template, as described in various Wikipediae.


Wikipedia's help about TemplateDataCommons-specific information

This template is used to request that a portion of the image be extracted to a separate file; once created, the cropped portion can be used to set property “image” (P18) on the Wikidata item indicated.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Qitem1

Wikidata item number. Example: ''Q5551050''

Linerequired
Cropping instructions2

Information about area of the picture to be extracted. If set to “missing”, will display a different message and rather categorize picture in category “Crop for Wikidata/Instructions needed”

Lineoptional

Additional information

The template is intended to be used in the following namespaces: the File namespace

The template is intended to be used by the following user groups: all users

Placement: In the "Permission" parameter of the {{Information}} template (or the respective parameter of similar templates) or in the "Licensing" section

Example

{{Crop for Wikidata| Q382775 | Capture a head and chest shot of the second person from the left}}

renders as:

See also

Localization

العربية  Deutsch  English  Esperanto  日本語  македонски  slovenščina  +/−

This template is localized through {{Autotranslate}}. The layout of the template can be found under Template:Crop for Wikidata/layout.

To add your language to the list of languages supported by this template, please copy the code of Template:Crop for Wikidata/en (or any other language version you prefer to translate) and replace the text strings in there (the form below can be used to create a translation, the English version is preloaded in the edit box). Please change the parameter lang from en (or whatever language you are translating) to the language code of your language.