Template:Item Header: Difference between revisions

From Space Station 14 Wiki
m (added a segment for putting the parent id of an item. This will help with finding stuff in the code, as well as making it easier for items to group together via links)
m (lets see if this works...)
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__ <!-- Removes table of contents -->
__NOTOC__ <!-- Removes table of contents -->


<div style="display: flex; flex-direction: column;">
<div style="max-width:250px; font-size:12px; border:1px solid black; background: #202122; border-radius:8px; padding:6px; line-height:1.5; float:right; margin:.5em 0 .5em 1em">
<div style="margin-bottom: 0px; width: 100%; text-align: center; background: {{{headstyle|repeating-linear-gradient(45deg, #757575, #757575 10px, #3c3c3c 10px, #3c3c3c 20px);}}}; border-top: {{{headborder|2px solid #3c3c3c}}}; border-bottom: {{{headborder|2px solid #3c3c3c}}}">
<div style="background: #191a1a; border: 1px solid black; border-radius: 8px; font-size:15px; font-weight:700; text-align:center; padding:2px ">
<b>{{{Item Category|Lame Category}}}</b>
{{#if: {{{title|}}} | {{{title}}} | {{PAGENAME}}
</div><div style="display: flex; margin-top: 0px; align-items: stretch;">
}}
<!-- --><div style="width: 16em; border-bottom: 1px solid lightgray; margin-top: 0px; text-align: center;">
</div>
<!--  -->{{{img|}}}
<div style="position: relative; text-align: center; margin: 0; padding: 0;">
<!-- --></div>
{{{img|[[File:Hot_coffee.png|100px]]}}}
<!-- --><div style="padding-left: 10px; width:100%; border-bottom: 1px solid lightgray; border-left: 1px solid lightgray;">
</div>
<!--  --><h3>{{{title|Item Name}}}</h3>
<div style="background: #191a1a; border: 1px solid black; border-radius: 8px; font-weight:700; text-align:center; padding:2px ">
<!--  -->: '''Description''': {{{description|Boring}}}
Statistics
<!--  -->: '''Item ID''': {{{itemid|BaseItem}}} <!--what it is called in the code-->
</div>
<!--  -->: '''Parent ID''': {{{parent|lame base}}}
: '''Description''': {{{description|Boring}}}
<!--  -->: '''Fragility''': {{{fragility|Fragile (breaks into [[tears]])}}} <!-- e.g. cups break into glass shards-->
: '''Item ID''': {{{itemid|BaseItem}}} <!--what it is called in the code-->
<!--  -->: '''Size''': {{{size|5 units}}}
: '''Parent ID''': {{{parent|lame base}}}
<!--  -->: '''Value''': {{{value|0 spesos}}}
: '''Fragility''': {{{fragility|Fragile (breaks into [[tears]])}}} <!-- e.g. cups break into glass shards-->
<!--  -->: '''Use Action''': {{{action|none}}}
: '''Size''': {{{size|5 units}}}
<!--  -->: '''Damage''': {{{damage| Not a usable weapon}}} <!--there is a difference between an item that can't be swung, and one that can but does 0 damage-->
: '''Value''': {{{value|0 spesos}}}
<!-- --></div>
: '''Use Action''': {{{action|none}}}
</div>
: '''Damage''': {{{damage| Not a usable weapon}}} <!--there is a difference between an item that can't be swung, and one that can but does 0 damage-->
</div>
</div>

Latest revision as of 15:35, 5 September 2023


Item Header

Statistics

Description: Boring
Item ID: BaseItem
Parent ID: lame base
Fragility: Fragile (breaks into tears)
Size: 5 units
Value: 0 spesos
Use Action: none
Damage: Not a usable weapon