Template:BugGallery/zh-cn

来自Palia Wiki
跳转到导航 跳转到搜索
本页是页面Template:BugGallery翻译版本,翻译工作已完成100%。
模板文件
注意:如果没有提供数值,可能无法看到模板样本的部分内容。
查看或编辑本文档。 (关于模版文件)
编辑者可在该模板的沙盒测试用页面进行实验。
其他语言:

用途

The {{BugGallery}} template is to be used for the Gallery section of each bug page.

Template automatically checks and pulls three images for each page:

  • UntranslatedPagename.png (icon)
  • UntranslatedPagename Ingame.png (bug in the wild)
  • UntranslatedPagename SQ Ingame.png (bug in terrarium)

Note: no image/broken link will appear if the file does not exist.

构造

{{BugGallery<!-- Place each image on a new line starting with "|File:". Add "|" and more text to include an image caption. -->
|File: |
}}<!-- Gallery end, DO NOT DELETE -->

示例

If Gallery Placed on Page: Firebreathing Dragonfly

Image Properties

Additional Image properties can be added to each image along with the Galleries description, however due to Template syntax additional care must be used to escape special characters (To prevent weird formatting problems).

  • Each image property following the Description should be separated by {{!}}, which will convert into a pipe character (|)
  • Typing an equal sign (=) will cause the attribute to be treated as a named template parameter. {{=}} should be used in it's place.

Added Alt Text

The alternative text can be overridden in situations where an image fails to load, or a user is making use of a screen reader to assist in reading the page.

{{BugGallery
 |File:image1.png|Description 1{{!}}alt{{=}}Alternative image text
 |File:image2.png|Description 2{{!}}alt{{=}}More alternative text
}}

Added Page Link

Images by default will link to their image page, such as [[:File:image1.png]], this behavior can be overridden by providing a link= to another page.

{{BugGallery
 |File:image1.png|Description 1{{!}}link{{=}}[[Some Other Page]]
 |File:image2.png|Description 2{{!}}link{{=}}[[Also Another Page]]
}}

相关信息