欢迎大家来到沙石镇时光中文维基!本站编辑权限开放,欢迎加入中文维基 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 add br=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).

无描述。

模板参数

此模板有自定义格式。

参数描述类型状态
Icon1

'First unamed parameter'=Icon

默认值
Stone
示例
Stone Daggers
页面名称推荐
Brbr

Line break

示例
no
自动值
no
布尔值推荐
(Variable)2

Second unamed variable. Appended after icon name in parantheses

示例
+10
字符串可选
Altalt

Alternative name appended to icon

示例
Stone
页面名称可选
Alt 2alt2

Second icon to be appended

示例
Suit of Memories (Bottom) Skirt
页面名称可选
Sizesize

Icon size

建议值
textheadersmallmediumlarge50pxo
默认值
text
示例
text
自动值
text
字符串可选
No linknolink

No link

布尔值可选
Captionaltname

Caption on hover

示例
Weapons
页面名称可选
Notenote

'String' appended

示例
<sup>Unimplemented</sup>
字符串可选