Template:Item link 2-line

提供:Terraria Japan Wiki

2015年7月14日 (火) 14:48時点におけるTer5 (トーク | 投稿記録)による版
(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)
移動: 案内, 検索
[[File:{{{1}}}.png{{#if: | |{{{size}}} }}{{#ifeq:|yes|||link={{{1}}}}}]] {{#ifeq:|yes|{{{2}}}|[[{{{1}}}{{#if:||{{{2}}}}}]]}} {{#if: |
{{{note}}}}}{{#if: | {{{note2}}}}}

Description

This is a variation of {{item link}} that allows you to specify custom link text, including breaking link text to separate lines while keeping text wrapped to the right of the item image.

Custom link text is optional; This template can also be used purely to add wrapped non-link text, via the "note=" or "note2=" parameter (detailed below). Custom link text and notes can be used together, as in the example below.

This template is primarily for use within the {{biome}} template, where table width is often at a premium. Splitting item titles and notes to multiple lines can help control table width and keep content neatly formatted, especially on smaller screens.

Usage

Use the shortcut {{il2l}} for convenience.

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

Example

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

Template:Il2l



スポンサード リンク

スポンサードリンク