Template:Infobox legmetaobj: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
m (Fix leading "Legacy:" on Hunger case. (+general debug part))
m (Text replacement - "InfoboxEquipmentStat" to "Infobox/equipmentStat")
 
(6 intermediate revisions by 3 users not shown)
Line 2: Line 2:


>{{OutdatedPage}}
>{{OutdatedPage}}
{| class="infobox" style="font-size:89%; width:300px;"
{| class="infobox boxed" style="font-size:89%; width:320px;"
|+ {{#if:{{REVISIONID}}
|+ {{Infobox/preview_mode_note}}
|
|<span style="
font-size: 0.8em;
font-style: italic;
color: blue;
background-color: yellow;
">Infobox Preview Mode:<br>Property Changes Not Shown.}}</span>
 
! colspan=4 {{RoB_style|infoboxheader}} | {{{name|{{PAGENAME}}}}}
! colspan=4 {{RoB_style|infoboxheader}} | {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
|- style="text-align:center;"
| colspan=4 style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=320 }}<br/>''{{{caption| }}}''
| colspan=4 style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=320 }}<br>''{{{caption| }}}''
|-
|-
! colspan=4 {{RoB_style|infoboxsection}} | Vital statistics
! colspan=4 {{RoB_style|infoboxsection}} | Vital statistics
|-
|-
| '''[[Legacy:Glossary#Size|Size]]'''
| '''[[Legacy:Glossary#Size|Size]]'''
| colspan=3 | [[legacy-xsize::{{{xsize|1}}}]] x [[legacy-ysize::{{{ysize|1}}}]]
| colspan=3 | [[legacy-xsize::{{{xsize|1}}}]] x [[legacy-ysize::{{{ysize|1}}}]] [[legacy-vsize::{{#iferror:{{#expr:{{{xsize}}}*{{{ysize}}}}}|1}}| ]]
|-
| [[legacy-vsize::{{#iferror:{{#expr:{{{xsize}}}*{{{ysize}}}}}|1}}| ]]
|-
|-
{{#if: {{{skillreq|}}}
{{#if: {{{skillreq|}}}
Line 114: Line 104:
}}
}}
|-
|-
{{InfoboxEquipmentStat|name=legacy-basedmg|value={{{basedmg|}}}|desc=Damage|extra=[[Category:Legacy Weapons]]}}
{{Infobox/equipmentStat|name=legacy-basedmg|value={{{basedmg|}}}|desc=Damage|extra=[[Category:Legacy Weapons]]}}
|-
|-
{{#if: {{{statSTR|}}} |
{{#if: {{{statSTR|}}} |
Line 171: Line 161:
}}
}}
|-
|-
{{InfoboxEquipmentStat|name=legacy-absorbX|value={{{absorbX|}}}|desc=[[:Category:Legacy Armor|Absorption X]]|extra=[[Category:Legacy Armor]]}}
{{Infobox/equipmentStat|name=legacy-absorbX|value={{{absorbX|}}}|desc=[[:Category:Legacy Armor|Absorption X]]|extra=[[Category:Legacy Armor]]}}
|-
|-
{{InfoboxEquipmentStat|name=legacy-absorbY|value={{{absorbY|}}}|desc=[[:Category:Legacy Armor|Absorption Y]]|extra=[[Category:Legacy Armor]]}}
{{Infobox/equipmentStat|name=legacy-absorbY|value={{{absorbY|}}}|desc=[[:Category:Legacy Armor|Absorption Y]]|extra=[[Category:Legacy Armor]]}}
|-
|-
{{#if:{{{lpgain|}}}|
{{#if:{{{lpgain|}}}|
Line 195: Line 185:
  {{!}} nowrap {{!}}'''Mental Weight'''
  {{!}} nowrap {{!}}'''Mental Weight'''
  {{!}} colspan=2 {{!}}{{#if:{{{mentalweight|}}}|[[legacy-mentalweight::{{ #iferror:{{ #expr:{{{mentalweight}}} round 2}}| -999 }}]]|?}}
  {{!}} colspan=2 {{!}}{{#if:{{{mentalweight|}}}|[[legacy-mentalweight::{{ #iferror:{{ #expr:{{{mentalweight}}} round 2}}| -999 }}]]|?}}
{{!}}-
{{!}} nowrap {{!}}'''XP Cost'''
{{!}} colspan=2 {{!}}{{#if:{{{expdrain|}}}|[[legacy-expdrain::{{ #iferror:{{ #expr:{{{expdrain}}} round 2}}| -999 }}]]|?}}
  {{!}}-
  {{!}}-
  {{!}} nowrap {{!}}'''[[Legacy:LP|LP]] / Hour (real)'''
  {{!}} nowrap {{!}}'''[[Legacy:LP|LP]] / Hour (real)'''

Latest revision as of 14:47, 17 May 2023

Infobox legmetaobj
Infobox legmetaobj.png
Vital statistics
Size 1 x 1
Go to Legacy Objects


Template documentation (for the template shown above, sometimes hidden or invisible)

... Infobox legmetaobj/Doc ...

General rules:

  • discovery
    • no linking to skills/items already on the template, only extras (as in not used in the process, just needed to discover)
    • no requires:: linking, as that would mess up what is realy needed for what, just plain page link

Auto added categories: (Category: Properties ...)

Other Info

Updated satiation templates So far added 4 possible satiations, format for them is:

|sat1 = name |sat1eff = how much it debuffs |sat1chance = what chance it has to debuff it

Names of the satiations are as per this chart, allowing for expansion on it : http://ringofbrodgar.com/wiki/Food_Satiations

Example plucked straight from the ant pupae page where I tested it :

| sat1 = forage
| sat1eff = 2
| sat1chance = 5
| sat2 = dairy
| sat2eff = 3
| sat2chance = 5