|
|
(間の2版分が非表示) |
1行: |
1行: |
- | <table style="display:inline; line-height:{{#ifeq:{{{big|}}}|yes|20px|15px}}; background-color:inherit; " ><tr><td style="border-bottom:0; border-top:0; margin:0; padding:0; vertical-align:middle;{{{style|}}}">[[File:{{{image|{{{1}}}.png}}}{{#if: {{{size|}}} | {{!}}{{{size}}} }}{{#ifeq:{{{bare|}}}|yes|<!--nothing-->|{{!}}link={{{1}}}}}]]</td><td style="border-bottom:0; border-top:0; vertical-align:middle;{{{style2|}}}"> {{#ifeq:{{{bare|}}}|yes|{{{2}}}|[[{{{1}}}{{#if:{{{2|}}}|{{!}}{{{2}}}}}]]}} {{#if: {{{note|}}} | <br /><span style="font-size:90%">{{{note}}}</span>}}{{#if: {{{note2|}}} | <span style="font-size:90%">{{{note2}}}</span>}}</td></tr></table><noinclude>
| + | {{削除依頼|公式サイトのテンプレートの複製だが、日本Wikiで使用されておらず、すでに公式サイトではなくなったテンプレートで需要がない:https://terraria.fandom.com/wiki/Template:Item_link_2-line}} |
- | | + | |
- | == Description ==
| + | |
- | This is a variation of {{tl|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 {{tl|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 <code>{{tl|il2l}}</code> for convenience.
| + | |
- | | + | |
- | {{code|<nowiki>{{</nowiki>il2l <br />
| + | |
- | <nowiki>|</nowiki> ''item name, also used as default image'' <br />
| + | |
- | <nowiki>|</nowiki> ''optional: custom link text, which can include line breaks (<nowiki><br /></nowiki>)'' <br />
| + | |
- | <nowiki>|</nowiki> ''optional: '''image <nowiki>=</nowiki>''' custom image as "name.png", no brackets or "File:".<br />
| + | |
- | <nowiki>|</nowiki> ''optional: '''note <nowiki>=</nowiki>''' note text : smaller non-linked text, for a small note on a new line'' <br />
| + | |
- | <nowiki>|</nowiki> ''optional: '''note2 <nowiki>=</nowiki>''' note text : same as the '''note''' parameter, but does not break to a new line'' <br />
| + | |
- | <nowiki>|</nowiki> ''optional: '''size <nowiki>=</nowiki>''' ##px : custom graphic size'' <br />
| + | |
- | <nowiki>|</nowiki> ''optional: '''bare <nowiki>=</nowiki>''' yes : un-link the display text'' <br />
| + | |
- | <nowiki>|</nowiki> ''optional: '''big <nowiki>=</nowiki>''' yes : for larger situations, ie. outside {{tl|biome}} boxes, this increases line height for a more normal look'' <br />
| + | |
- | <nowiki>}}</nowiki>
| + | |
- | }}
| + | |
- | | + | |
- | == Example ==
| + | |
- | {{code|<nowiki>{{</nowiki>il2l<nowiki>|</nowiki>Possessed Hatchet<nowiki>|</nowiki>Possessed <nowiki><br /></nowiki> Hatchet<nowiki>|</nowiki>note<nowiki>=</nowiki>(rare)<nowiki>|</nowiki>size <nowiki>=</nowiki> 35px<nowiki>}}</nowiki>}}
| + | |
- | | + | |
- | {{il2l|Possessed Hatchet|Possessed <br /> Hatchet|note=(rare)|size=35px}}
| + | |
- | | + | |
- | [[Category:Icon templates]]
| + | |
- | [[Category:Template|{{BASEPAGENAME}}]]</noinclude>
| + | |