Predefinição:Il2l

Fonte: Terraria Wiki
Saltar para a navegação Saltar para a pesquisa


Description

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.

Use the shortcut {{il2l}} for convenience.

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).

Usage

Use the shortcut {{il2l}} for convenience.

{{il2l <br /> | ''item name, also used as default image'' <br /> | ''optional: custom link text, which can include line breaks (&lt;br /&gt;)'' <br /> | ''optional: '''image =''' custom image as "name.png", no brackets or "File:".<br /> | ''optional: '''note =''' note text : smaller non-linked text, for a small note on a new line'' <br /> | ''optional: '''note2 =''' note text : same as the '''note''' parameter, but does not break to a new line'' <br /> | ''optional: '''size =''' ##px : custom graphic size'' <br /> | ''optional: '''bare =''' yes : un-link the display text'' <br /> | ''optional: '''big =''' yes : for larger situations, ie. outside {{[[Template:biome|biome]]}} boxes, this increases line height for a more normal look'' <br /> | ''optional: '''style =''' : add custom CSS for the first cell (the cell containing the image)'' <br /> | ''optional: '''style2 =''' : add custom CSS for the second cell (the cell containing the link/text lines)'' <br /> }}

Example

{{il2l|Possessed Hatchet|Possessed &lt;br /&gt; Hatchet|note=(rare)|size = 35px}}

Possessed Hatchet.png Possessed
Hatchet
(rare)

zh-cn:模板:Item link 2-line