Difference between revisions of "Template:ItemDesc"
From JellyRO Wiki
| (6 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly><div class=" | + | <includeonly><div class="itemdesc"> |
<div class="image">[[File:Item2 {{{name}}}.gif|link=]]</div> | <div class="image">[[File:Item2 {{{name}}}.gif|link=]]</div> | ||
<div class="name">{{{name}}}</div> | <div class="name">{{{name}}}</div> | ||
| Line 11: | Line 11: | ||
| [[Template: ItemDesc2]] || Increased width | | [[Template: ItemDesc2]] || Increased width | ||
|- | |- | ||
| − | | [[Template: | + | | [[Template: ItemDesc3]] || Puts ItemDesc2 in an expandable div. |
|- | |- | ||
| − | | [[Template: | + | | [[Template: EquipDesc]] || 269px width. For items with slots 0-4. |
| + | |- | ||
| + | | [[Template: EquipDesc2]] || Increased width. For items with slots 0-4. | ||
| + | |- | ||
| + | | [[Template: EquipDesc3]] || Puts EquipDesc2 in an expandable div. | ||
|} | |} | ||
== Usage == | == Usage == | ||
{{ ItemDesc | {{ ItemDesc | ||
| − | | name = Apple | + | | name=Apple |
| − | | desc = A round red edible fruit of a small tree of the rose family.<br /><span style="color:#000088;">Recover a small amount of HP</span>.<br /><span style="color:#ffffff;">_</span><br />Weight : <span style="color:#777777;">2</span> }} | + | | desc=A round red edible fruit of a small tree of the rose family.<br /><span style="color:#000088;">Recover a small amount of HP</span>.<br /><span style="color:#ffffff;">_</span><br />Weight : <span style="color:#777777;">2</span> }} |
<nowiki>{{ ItemDesc | <nowiki>{{ ItemDesc | ||
| − | | name = Apple | + | | name=Apple |
| − | | desc = A round red edible fruit of a small tree of the rose family. | + | | desc=A round red edible fruit of a small tree of the rose family. ... |
}}</nowiki> | }}</nowiki> | ||
{{ ItemDesc2 | {{ ItemDesc2 | ||
| − | | name = Apple | + | | name=Apple |
| − | | desc = A round red edible fruit of a small tree of the rose family.<br /><span style="color:#000088;">Recover a small amount of HP</span>.<br /><span style="color:#ffffff;">_</span><br />Weight : <span style="color:#777777;">2</span> }} | + | | desc=A round red edible fruit of a small tree of the rose family.<br /><span style="color:#000088;">Recover a small amount of HP</span>.<br /><span style="color:#ffffff;">_</span><br />Weight : <span style="color:#777777;">2</span> }} |
<nowiki>{{ ItemDesc2 | <nowiki>{{ ItemDesc2 | ||
| − | | name = Apple | + | | name=Apple |
| − | | desc = A round red edible fruit of a small tree of the rose family.<br /><span style="color:# | + | | desc=A round red edible fruit of a small tree of the rose family. ... |
| + | }}</nowiki> | ||
| + | |||
| + | {{EquipDesc | ||
| + | | name=Model Training Hat | ||
| + | | slots=0 | ||
| + | | desc=A headgear which consists of a book and an apple on the top. Can be used to learn manners.<br />DEX + 2<br />Class : <span style="color:#777777;">Headgear</span><br />Defense : <span style="color:#777777;">2</span><br />Location : <span style="color:#777777;">Upper</span><br />Weight : <span style="color:#777777;">70</span><br />Required lvl : <span style="color:#777777;">NA</span><br />Available Job : <span style="color:#777777;">Every Job except Novice</span> | ||
| + | }} | ||
| + | <nowiki>{{EquipDesc | ||
| + | | name=Model Training Hat | ||
| + | | slots=0 | ||
| + | | desc=A headgear which consists of a book and an apple on the top. ... | ||
| + | }}</nowiki> | ||
| + | |||
| + | {{EquipDesc2 | ||
| + | | name=Model Training Hat | ||
| + | | slots=0 | ||
| + | | desc=A headgear which consists of a book and an apple on the top. Can be used to learn manners.<br />DEX + 2<br />Class : <span style="color:#777777;">Headgear</span><br />Defense : <span style="color:#777777;">2</span><br />Location : <span style="color:#777777;">Upper</span><br />Weight : <span style="color:#777777;">70</span><br />Required lvl : <span style="color:#777777;">NA</span><br />Available Job : <span style="color:#777777;">Every Job except Novice</span> | ||
| + | }} | ||
| + | <nowiki>{{EquipDesc2 | ||
| + | | name=Model Training Hat | ||
| + | | slots=0 | ||
| + | | desc=A headgear which consists of a book and an apple on the top. ... | ||
| + | }}</nowiki> | ||
| + | |||
| + | {{EquipDesc3 | ||
| + | | name=Model Training Hat | ||
| + | | slots=0 | ||
| + | | desc=A headgear which consists of a book and an apple on the top. Can be used to learn manners.<br />DEX + 2<br />Class : <span style="color:#777777;">Headgear</span><br />Defense : <span style="color:#777777;">2</span><br />Location : <span style="color:#777777;">Upper</span><br />Weight : <span style="color:#777777;">70</span><br />Required lvl : <span style="color:#777777;">NA</span><br />Available Job : <span style="color:#777777;">Every Job except Novice</span> | ||
| + | }} | ||
| + | <nowiki>{{EquipDesc3 | ||
| + | | name=Model Training Hat | ||
| + | | slots=0 | ||
| + | | desc=A headgear which consists of a book and an apple on the top. ... | ||
}}</nowiki> | }}</nowiki> | ||
| Line 40: | Line 77: | ||
I recommend instead [[Template:ItemDesc2]] which has a wider width. However this template gets the base ItemDesc template name because of its in-game style. -- [[User:Adellie|Adellie]] ([[User talk:Adellie|talk]]) 12:36, 26 December 2013 (UTC) | I recommend instead [[Template:ItemDesc2]] which has a wider width. However this template gets the base ItemDesc template name because of its in-game style. -- [[User:Adellie|Adellie]] ([[User talk:Adellie|talk]]) 12:36, 26 December 2013 (UTC) | ||
| − | |||
</noinclude> | </noinclude> | ||
| + | <noinclude>[[Category:Templates]]</noinclude> | ||
Latest revision as of 06:16, 12 June 2015
Related Templates
| Template | Description |
|---|---|
| Template: ItemDesc | 269px width |
| Template: ItemDesc2 | Increased width |
| Template: ItemDesc3 | Puts ItemDesc2 in an expandable div. |
| Template: EquipDesc | 269px width. For items with slots 0-4. |
| Template: EquipDesc2 | Increased width. For items with slots 0-4. |
| Template: EquipDesc3 | Puts EquipDesc2 in an expandable div. |
Usage

Apple
A round red edible fruit of a small tree of the rose family.
Recover a small amount of HP.
_
Weight : 2
Recover a small amount of HP.
_
Weight : 2
{{ ItemDesc
| name=Apple
| desc=A round red edible fruit of a small tree of the rose family. ...
}}

Apple
A round red edible fruit of a small tree of the rose family.
Recover a small amount of HP.
_
Weight : 2
Recover a small amount of HP.
_
Weight : 2
{{ ItemDesc2
| name=Apple
| desc=A round red edible fruit of a small tree of the rose family. ...
}}

Model Training Hat [0]
A headgear which consists of a book and an apple on the top. Can be used to learn manners.
DEX + 2
Class : Headgear
Defense : 2
Location : Upper
Weight : 70
Required lvl : NA
Available Job : Every Job except Novice
DEX + 2
Class : Headgear
Defense : 2
Location : Upper
Weight : 70
Required lvl : NA
Available Job : Every Job except Novice
{{EquipDesc
| name=Model Training Hat
| slots=0
| desc=A headgear which consists of a book and an apple on the top. ...
}}

Model Training Hat [0]
A headgear which consists of a book and an apple on the top. Can be used to learn manners.
DEX + 2
Class : Headgear
Defense : 2
Location : Upper
Weight : 70
Required lvl : NA
Available Job : Every Job except Novice
DEX + 2
Class : Headgear
Defense : 2
Location : Upper
Weight : 70
Required lvl : NA
Available Job : Every Job except Novice
{{EquipDesc2
| name=Model Training Hat
| slots=0
| desc=A headgear which consists of a book and an apple on the top. ...
}}

Model Training Hat [0]
A headgear which consists of a book and an apple on the top. Can be used to learn manners.
DEX + 2
Class : Headgear
Defense : 2
Location : Upper
Weight : 70
Required lvl : NA
Available Job : Every Job except Novice
DEX + 2
Class : Headgear
Defense : 2
Location : Upper
Weight : 70
Required lvl : NA
Available Job : Every Job except Novice
{{EquipDesc3
| name=Model Training Hat
| slots=0
| desc=A headgear which consists of a book and an apple on the top. ...
}}
Notes
This template is used to display items as they appear in-game, and so generally do not require staff confirmation - as opposed to the Template:ItemInfo group. However, that template is less bulky.
Long Item Names
This base template keeps 269px width that you see in-game. For that reason, it does not work with long item names. I have allowed it to overflow into the description area and have no intentions of complicating divs to fix it.
I recommend instead Template:ItemDesc2 which has a wider width. However this template gets the base ItemDesc template name because of its in-game style. -- Adellie (talk) 12:36, 26 December 2013 (UTC)