WIKI IS CURRENTLY UNDER CONSTRUCTION

Difference between revisions of "Template:MonsterInfo template"

From OldSchool RSPS
Jump to navigation Jump to search
Line 2: Line 2:
<!-- Demonic gorilla information side bar, change the text after the style pipe '|' -->
<!-- Demonic gorilla information side bar, change the text after the style pipe '|' -->
<!-- Image markup: '[[File:<filename>.png|pixel size for image|alt text]] -->
<!-- Image markup: '[[File:<filename>.png|pixel size for image|alt text]] -->
{| style="float:right; width: min-content; background-color: #3f3f3f; border: solid 1px #818181; font-size: 14px; margin-left: 15px;"  
{| style="float:right; width: min-content; background-color: #3f3f3f; border: solid 1px #818181; border-collapse: collapse; font-size: 12.24px; margin-left: 15px;"  
| style=" padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | {{{monsterName}}}  
| style=" padding: 10px; font-size: 1.15em; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | {{{monsterName}}}  
|-
|-
| style="padding: 10px;" colspan="2" | [[File:{{{iconDir}}}.png|250px|center]]
| colspan="2" | [[File:{{{iconDir}}}.png|250px|center]]
|- style="display: flex; flex-flow: wrap; justify-content: flex-start; gap: 5px; margin: 5px 0 5px 0;"
|- style="display: flex; flex-flow: wrap; justify-content: flex-start; gap: 5px; margin: 5px 0 5px 0;"
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Combat level
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Combat level
| style="flex-basis: 40%;" | {{{cmbLvl}}}
| style="flex-basis: 40%;" | {{{cmbLvl}}}
| style="flex-basis: 40%; font-weight: bold;  text-align: right;" | Attribute  
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold;  text-align: right;" | Attribute  
| style="flex-basis: 40%;" | {{{npcAttribute}}}
| style="flex-basis: 40%;" | {{{npcAttribute}}}
| style="flex-basis: 40%; font-weight: bold;  text-align: right;" | Max hit  
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold;  text-align: right;" | Max hit  
| style="flex-basis: 40%;" | {{{maxHit}}}
| style="flex-basis: 40%;" | {{{maxHit}}}
| style="flex-basis: 40%; font-weight: bold;  text-align: right;" | Aggressive  
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold;  text-align: right;" | Aggressive  
| style="flex-basis: 40%;" | {{{isAggressive}}}
| style="flex-basis: 40%;" | {{{isAggressive}}}
|-
|-
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | [[File:Slayer.png]] Slayer info  
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | [[File:Slayer.png]] Slayer info  
|- style="display: flex; flex-flow: wrap; justify-content: flex-start; gap: 5px; margin: 5px 0 5px 0;"
|- style="display: flex; flex-flow: wrap; justify-content: flex-start; gap: 5px; margin: 5px 0 5px 0;"
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Slayer level
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Slayer level
| style="flex-basis: 40%;" | {{{slayerLvl}}}
| style="flex-basis: 40%;" | {{{slayerLvl}}}
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Experience
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Experience
| style="flex-basis: 40%;" | {{{Hitpoints}}}
| style="flex-basis: 40%;" | {{{Hitpoints}}}
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Category
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Category
| style="flex-basis: 40%;" | {{{npcAttribute}}}
| style="flex-basis: 40%;" | {{{npcAttribute}}}
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Assigned by
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Assigned by
| style="flex-basis: 40%;" | {{{slayerMaster}}}
| style="flex-basis: 40%;" | {{{slayerMaster}}}
|-
|-
Line 31: Line 31:
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | [[File:Discovery-large.png|23px]] Discovery info
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | [[File:Discovery-large.png|23px]] Discovery info
|- style="display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px; padding: 5px 0 5px 0; background-color: #{{{discoveryColor}}}"
|- style="display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 5px; padding: 5px 0 5px 0; background-color: #{{{discoveryColor}}}"
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Discovery level
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Discovery level
| style="flex-basis: 40%;" | {{{discoveryLvl}}}
| style="flex-basis: 40%;" | {{{discoveryLvl}}}
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Category
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Category
| style="flex-basis: 50%;" | {{{discoveryCat}}}
| style="flex-basis: 50%;" | {{{discoveryCat}}}
|-
|-
Line 41: Line 41:
| {{{Hitpoints}}} || {{{Attack}}}|| {{{Strength}}}|| {{{Defence}}}|| {{{Magic}}}|| {{{Range}}}
| {{{Hitpoints}}} || {{{Attack}}}|| {{{Strength}}}|| {{{Defence}}}|| {{{Magic}}}|| {{{Range}}}
|-
|-
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | [[File:Combat icon.png]] Aggressive stats
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | [[File:Attack icon.png]] Aggressive stats
|- style="display: grid; grid-template-columns: repeat(6, 50px); margin: 5px 0 5px 0; justify-content: center; justify-items: center;"
|- style="display: grid; grid-template-columns: repeat(6, 50px); margin: 5px 0 5px 0; justify-content: center; justify-items: center;"
| [[File:Attack.png]] || [[File:Strength.png]] || [[File:Magic.png]] || [[File:Magic_damage_icon.png|Magic damage]] || [[File:Ranged.png]] || [[File:Ranged_strength_icon.png|Ranged strength]]  
| [[File:Attack.png]] || [[File:Strength.png]] || [[File:Magic.png]] || [[File:Magic_damage_icon.png|Magic damage]] || [[File:Ranged.png]] || [[File:Ranged_strength_icon.png|Ranged strength]]  
Line 53: Line 53:
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | Immunities
| style="padding: 10px; text-align: center; font-weight: bold;  background-color: #2f2f2f;" colspan="2" | Immunities
|- style="display: flex; flex-flow: wrap; justify-content: flex-start; gap: 5px; margin: 5px 0 5px 0;"
|- style="display: flex; flex-flow: wrap; justify-content: flex-start; gap: 5px; margin: 5px 0 5px 0;"
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Poison
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Poison
| style="flex-basis: 40%;" | {{{immunePoison}}}
| style="flex-basis: 40%;" | {{{immunePoison}}}
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Venom
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Venom
| style="flex-basis: 40%;" | {{{immuneVenom}}}
| style="flex-basis: 40%;" | {{{immuneVenom}}}
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Cannons
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Cannons
| style="flex-basis: 40%;" | {{{immuneCannon}}}
| style="flex-basis: 40%;" | {{{immuneCannon}}}
| style="flex-basis: 40%; font-weight: bold; text-align: right;" | Thralls
| style="flex-basis: 40%; padding: 0.2em 0.5em; border-right: 2px solid #2f2f2f; font-weight: bold; text-align: right;" | Thralls
| style="flex-basis: 40%;" | {{{immuneThralls}}}
| style="flex-basis: 40%;" | {{{immuneThralls}}}
|-
|-

Revision as of 19:08, 29 January 2024

{{{monsterName}}}
[[File:{{{iconDir}}}.png|250px|center]]
Combat level {{{cmbLvl}}} Attribute {{{npcAttribute}}} Max hit {{{maxHit}}} Aggressive {{{isAggressive}}}
Slayer.png Slayer info
Slayer level {{{slayerLvl}}} Experience {{{Hitpoints}}} Category {{{npcAttribute}}} Assigned by {{{slayerMaster}}}
Discovery-large.png Discovery info
Discovery level {{{discoveryLvl}}} Category {{{discoveryCat}}}
Combat icon.png Combat stats
Hitpoints.png Attack.png Strength.png Defence.png Magic.png Ranged.png {{{Hitpoints}}} {{{Attack}}} {{{Strength}}} {{{Defence}}} {{{Magic}}} {{{Range}}}
Attack icon.png Aggressive stats
Attack.png Strength.png Magic.png Magic damage Ranged.png Ranged strength +{{{agroAtk}}} +{{{agroStr}}} +{{{agroMage}}} +{{{mageDmg}}} +{{{agroRange}}} +{{{rangeStr}}}
Defence.png Defensive stats
Stab weapons Slash weapons Crush weapons Magic damage Range attacks +{{{Stab}}} +{{{Slash}}} +{{{Crush}}} +{{{mageDef}}} +{{{rangeRef}}}
Immunities
Poison {{{immunePoison}}} Venom {{{immuneVenom}}} Cannons {{{immuneCannon}}} Thralls {{{immuneThralls}}}


This is the template for a monster information summary side bar. To use this you pass in a property to the variable, below is a template you can copy and paste.

NOTE

iconDir will only work with a .png extension on the template.

{{MonsterInfo template
|monsterName=
|iconDir=
|cmbLvl=
|npcAttribute=
|maxHit=
|isAggressive=
|slayerLvl=
|slayerMaster=
|discoveryColor=
|discoveryLvl=
|discoveryCat=
|Hitpoints=
|Attack=
|Strength=
|Defence=
|Magic=
|Range=
|agroAtk=
|agroStr=
|agroMage=
|mageDmg=
|agroRange=
|rangeStr=
|Stab=
|Slash=
|Crush=
|mageDef=
|rangeRef=
|immunePoison=
|immuneVenom=
|immuneCannon=
|immuneThralls=
|}}