Template:Item link 2-line

来自Terraria Wiki
(重定向自Template:Il2l
跳转至: 导航搜索
Template-info.svg 文档 以下文档内容来自模板:Item link 2-line/doc。 (edit | history)

This is a more full-featured variation of {{item link}} that allows multiple link/text lines wrapped to the right of an item image. Custom link text can be entered, which can include line breaks, allowing you to specify where text should always be broken. Links broken to multiple lines automatically due to browser or table/box width will also wrap to the right of the image when this template is used, rather than breaking to a brand-new line below the image (as {{item link}} does). Unlinked "notes" can also be included as further wrapped lines next to the image.

This template is primarily for use within the {{biome}} template, where table width is often at a premium. Splitting item titles to multiple lines (or simply allowing long titles to automatically break and wrap) can help control table width and keep content neatly formatted, especially on smaller screens. It may also be of similar use in other table or boxed listings.

{{item link}} should continue to be used in many simpler listing situations, as {{il2l}} can add needless complexity to the wiki code of an article, and/or add unnecessary HTML bloat (each {{il2l}} produces its own small inner HTML table).

用法

{{il2l}}短模板更加方便

{{il2l
| 物品名称,同样也是默认的图片名称
| 可选:自定义超链接文本,可添加换行命令→(<br />)
| 可选:image =自定义图片"图片名.png", no brackets or "File:"
/> | 可选: size = ##px : 自定义图片大小
| optional: bare = yes : un-link the display text
| 可选:note = 注释文本:另起一行显示小一号的非超链接文本,用来注释
| optional: note2 = note text : same as the note parameter, but does not break to a new line
| optional: smallnote = no : note is displayed without a reduced font
| optional: smallnote2 = no : note2 is displayed without a reduced font
| optional: big = yes : for larger situations, ie. outside {{biome}} boxes, this increases line height for a more normal look
| optional: style = : add custom CSS for the first cell (the cell containing the image)
| optional: style2 = : add custom CSS for the second cell (the cell containing the link/text lines)
}}

示例

{{il2l|Possessed Hatchet|魔化<br />飞斧|note=(rare)|size = 35px}}

Possessed Hatchet.png
魔化
飞斧
 
(rare)

{{il2l|image = TerrariaCE.jpg|size = 30px|限量珍藏版|note = (New Player's Inventory)|smallnote = no}}

TerrariaCE.jpg
限量珍藏版 
(New Player's Inventory)
Promotional Content