Template:Infobox legmetaobj: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(fixup - legacy properiesy - saving (reading part pending))
m (Text replacement - "InfoboxEquipmentStat" to "Infobox/equipmentStat")
 
(17 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;"
|-
|+ {{Infobox/preview_mode_note}}
! colspan="3" style="background-color:#3366CC; color:#ffffff; font-size:120%; padding:1em;" | {{{name|{{PAGENAME}}}}}
! colspan=4 {{RoB_style|infoboxheader}} | {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
|- style="text-align:center;"
| colspan="3" 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="3" style="background-color:#3366CC; color:#ffffff;" | Vital statistics
! colspan=4 {{RoB_style|infoboxsection}} | Vital statistics
|-
|-
| '''[[Legacy:Glossary#Size|Size]]'''
| '''[[Legacy:Glossary#Size|Size]]'''
| colspan=2 | [[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|}}}
  |{{!}} nowrap {{!}} '''[[Legacy:Skills|Skill(s)]] Required'''
  |{{!}} nowrap {{!}} '''[[Legacy:Skills|Skill(s)]] Required'''
   {{!}} colspan=2 {{!}} {{{skillreq|}}}
   {{!}} colspan=3 {{!}} {{{skillreq|}}}
}}
}}
|-
|-
{{#if: {{{perexp|}}}
{{#if: {{{perexp|}}}
  | {{!}} '''Minimum Per*Exp'''
  | {{!}} '''Minimum Per*Exp'''
   {{!}} colspan=2 {{!}} [[legacy-perexp::{{{perexp}}}]]
   {{!}} colspan=3 {{!}} [[legacy-perexp::{{{perexp}}}]]
   {{!}} [[legacy-perexp_base::{{ #iferror: {{ #expr: {{{perexp}}}*2  round 2 }} |0}}| ]]
   {{!}} [[legacy-perexp_base::{{ #iferror: {{ #expr: {{{perexp}}}*2  round 2 }} |0}}| ]]
   {{!}} [[legacy-perexp_quad::{{ #iferror: {{ #expr: {{{perexp}}}*4  round 2 }} |0}}| ]]
   {{!}} [[legacy-perexp_quad::{{ #iferror: {{ #expr: {{{perexp}}}*4  round 2 }} |0}}| ]]
Line 30: Line 28:
{{#if:{{{terrain|}}}
{{#if:{{{terrain|}}}
  | {{!}} '''Terrain'''
  | {{!}} '''Terrain'''
   {{!}} colspan=2 {{!}} {{{terrain}}}
   {{!}} colspan=3 {{!}} {{{terrain}}}
}}
}}
|-
|-
{{#if: {{{objectsreq|}}}
{{#if: {{{objectsreq|}}}
  |{{!}} nowrap {{!}} '''[[:Category:Legacy Objects|Object(s)]] Required'''
  |{{!}} nowrap {{!}} '''[[:Category:Legacy Objects|Object(s)]] Required'''
   {{!}} colspan=2 {{!}} {{{objectsreq|}}}
   {{!}} colspan=3 {{!}} {{{objectsreq|}}}
}}
}}
|-
|-
{{#if: {{{producedby|}}}
{{#if: {{{producedby|}}}
  |{{!}} '''Produced By'''
  |{{!}} '''Produced By'''
   {{!}} colspan=2 {{!}} {{{producedby|}}}
   {{!}} colspan=3 {{!}} {{{producedby|}}}
}}
}}
|-
|-
{{#if: {{{discovery|}}}
{{#if: {{{discovery|}}}
  |{{!}} '''Discovery Req.'''
  |{{!}} '''Discovery Req.'''
   {{!}} colspan=2 {{!}} {{{discovery|}}}
   {{!}} colspan=3 {{!}} {{{discovery|}}}
}}
}}
|-
|-
{{#if: {{#ask: [[legacy-requires::{{PAGENAME}}]]}}  
{{#if: {{{specific|}}}
| {{#if: {{#show: {{PAGENAME}} | ?legacy-specific | link=none}}
| {{#set:legacy-specific={{List_normalize|{{{specific}}}}}|+sep=,}}{{List_to_categories|{{{specific}}}}}
    | {{!}} '''Required By'''
  {{!}} '''Specific Type of'''
      {{!}} colspan=2 {{!}} {{#ask: [[legacy-requires::{{PAGENAME}}]]}}, and {{#ask: [[legacy-requires::{{#show: {{PAGENAME}} | ?legacy-specific | link=none}}]]}}
  {{#if: {{#show: {{FULLPAGENAME}} | ?legacy-specific | link=none}}
      {{!}}-
  | {{!}} colspan=3 {{!}} {{#show: {{FULLPAGENAME}} | ?legacy-specific}}
    | {{!}} '''Required By'''
  | {{!}}  colspan=3 {{!}} {{{specific}}}
      {{!}}  colspan=2 {{!}} {{#ask: [[legacy-requires::{{PAGENAME}}]]}}
  }}
      {{!}}-
  {{!}}-
  }}
}}
| {{#if: {{#show: {{PAGENAME}} | ?legacy-specific | link=none}}
{{#ifexpr: {{#ask: [[legacy-requires::{{FULLPAGENAME}}]] OR [[legacy-specific::+]] [[{{FULLPAGENAME}}]] | format=count }}
    | {{!}} '''Required By'''
| {{!}} nowrap {{!}} '''Required By'''
      {{!}} colspan=2 {{!}} {{#ask:[[legacy-requires::{{#show: {{PAGENAME}} | ?legacy-specific | link=none}}]]}}
  {{!}} colspan=3 {{!}} {{RequiredBy2|{{FULLPAGENAME}}|{{RequiredBy2|specifics|{{FULLPAGENAME}}}}}}
      {{!}}-
  {{!}}-
  }}
}}
}}
{{#if: {{#show: {{PAGENAME}} | ?legacy-specific | link=none}}
{{#if:{{{rb2_debug|}}}
| {{!}} '''Specific Type of'''
| {{!}} nowrap {{!}} '''RB2_debug'''
  {{!}} colspan=2 {{!}} {{#show: {{PAGENAME}} | ?legacy-specific}}
  {{!}} colspan=3 {{!}} {{RequiredBy2|{{FULLPAGENAME}}|{{RequiredBy2|specifics|{{FULLPAGENAME}}}}}}
  {{!}}-
  {{!}}-
}}
}}
|-
{{#if: {{{hunger|}}}
{{#if: {{{hunger|}}}
| {{!}} '''[[Legacy:Hunger]] Filled'''
| {{!}} '''[[Legacy:Hunger|Hunger]] Filled'''
   {{!}} [[legacy-hunger::{{{hunger}}}]]
   {{!}} [[legacy-hunger::{{{hunger}}}]]
   [[Category:Legacy Foods]]
   [[Category:Legacy Foods]]
Line 100: Line 96:
|-
|-
{{#if: {{{slot|}}}
{{#if: {{{slot|}}}
  |{{#ifeq: {{#if:{{{legbasedmg|}}}|1|{{#if:{{{statSTR|}}}|1|{{#if:{{{statAGI|}}}|1|{{#if:{{{statINT|}}}|1|{{#if:{{{statCON|}}}|1|{{#if:{{{statPER|}}}|1|{{#if:{{{statCHA|}}}|1|{{#if:{{{statDEX|}}}|1|{{#if:{{{statPSY|}}}|1|{{#if:{{{cskill|}}}|1|{{#if:{{{ammoreq|}}}|1|{{#if:{{{ahp|}}}|1|{{#if:{{{absorbX|}}}|1|{{#if:{{{absorbY|}}}|1|0}}}}}}}}}}}}}}}}}}}}}}}}}}}}|1
  |{{#ifeq: {{#if:{{{basedmg|}}}|1|{{#if:{{{statSTR|}}}|1|{{#if:{{{statAGI|}}}|1|{{#if:{{{statINT|}}}|1|{{#if:{{{statCON|}}}|1|{{#if:{{{statPER|}}}|1|{{#if:{{{statCHA|}}}|1|{{#if:{{{statDEX|}}}|1|{{#if:{{{statPSY|}}}|1|{{#if:{{{cskill|}}}|1|{{#if:{{{ammoreq|}}}|1|{{#if:{{{ahp|}}}|1|{{#if:{{{absorbX|}}}|1|{{#if:{{{absorbY|}}}|1|0}}}}}}}}}}}}}}}}}}}}}}}}}}}}|1
  | ! colspan="3" style="background-color:#6699ff; color:#ffffff;" {{!}} [[Legacy:quality|QL10 Equipment Statistics]]|}}
  | ! colspan=4 {{RoB_style|infoboxsection}} {{!}} [[Legacy:quality|QL10 Equipment Statistics]]|}}
   {{!}}- colspan=2
   {{!}}- colspan=3
   {{!}} '''[[Legacy:Equipment Screen|Slot(s)]] Occupied'''
   {{!}} '''[[Legacy:Equipment Screen|Slot(s)]] Occupied'''
   {{!}} [[legacy-slot::{{{slot|}}}]]
   {{!}} [[legacy-slot::{{{slot|}}}]]
Line 108: Line 104:
}}
}}
|-
|-
{{InfoboxEquipmentStat|name=legbasedmg|value={{{legbasedmg|}}}|desc=Damage|extra=[[Category:Legacy Weapons]]}}
{{Infobox/equipmentStat|name=legacy-basedmg|value={{{basedmg|}}}|desc=Damage|extra=[[Category:Legacy Weapons]]}}
|-
|-
{{#if: {{{statSTR|}}} |
{{#if: {{{statSTR|}}} |
Line 165: Line 161:
}}
}}
|-
|-
{{InfoboxEquipmentStat|name=legacy-legabsorbX|value={{{legabsorbX|}}}|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-legabsorbY|value={{{legabsorbY|}}}|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 179: Line 175:
  }}
  }}
  {{!}}-
  {{!}}-
  ! colspan="3" style="background-color:#3366CC; color:#ffffff;" {{!}} Study details
  ! colspan=4 {{RoB_style|infoboxsection}} {{!}} Study details
  {{!}}-
  {{!}}-
  {{!}} nowrap {{!}} '''Base [[Legacy:LP|LP]]'''
  {{!}} nowrap {{!}} '''Base [[Legacy:LP|LP]]'''
Line 189: 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)'''
Line 207: Line 200:
|-
|-
{{#ifeq: {{ #expr: {{#iferror:{{#expr:{{{str}}}}}|0}}+{{#iferror:{{#expr:{{{agi}}}}}|0}}+{{#iferror:{{#expr:{{{int}}}}}|0}}+{{#iferror:{{#expr:{{{con}}}}}|0}}+{{#iferror:{{#expr:{{{per}}}}}|0}}+{{#iferror:{{#expr:{{{cha}}}}}|0}}+{{#iferror:{{#expr:{{{dex}}}}}|0}}+{{#iferror:{{#expr:{{{psy}}}}}|0}}+{{#iferror:{{#expr:{{{hurt}}}}}|0}} and 1 }}|1
{{#ifeq: {{ #expr: {{#iferror:{{#expr:{{{str}}}}}|0}}+{{#iferror:{{#expr:{{{agi}}}}}|0}}+{{#iferror:{{#expr:{{{int}}}}}|0}}+{{#iferror:{{#expr:{{{con}}}}}|0}}+{{#iferror:{{#expr:{{{per}}}}}|0}}+{{#iferror:{{#expr:{{{cha}}}}}|0}}+{{#iferror:{{#expr:{{{dex}}}}}|0}}+{{#iferror:{{#expr:{{{psy}}}}}|0}}+{{#iferror:{{#expr:{{{hurt}}}}}|0}} and 1 }}|1
|! style="background-color:#6699ff" width="33%" {{!}}
|! {{RoB_style|infoboxsection}} width="33%" {{!}}
  ! style="background-color:#6699ff; color:#ffffff;" width="33%" {{!}} [[Legacy:FEP|FEP]]s
  ! {{RoB_style|infoboxsection}} width="33%" {{!}} [[Legacy:FEP|FEP]]s
  ! style="background-color:#6699ff; color:#ffffff;" width="33%" {{!}} % of Total
  ! {{RoB_style|infoboxsection}} width="33%" {{!}} % of Total
  {{!}}-
  {{!}}-
  {{!}} style="background-color:#e69999" {{!}} '''[[Legacy:STR|STR]]'''
  {{!}} style="background-color:#e69999" {{!}} '''[[Legacy:STR|STR]]'''
Line 258: Line 251:
}}
}}
|-
|-
! colspan="3" style="background-color:#aaaaaa; color:#000000;" | Go to [[:Category:Legacy Objects|Legacy Objects]]
! colspan=4 {{RoB_style|infoboxfoother}} | Go to [[:Category:Legacy Objects|Legacy Objects]]
|}
|}
{{#ifeq:{{NAMESPACE}}|{{ns:10}}| |
{{#ifeq:{{NAMESPACE}}|{{ns:10}}| |
[[Category:Legacy Objects|{{PAGENAME}}]]
[[Category:Legacy Objects|{{PAGENAME}}]]
[[Category:Legacy-infobox-all-pages|{{PAGENAME}}]]
[[Category:Legacy-infobox-all-pages|{{PAGENAME}}]]
}}</includeonly
><noinclude>
{{{{PAGENAME}} }}
<!-- Debug --
|{{{{PAGENAME}}
|image=
|imagewidth=
|caption=
|xsize=123
|ysize=123
|skillreq=
|perexp=
|terrain=
|objectsreq=
|producedby=
|discovery=
|specific=
|repwith=
|lift=
|sthp=
|soak=
|basedmg=
|statSTR=
|statAGI=
|statINT=
|statCON=
|statPER=
|statCHA=
|statDEX=
|statPSY=
|cskill=
|ammoreq=
|ahp=
|absorbX=
|absorbY=
|slot=
|ccrafted=
|lpgain=
|studytime=
|mentalweight=
|expdrain=
|str=
|agi=
|int=
|con=
|per=
|cha=
|dex=
|psy=
|hunger=
|hurt=
}}
}}
</includeonly><noinclude>
-->
{{ {{PAGENAME}}}}
<br style="clear:both;" />{{documentation}}
<br style="clear:both;" />{{documentation}}
[[Category:Legacy Template]]
[[Category:Legacy Template]]
</noinclude>
</noinclude>

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