Template:Infobox legmetaobj: Difference between revisions
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: | {| class="infobox boxed" style="font-size:89%; width:320px;" | ||
| | |+ {{Infobox/preview_mode_note}} | ||
! colspan= | ! colspan=4 {{RoB_style|infoboxheader}} | {{{name|{{PAGENAME}}}}} | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
| colspan= | | colspan=4 style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=320 }}<br>''{{{caption| }}}'' | ||
|- | |- | ||
! colspan= | ! colspan=4 {{RoB_style|infoboxsection}} | Vital statistics | ||
|- | |- | ||
| '''[[Legacy:Glossary#Size|Size]]''' | | '''[[Legacy:Glossary#Size|Size]]''' | ||
| colspan= | | colspan=3 | [[legacy-xsize::{{{xsize|1}}}]] x [[legacy-ysize::{{{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= | {{!}} colspan=3 {{!}} {{{skillreq|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{perexp|}}} | {{#if: {{{perexp|}}} | ||
| {{!}} '''Minimum Per*Exp''' | | {{!}} '''Minimum Per*Exp''' | ||
{{!}} colspan= | {{!}} 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= | {{!}} colspan=3 {{!}} {{{terrain}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{objectsreq|}}} | {{#if: {{{objectsreq|}}} | ||
|{{!}} nowrap {{!}} '''[[:Category:Legacy Objects|Object(s)]] Required''' | |{{!}} nowrap {{!}} '''[[:Category:Legacy Objects|Object(s)]] Required''' | ||
{{!}} colspan= | {{!}} colspan=3 {{!}} {{{objectsreq|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{producedby|}}} | {{#if: {{{producedby|}}} | ||
|{{!}} '''Produced By''' | |{{!}} '''Produced By''' | ||
{{!}} colspan= | {{!}} colspan=3 {{!}} {{{producedby|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{{discovery|}}} | {{#if: {{{discovery|}}} | ||
|{{!}} '''Discovery Req.''' | |{{!}} '''Discovery Req.''' | ||
{{!}} colspan= | {{!}} colspan=3 {{!}} {{{discovery|}}} | ||
}} | }} | ||
|- | |- | ||
{{#if: {{# | {{#if: {{{specific|}}} | ||
| {{#set:legacy-specific={{List_normalize|{{{specific}}}}}|+sep=,}}{{List_to_categories|{{{specific}}}}} | |||
{{!}} '''Specific Type of''' | |||
{{#if: {{#show: {{FULLPAGENAME}} | ?legacy-specific | link=none}} | |||
| {{!}} colspan=3 {{!}} {{#show: {{FULLPAGENAME}} | ?legacy-specific}} | |||
| {{!}} colspan=3 {{!}} {{{specific}}} | |||
}} | |||
{{!}}- | |||
}} | |||
{{#ifexpr: {{#ask: [[legacy-requires::{{FULLPAGENAME}}]] OR [[legacy-specific::+]] [[{{FULLPAGENAME}}]] | format=count }} | |||
| {{!}} nowrap {{!}} '''Required By''' | |||
{{!}} colspan=3 {{!}} {{RequiredBy2|{{FULLPAGENAME}}|{{RequiredBy2|specifics|{{FULLPAGENAME}}}}}} | |||
{{!}}- | |||
}} | }} | ||
{{#if: {{ | {{#if:{{{rb2_debug|}}} | ||
| {{!}} nowrap {{!}} '''RB2_debug''' | |||
{{!}} 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:{{{ | |{{#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= | | ! colspan=4 {{RoB_style|infoboxsection}} {{!}} [[Legacy:quality|QL10 Equipment Statistics]]|}} | ||
{{!}}- colspan= | {{!}}- colspan=3 | ||
{{!}} '''[[Legacy:Equipment Screen|Slot(s)]] Occupied''' | {{!}} '''[[Legacy:Equipment Screen|Slot(s)]] Occupied''' | ||
{{!}} [[legacy-slot::{{{slot|}}}]] | {{!}} [[legacy-slot::{{{slot|}}}]] | ||
Line 108: | Line 104: | ||
}} | }} | ||
|- | |- | ||
{{ | {{Infobox/equipmentStat|name=legacy-basedmg|value={{{basedmg|}}}|desc=Damage|extra=[[Category:Legacy Weapons]]}} | ||
|- | |- | ||
{{#if: {{{statSTR|}}} | | {{#if: {{{statSTR|}}} | | ||
Line 165: | Line 161: | ||
}} | }} | ||
|- | |- | ||
{{ | {{Infobox/equipmentStat|name=legacy-absorbX|value={{{absorbX|}}}|desc=[[:Category:Legacy Armor|Absorption X]]|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= | ! 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 {{!}}'''[[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 | ||
|! | |! {{RoB_style|infoboxsection}} width="33%" {{!}} | ||
! | ! {{RoB_style|infoboxsection}} width="33%" {{!}} [[Legacy:FEP|FEP]]s | ||
! | ! {{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= | ! 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= | |||
}} | }} | ||
--> | |||
<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 | |||
---|---|---|---|
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 ...)
- Objects-Legacy: (default added).
- Objects: (default added, Hidden (both Hafen and Legacy use this one)).
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
Visit Template:Infobox legmetaobj/doc to edit this text! (How does this work?)