Template:BadJPEG/doc

维基百科,自由的百科全书
跳转到导航 跳转到搜索

Usage[编辑]

This maintenance template is part of the Wikipedia project, not the encyclopedia proper. It automatically adds images to Category:Images with inappropriate JPEG compression. It also includes an optional parameter to specify whether PNG or SVG is a better choice for replacement. For PNG, use {{Bad JPEG|PNG}} and for SVG use {{Bad JPEG|SVG}}.

Examples[编辑]

  • PNG:
File:No JPG.svg

這個template中的所有圖片名上傳JPEG格式,即使它包含非照片數據。該信息可以以PNGSVG格式更有效或更準確地存儲。 如果可能,請上傳此圖像的PNG或SVG版本,不含壓縮偽影,源自非JPEG源(或帶有現有工件移除)。完成後,請使用{{Superseded|NewImage.ext}}標記JPEG版本並刪除此標記。此標籤不應應用於照片或掃描件。如需更多信息,請參閱{{BadJPEG}}。

File:Badjpeg.jpg
  • SVG:
File:No JPG.svg

這個template中的所有圖片名上傳JPEG格式,即使它包含非照片數據。該信息可以以PNGSVG格式更有效或更準確地存儲。 如果可能,請上傳此圖像的PNG或SVG版本,不含壓縮偽影,源自非JPEG源(或帶有現有工件移除)。完成後,請使用{{Superseded|NewImage.ext}}標記JPEG版本並刪除此標記。此標籤不應應用於照片或掃描件。如需更多信息,請參閱{{BadJPEG}}。

File:Badjpeg.jpg


Template data[编辑]

以下是该模板的模板数据,适用于可视化编辑器等工具。

BadJPEG模板数据

<templatedata> { "description": "This automatically adds images to Category:Images with inappropriate JPEG compression.", "params": { "1": { "label": "Ideal new type", "description": "PNG or SVG", "required": false, "type": "string" } } } </templatedata>

See also[编辑]