模板:Item link 2-line

出自Terraria Wiki
前往: 導覽搜尋
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
魔化
飛斧
 EICONS ALL VERSIONS!
(rare)

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

TerrariaCE.jpg
限量珍藏版 EICONS ALL VERSIONS!
(New Player's Inventory)