Difference between revisions of "Template:ItemT"

From Project: Gorgon Wiki
Jump to: navigation, search
(Previous edit seems to be working well. Adding Icon override to allow using icon from simpler (or other) item name (see demos page).)
(Replacing template.)
Line 1: Line 1:
<noinclude>{{Underconstruction}}
+
{| style="margin:1px; border:1px solid#423930; float:right; text-align:left; position:relative; border-radius:5px; background:#1e1615ff;" cellpadding="5"
</noinclude>{{#ifeq: {{{2|}}} | thumb
+
|{{Item icon|{{{name}}}}}
| <div class="thumb tright"><div class="thumbinner" style="width:414px;">
+
|<div class="ib-tbl-hdt">{{{name|name}}}</div>
}}<!--
+
|-
--><div class="gg-itemt"><!--
+
{{ #if:{{{skillreqs|}}}|{{pipe}}- valign="top" ! style= "width:400px;" colspan="2" align="left"
  --><div class="gg-itemt-hd"><!--
+
{{pipe}} <div class="block2" style="color:#95263B" width:"400px;">{{{skillreqs}}}</div>
      --><div class="gg-itemt-img"><!--
+
}}
        -->{{#if: {{{Icon|}}}
+
|-
            |{{Item icon|{{{Icon}}}}}
+
| style= "width:400px;" colspan="2" align="left" | <div class="block2" style="color:#ffffff" width:"400px;">{{{description|-}}}</div>
            |{{Item icon|{{{3|None}}}}}
+
|- valign="top"
            }}
+
! colspan="2"| <div class="block2" style="color:#ffffff;">{{{basemods|-}}}</div>
            <!--{{#if: {{{icon|}}}
+
|-
            | {{icon|{{{icon}}}}}
+
! colspan="2" align="left"| <div class="block2" style="color:#ffffff;"> Value: {{{value|-}}}</div>
            | [[Image:Item Template Icon (empty).gif]]
+
|-
            }}--><!--
+
| style= "width:400px;" colspan="2" align="left" | {{{extra|-}}}
      --></div><!--
+
|}
      --><div class="gg-hd" style="color:#{{#switch: {{{1|}}}
 
                                          | yellow  = ffff00
 
                                          | purple  = 993399
 
                                          | magenta  = ff7538
 
                                          | cyan    = 00ffff
 
                                          | green    = 00ff00
 
                                          | #default = fff
 
                                          }};"><!--
 
        -->{{{3|Item Name Goes Here}}}<!--
 
      --></div><!--
 
      --><p>{{{4|Item description goes here.}}}</p><!--
 
  --></div><!--
 
  -->{{{5|Item stats goes here}}}<!--
 
--></div><!--
 
-->{{#if: {{{caption|}}}
 
  | <div class="thumbcaption">{{{caption}}}</div>
 
  }}{{
 
#ifeq: {{{2|}}} | thumb
 
| </div></div>
 
}}<includeonly>{{
 
#ifeq: {{{nocat|-}}} | -
 
| [[Category:Items]]
 
}}</includeonly><noinclude>
 
{{documentation}}
 
</noinclude>
 
 
<noinclude>
 
<noinclude>
<!--
+
{{clear}}__NOTOC__
  TEMPLATE DEV NOTES
 
  - width property .thumbinner otherwise long captions will extend the box.
 
  
-->
 
__NOTOC__
 
==Examples==
 
Here is a simple example, for more complex examples see [[ItemT Template Demos]].
 
 
Also see the [[:Category:Uses ItemT|category page for all pages using Template:ItemT]] (using the template puts it in this category).
 
  
 +
==Syntax==
 
<pre>
 
<pre>
{{ItemT|||saltpeter
+
{{ItemT
|Saltpeter
+
|name =
|A tiny pinch of saltpeter, a strange substance with many magical uses.
+
|skillreqs=
|
+
|description=
Value: 300
+
|basemods=
}}</pre>
+
|value=
 
+
|extra=
{{Link Template Demos}}
+
}}
 
+
</pre>
==Backup==
+
{{ItemT
This is the #switch expression if/when ''ParserFunctions'' is installed in the wiki.
+
|name = Basic Boots
 
+
|description = Sturdy and fashionable, if not especially protective.
<code><nowiki>
+
|basemods ={{Attribute|MAX_ARMOR|+15}}<br>{{Attribute|COMBAT_REFRESH_ARMOR_DELTA|+2}}
<div class="gg-hd" style=";">
+
|value = 30
</nowiki></code>
+
|extra = {{Spoiler|
 
+
|{{ITEM EXTRA infobox
</noinclude>
+
| craftpoints = 100
 +
| equipslot = Feet
 +
| stack = 1
 +
| keywords = {{KW|Armor}}{{KW|ArmorOrShield}}{{KW|Equipment}}{{KW|Feet}} {{KW|MetalArmor}}{{KW|MetalBoots}}{{KW|MetalDyeableArmor}}{{KW|Stock}}
 +
}}}}
 +
}}
 +
{{ItemT
 +
|name = Fire Dust
 +
|description = This bright red powder always feels warm to the touch.
 +
|basemods =
 +
|value = 90
 +
|extra = {{Spoiler|
 +
|{{ITEM EXTRA infobox
 +
| stack =  99
 +
| keywords = {{KW|AlchemyIngredient}}{{KW|FireDust}}{{KW|MagicDust}}
 +
}}}}
 +
}}
 +
{{ItemT
 +
|name = Windstep Shoes
 +
|skillreqs= Endurance 40
 +
|description = Popular with elven messengers, these elegant cloth footwraps make your feet move much faster! But they don't protect your feet very well, so you'll need significant endurance to tolerate the numerous stubbed toes and sprained ankles.
 +
|basemods ={{Attribute|MAX_ARMOR|+25}}<br>{{Attribute|SPRINT_BOOST|+2}}<br>{{Attribute|COMBAT_REFRESH_HEALTH_DELTA|+30}}<br>{{Attribute|COMBAT_REFRESH_POWER_DELTA|+27}}
 +
|value = 150
 +
|extra = {{Spoiler|
 +
|{{ITEM EXTRA infobox
 +
| craftpoints = 100
 +
| equipslot = Feet
 +
| stack = 1
 +
| keywords = {{KW|Armor}}{{KW|ArmorOrShield}}{{KW|Equipment}}{{KW|Feet}} {{KW|ClothArmor}}{{KW|ClothBoots}}{{KW|ClothDyableArmor}}{{KW|Fashionable}}{{KW|Loot}}
 +
}}}}
 +
}}

Revision as of 16:45, 17 October 2019

Error: Item not found
name
-
-
Value: -
-



Syntax

{{ItemT
|name =
|skillreqs=
|description=
|basemods=
|value=
|extra=
}}