Template:Infobox Tool: Difference between revisions

From Blockgame Wiki
(Updated template to be more readable. Headings are now lighter and attributes have better spacing)
(Undo revision 6261 by The Gru (talk))
Tag: Undo
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{| class="infobox" style="float: right; background-color: #f3f3f3; margin-left: 10px; border: 1px solid #ccc; padding: 4px; width: 18rem;" cellpadding="2" cellspacing="1"
<includeonly>{| class="infobox" style="float: right; background: rgb(255, 255, 240, 0.5); margin-left: 10px; border: 1px solid #333; border-radius: 8px; padding: 4px; width: 18rem;" cellpadding="2" cellspacing="1"
|-
|-
! colspan="2" style="background: linear-gradient(#857050, #cdbe98); text-align: center; font-size: 120%; padding: 5px; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);" | {{#if: {{{title}}} | {{{title}}} | {{PAGENAME}}}}
{{BG_Infobox_Header|bgcolor1=#857050|bgcolor2=#cdbe98}}
|-
|-
| colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Site-community-image.png|150px]]}}
| colspan="2" style="text-align: center;" | {{#if: {{{image|}}} | [[File:{{{image}}}]] | [[File:Site-community-image.png|150px]]}}
|-
|-
| colspan="2" style="height: 0.5rem" |
| colspan="2" style="height: 0.5rem" |
|-
{{BG_Infobox_Subheader|title=Tool Details|bgcolor1=#857050|bgcolor2=#cdbe98}}
| colspan="2" style="background: linear-gradient(#857050, #cdbe98); text-align: center; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);" | '''Tool Details'''
{{#if:
{{#if:
   {{{type|}}}
   {{{type|}}}
Line 22: Line 21:
}}{{#if:
}}{{#if:
   {{{merchant|}}}
   {{{merchant|}}}
   |<tr style="background: linear-gradient(#857050, #cdbe98); text-align: center; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);"><td colspan="2"><b>Shop</b></td></tr>|
   |{{BG_Infobox_Subheader|title=Shop|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
}}{{#if:
   {{{merchant|}}}
   {{{merchant|}}}
Line 37: Line 36:
}}{{#if:
}}{{#if:
   {{{tradable|}}}
   {{{tradable|}}}
   |<tr style="background: linear-gradient(#857050, #cdbe98); text-align: center; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);"><td colspan="2"><b>Trade Attributes</b></td></tr>|
   |{{BG_Infobox_Subheader|title=Trade Attributes|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
}}{{#if:
   {{{tradable|}}}
   {{{tradable|}}}
Line 52: Line 51:
}}{{#if:
}}{{#if:
   {{{material_cost|}}}
   {{{material_cost|}}}
   |<tr style="background: linear-gradient(#857050, #cdbe98); text-align: center; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);"><td colspan="2"><b>Materials</b></td></tr>|
   |{{BG_Infobox_Subheader|title=Materials|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
}}{{#if:
   {{{recipe_req|}}}
   {{{recipe_req|}}}
Line 59: Line 58:
   {{{material_cost|}}}
   {{{material_cost|}}}
   |<tr><td><b>Material cost</b></td><td style="white-space: nowrap">{{{material_cost}}}</td></tr>|
   |<tr><td><b>Material cost</b></td><td style="white-space: nowrap">{{{material_cost}}}</td></tr>|
}}{{#if:
  {{{ID|}}}
  |{{BG_Infobox_Subheader|title=MMO ID|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
  {{{ID|}}}
  |<tr><td colspan="2"><code>'''{{{ID}}}'''</code></td></tr>|
}}{{#if:
}}{{#if:
   {{{lore|}}}
   {{{lore|}}}
   |<tr style="background: linear-gradient(#857050, #cdbe98); text-align: center; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);"><td colspan="2"><b>Lore</b></td></tr>|
   |{{BG_Infobox_Subheader|title=Lore|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
}}{{#if:
   {{{lore|}}}
   {{{lore|}}}
Line 67: Line 72:
}}{{#if:
}}{{#if:
   {{{tooltip|}}}
   {{{tooltip|}}}
   |<tr style="background: linear-gradient(#857050, #cdbe98); text-align: center; color: white; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);"><td colspan="2"><b>Tooltip</b></td></tr>|
   |{{BG_Infobox_Subheader|title=Tooltip|bgcolor1=#857050|bgcolor2=#cdbe98}}|
}}{{#if:
}}{{#if:
   {{{tooltip|}}}
   {{{tooltip|}}}
   |<tr><td colspan="2"><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code></td></tr>|
   |<tr><td colspan="2"><code>'''{{ItemColor|type=Tooltip|text={{{tooltip}}}}}'''</code></td></tr>|
}}
}}
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}[[Category:Tools]]</includeonly><noinclude>[[Category:Template]]{{doc}}</noinclude>
|}{{#if: {{{type|}}}|[[Category:{{{type}}}]]|}}[[Category:Tools]]</includeonly><noinclude>[[Category:Infobox templates]]{{doc}}</noinclude>

Latest revision as of 14:40, 16 October 2024

Documentation
This template has no documentation. If you know how to use this template, please add some.