中华古典文库

Template:Raw_image 中华文库

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]
本模板是由英文维基文库的同名模版Template:Raw image复制而来,其用法及功能与原始模板完全相同。
本模板没有且不需要在地化改动。如果本模板的版本已经落后于来源模板,请编者从来源更新此模板。
Lua标志此模板使用Lua语言编写:
  • Module:rawImage

The Raw image template takes a Page:-namespace page as argument and inserts the corresponding page scan as an image.

It should be used where an image needs to be displayed, a full raw page scan exists and suffices to display the image, and no better image is available.

目录

  • 1 Standard
  • 2 Usage
  • 3 Notes
  • 4 Tracking
  • 5 What needs to be done to move to Commons and replace image in work
  • 6 See also

Standard

{{Raw image}} is used where the raw page scan is a tolerable substitute for the required image until such time as a better image can be provided. If the raw page scan is not a tolerable substitute, use {{missing image}} instead.

The standard for use of {{raw image}} is:

  1. The image should take up the entire page scan, though a caption is acceptable. Where multiple images make up the entire page scan, you can either use {{raw image}} once to display all images on the page, or use {{missing image}} for each distinct image.
  2. The page scan shows the entire image. Where an image spans adjacent leaves, do not use {{raw image}} to display each separate page scans.
  3. The image is correctly rotated on the page scan.
  4. The page scan is of tolerable quality. Where a page scan is of poor quality, use {{missing image}} instead. If a page scan is so bad that it cannot be regarded as representing the image at all, use {{bad page scan}}; for example, use {{bad page scan}} for fold-out

It should only be used when the image takes up the entire page scan, is correctly rotated on the page scan, and the page scan is of tolerable quality. Otherwise, use {{missing image}}.

Usage

{{raw image|Name of page}}

Omit the namespace from the page name.

For example, to display the scan for Page:A song of the English (1909).djvu/167, the correct usage would be {{raw image|A song of the English (1909).djvu/167}}, which produces:

(Upload an image to replace this placeholder.)


To automate the insertion of the name of the page, one may type:

{{raw image|{{subst:PAGENAME}}}}

Do not type

{{raw image|{{PAGENAME}}}}

as this will fail in transclusion.

Notes

Page: namespace pages that make use of this template are regarded as needing further work and should therefore be marked Problematic.

Tracking

Page: namespace tagged with {{raw image}} are placed into Category:Pages with raw images or Category:Pages with raw images (hi-res scan available), depending on whether or not they have a hi-res page scan to display. Mainspace pages that transclude such pages are placed into Category:Texts with raw images.

What needs to be done to move to Commons and replace image in work

  • Clean the image up e.g. crop, colour-balance, etc
  • Save the final image as JPG, which is much the better format for the final image. The only reason the raw images are PNG is because PNG is lossless. JPG uses lossy wavelet compression, and cropping, in particular, introduces artefacts. But once cropping and cleanup is done and you have a final image, conversion to JPG is ideal.
  • Choose the right copyright license. I'm deliberately dodging responsibility on this one. I don't want to be responsible for a bot that makes copyright assertions by the thousand.
  • Upload the image to Commons, under a different name. The change from PNG to JPG will suffice as a name change for my purposes, but best practice is of course to choose the best possible image title. Sadly it is impossible to have a file history that contains both a PNG original and a JPG derivative, so your laudable plan to retain the original in the file history is unattainable.
  • Go to the Page: namespace page where the image is displayed. Replace the {{raw image}} template with [[File:...]] code to insert your new, restored image.
  • Nominate the raw image for deletion

See also

  • {{missing image}}
  • {{bad page scan}}
上述文档嵌入自Template:Raw image/doc。 (编辑 | 历史)
编者可以在本模板的沙盒 ( | )和测试样例 ()页面进行实验。
请在/doc子页面中添加分类。 本模板的子页面。
@ 中华古典文库·所有典籍和文档皆收集自互联网。