Help:Images

From Valve Developer Community
Revision as of 07:34, 19 September 2023 by Aiden2014 (talk | contribs) (Created page with "{{Language subpage}} {{translate}} 许多文章需要用截图或者其他图片来说明文章主题或为教程添加直观的引导。任何注册过的用户都能上传...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)Esperanto (eo)中文 (zh)Translate (Translate)
Info content.png
This page needs to be translated.
This page either contains information that is only partially or incorrectly translated, or there isn't a translation yet.
If this page cannot be translated for some reason, or is left untranslated for an extended period of time after this notice is posted, the page should be requested to be deleted.
Also, please make sure the article complies with the alternate languages guide.(en)

许多文章需要用截图或者其他图片来说明文章主题或为教程添加直观的引导。任何注册过的用户都能上传图片并在文章中使用它们。请注意所有图片都必须遵守图片使用政策

什么时候使用图片

  • 展示界面或对话框的外观
  • 展现文章主题在游戏中的外观(例如一个效果或者模型的截图)
  • 说明开发过程的方方面面(例如设计Hammer中的移动平台的截图)
  • 让人能够快速知道如何设置物品属性或在Hammer中的输入与输出(例如一张设置好物品属性的截图)
  • 添加图表来解释主题或程序(例如用流程图来说明复杂的逻辑)
Note.png注意:避免将文字说明直接放入图片中去,因为这么做会让翻译页面变得不方便。

如何上传图片

请到上传页面并按里面的指导操作。请使用描述性的文件名。

Tip.png提示:建议将图片大小限制到4MB及以下,使用.JPG格式(照片质量能达到90-98%)或者使用TinyPNG压缩过的.PNG格式,这样可以在网络不好的情况下使文章和图片加载得更快。
没必要使用4K (3840x2160)图片的情况下,尽量减少使用4K图片。

在文章中插入图片

一张用于举例的图片
  • 编辑文章并确定您要插入截图的地方。
  • 在新的一行使用[[Image:IMAGENAME.jpg|thumb|right|300px|CAPTION]] 这个模板。
    Tip.png提示:将图片代码放在您希望它出现在旁边的行的上方,除非:
    Tip.png提示:如果图片应该出现在章节的顶部,请将图片代码放在章节标题下一行。
  • Replace the "imagename.jpg" with the name of your file as it appears on the Wiki (other image formats beside JPG may also be used). Replace "CAPTION" with a description that will be displayed under the image. To resize the image, change 300px to the desired width in pixels. To align the image to the left (which should normally be avoided) replace "right" with "left".

Here is the code for the example image on the right: [[Image:Point_Tesla.jpg|thumb|right|300px|An example image]]

Inserting a gallery into an article

For some articles, a gallery of several images may be appropriate to reduce the amount of space taken up. A gallery is inserted in this manner:

<gallery>
Image:IMAGENAME1.JPG|Caption 1
Image:IMAGENAME2.JPG|Caption 2
</gallery>

Replace "imagename#.jpg" with the filename of the image, and write a descriptive caption (not required) after the |.

Here is how galleries typically look:

Adding images through a URL

If you paste a URL into a page, it will display an image if it points to one. It's an option. but not recommended because you will not have as much control over the appearance of it, and because it's external, the image may change or disappear at any time.

See Also