欢迎大家来到沙石镇时光中文维基!本站编辑权限开放,欢迎加入中文维基 QQ 群「沙海时光」:372816689
目前正在进行全站数据更新,期间可能会存在显示异常的问题。
模板:I2/doc
Description
Displays item icon and name, as well as NPC's relationship point value (hidden by default). This template is useful when creating lists and can be used alongside Template:Columns.
The difference between Template:I and this template is that this template includes the name of the item alongside the icon (as well as a value), as opposed to Template:I only displaying the icon. Also this template includes a <br> at the end but can be removed by using the br parameter.
This template is mobile friendly. To ensure maximum mobile compatibility, all images must be 30px or smaller.
Syntax
{{i2|<1>|<2>|alt=|alt2=|note=}}
CLEAN
{{i2| | |alt=|alt2=|note=}}
CLEAN NO ALT
{{i2| | }}
- 1
- Name of item
- 2
- Value (do not include parentheses!), can be used for Relationship ie (+10) / quantity ie (0/5) / etc
- size
- Size of the icon, default is text size (26px)
- alt
- Alternate name of icon
- alt2
- Name of a second icon to display
- note
- Notation to appear at the end
- br
- By default, a line break
<br/>is added for easier list-making. Any value in the parameter will remove the line break. For consistency and easier identification, just addbr=no.
Sample
{{i2|Crane Lift|+4}}
{{i2|Stone}}
{{i2|Alfalfa Salad|+20}}
{{i2|Suit of Memories (Bottom)|alt=Suit of Memories (Bottom) Pants|alt2=Suit of Memories (Bottom) Skirt}}
{{i2|Sandworm|+1|note=*}}
{{i2|Pomato Seeds|note=<sup>Unimplemented</sup>}}
Results in...
升降吊车(+4)
石块
凉拌苜蓿(+20)
躲猫猫下衣躲猫猫下衣躲猫猫下衣
沙虫沙虫(+1) *
番茄土豆种子 Unimplemented
Size groups
This template uses a standard set of size groups for its images.
- text
- Text sized images are designed to be display inline with text. Any image that is currently coded to be less than 36px in size will automatically be converted to this size group. There are default stylings that can be overridden on an image by image basis to give the following features.
- Default height of 26px; designed to be as big as possible without offsetting line heights noticeably.
- Adjusts the vertical positioning so the images appear level with text.
- Create a uniform horizontal padding between images and text, ideally around 3 pixels.
- Prevent word wrapping from happening between images and text without a space character between them.
- header
- Header sized (h2 and h3) images are designed to be displayed inline with headers. Default height of 40px.
- small
- Small images are designed to be displayed as small icons without the extra inline text features. Default height of 30px.
- medium
- Medium images are designed to be displayed as normal icons. Any image that is currently coded to be less than 56px in size will automatically be converted to medium. Default height of 50px.
- large
- Large images are designed to be displayed as large icons. Any image that is currently coded to be less than 81px in size will automatically be converted to large. Default height of 75px.
If absolutely necessary a manual pixel size can be supplied by overriding the size groups. To do so just add an "o" after the "px" (ie: 34pxo).
无描述。
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Icon | 1 | 'First unamed parameter'=Icon
| 页面名称 | 推荐 |
| Br | br | Line break
| 布尔值 | 推荐 |
| (Variable) | 2 | Second unamed variable. Appended after icon name in parantheses
| 字符串 | 可选 |
| Alt | alt | Alternative name appended to icon
| 页面名称 | 可选 |
| Alt 2 | alt2 | Second icon to be appended
| 页面名称 | 可选 |
| Size | size | Icon size
| 字符串 | 可选 |
| No link | nolink | No link | 布尔值 | 可选 |
| Caption | altname | Caption on hover
| 页面名称 | 可选 |
| Note | note | 'String' appended
| 字符串 | 可选 |

沪公网安备 31011002002714 号