Difference between revisions of "Template:Infobox:Creature"
From Istaria Lexica
(some of the links should not be bold when hovered) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly>__NOTOC__{{#if: {{{min level|}}} | {{#set:min level={{{min level}}}}} }}{{#if: {{{min health|}}} | {{#set:min health={{{min health}}}}} }}[[Category:Creature]] | + | <includeonly>__NOTOC__{{#if: {{{min level|}}}|{{#set:min level={{{min level}}}}}}}{{#if:{{{min health|}}}|{{#set:min health={{{min health}}}}}}}[[Category:Creature]] |
{{InfoBoxStart|class=InfoboxCreature|style=width:550px}} | {{InfoBoxStart|class=InfoboxCreature|style=width:550px}} | ||
! colspan="2" | {{PAGENAME}} | ! colspan="2" | {{PAGENAME}} | ||
|- | |- | ||
− | | style="width: 250px; vertical-align: {{#if:{{{image|}}} | top | {{ | + | | style="width: 250px; vertical-align: {{#if:{{{image|}}}|top|{{Exists|page=File:{{PAGENAME}}.jpg|then=top|else=middle}}}}; border-right: 1px solid #525252" | |
− | {{ | + | {{InfoboxScreenshot|image={{{image|}}}|width=250px}} |
| | | | ||
{| class="InfoboxCreature-data" | {| class="InfoboxCreature-data" | ||
|- | |- | ||
− | | style="text-align: left" | <p id="tooltip" title="Displays the level of the creature. This is an average value since most creatures in Istaria have a certain level range."><u>Level:</u></p><p id="bigstats">{{InfoboxLevelColoriser|{{Average|{{{min level|}}}|{{{max level|}}}}} }}</p> | + | | style="text-align: left" | <p id="tooltip" title="Displays the level of the creature. This is an average value since most creatures in Istaria have a certain level range."><u>Level:</u></p><p id="bigstats">{{InfoboxLevelColoriser|{{Average|{{{min level|}}}|{{{max level|}}}}}}}</p> |
− | | style="text-align: left" | <p id="tooltip" title="Displays the health of the creature. This is an average value since most creatures in Istaria have a certain health range."><u>Health:</u></p><p id="bigstats">{{#if: {{{min health|}}} | <span style="font-size:0.5em">±</span>{{Average|{{{min health|}}}|{{{max health|}}}}} }}</p> | + | | style="text-align: left" | <p id="tooltip" title="Displays the health of the creature. This is an average value since most creatures in Istaria have a certain health range."><u>Health:</u></p><p id="bigstats">{{#if:{{{min health|}}}|<span style="font-size:0.5em">±</span>{{Average|{{{min health|}}}|{{{max health|}}}}}}}</p> |
|- | |- | ||
| School: | | School: | ||
− | | {{#if: {{{school|}}} | {{{school}}}{{#set:school={{{school}}}}} }} | + | | {{#if:{{{school|}}}|{{{school}}}{{#set:school={{{school}}}}}}} |
|- | |- | ||
− | {{InfoboxTierColoriser|tier={{{tier|}}}}}{{#if:{{{tier|}}}|{{#set:tier={{{tier|}}}}} }} | + | {{InfoboxTierColoriser|tier={{{tier|}}}}}{{#if:{{{tier|}}}|{{#set:tier={{{tier|}}}}}}} |
|- | |- | ||
| style="border-top: 1px solid #525252;" | Creature Type: | | style="border-top: 1px solid #525252;" | Creature Type: | ||
− | | style="border-top: 1px solid #525252;" | {{#if: {{{creature type|}}} | [[:Category:{{{creature type}}}|{{{creature type}}}]][[Category:{{{creature type}}}]]}} | + | | style="border-top: 1px solid #525252;" | {{#if:{{{creature type|}}}|[[:Category:{{{creature type}}}|{{{creature type}}}]][[Category:{{{creature type}}}]]}} |
|- | |- | ||
| Attack Types: | | Attack Types: | ||
− | | {{#if: {{{attack type|}}} | {{{attack type}}}}} | + | | {{#if:{{{attack type|}}}|{{{attack type}}}}} |
|- | |- | ||
| <p id="tooltip" title="Whether the creature attacks you on sight.">Attacks on sight:</p> | | <p id="tooltip" title="Whether the creature attacks you on sight.">Attacks on sight:</p> | ||
− | | {{#if: {{{attacks on sight|}}} | <p id="tooltip" title="Whether the creature attacks you on sight.">{{#switch:{{lc:{{{attacks on sight}}}}} | + | | {{#if:{{{attacks on sight|}}}|<p id="tooltip" title="Whether the creature attacks you on sight.">{{#switch:{{lc:{{{attacks on sight}}}}} |
| yes = [[File:Check.png|Creature does aggro when passing by.|link=]] | | yes = [[File:Check.png|Creature does aggro when passing by.|link=]] | ||
| no = [[File:NoCheck.png|Creature does not aggro when passing by.|link=]] | | no = [[File:NoCheck.png|Creature does not aggro when passing by.|link=]] | ||
Line 30: | Line 30: | ||
|- | |- | ||
| style="border-bottom: 1px solid #525252;" | <p id="tooltip" title="Whether the creature drags it's friends on aggro or stays alone.">Is social:</p> | | style="border-bottom: 1px solid #525252;" | <p id="tooltip" title="Whether the creature drags it's friends on aggro or stays alone.">Is social:</p> | ||
− | | style="border-bottom: 1px solid #525252;" | {{#if: {{{is social|}}} | <p id="tooltip" title="Whether the creature drags it's companions to attack you.">{{#switch:{{lc:{{{is social}}}}} | + | | style="border-bottom: 1px solid #525252;" | {{#if:{{{is social|}}}|<p id="tooltip" title="Whether the creature drags it's companions to attack you.">{{#switch:{{lc:{{{is social}}}}} |
| yes = [[File:Check.png|Creature does aggro companions to fight you.|link=]] | | yes = [[File:Check.png|Creature does aggro companions to fight you.|link=]] | ||
| no = [[File:NoCheck.png|Creature does not aggro companions to fight you.|link=]] | | no = [[File:NoCheck.png|Creature does not aggro companions to fight you.|link=]] | ||
Line 37: | Line 37: | ||
|- | |- | ||
| <p id="tooltip" title="What is the creature totally immune to.">Immunities:</p> | | <p id="tooltip" title="What is the creature totally immune to.">Immunities:</p> | ||
− | | <p title="What is the creature totally immune to.">{{#if: {{{immune|}}} | {{{immune}}}}}</p> | + | | <p title="What is the creature totally immune to.">{{#if:{{{immune|}}}|{{{immune}}}}}</p> |
|- | |- | ||
| <p id="tooltip" title="What is the creature resistant to.">Resistances:</p> | | <p id="tooltip" title="What is the creature resistant to.">Resistances:</p> | ||
− | | <p title="What is the creature resistant to.">{{#if: {{{resistant|}}} | {{{resistant}}}}}</p> | + | | <p title="What is the creature resistant to.">{{#if:{{{resistant|}}}|{{{resistant}}}}}</p> |
|- | |- | ||
| <p id="tooltip" title="What is the creature weak to.">Weaknesses:</p> | | <p id="tooltip" title="What is the creature weak to.">Weaknesses:</p> | ||
− | | <p title="What is the creature weak to.">{{#if: {{{weakness|}}} | {{{weakness}}}}}</p> | + | | <p title="What is the creature weak to.">{{#if:{{{weakness|}}}|{{{weakness}}}}}</p> |
|- | |- | ||
− | {{#if: {{{resources|}}} | | + | {{#if:{{{resources|}}}| |
{{!}} Provides Resources: | {{!}} Provides Resources: | ||
− | {{!}} {{{resources}}} }} | + | {{!}} {{{resources}}}}} |
|- | |- | ||
− | | colspan="2" style="border-top: 1px solid #525252; text-align: center; padding-bottom: 4px" | <span style="font-size: 11px">Coordinates:</span><br/><span style="font-size: 20px; font-weight: bold">{{#if: {{{x|}}} | {{{x}}}{{#set:x={{{x}}}}} | ?}} / {{#if: {{{y|}}} | {{{y}}}{{#set:y={{{y}}}}} | ?}}</span><hr style="border-bottom: 1px solid #696969; width: 20%; margin: 5px auto; background-color: transparent;" /><div style="font-size: 12px">istariareference.com:<br /> | + | | colspan="2" style="border-top: 1px solid #525252; text-align: center; padding-bottom: 4px" | <span style="font-size: 11px">Coordinates:</span><br/><span style="font-size: 20px; font-weight: bold">{{#if:{{{x|}}}|{{{x}}}{{#set:x={{{x}}}}}|?}} / {{#if:{{{y|}}}|{{{y}}}{{#set:y={{{y}}}}}|?}}</span><hr style="border-bottom: 1px solid #696969; width: 20%; margin: 5px auto; background-color: transparent;" /><div style="font-size: 12px">istariareference.com:<br /> |
− | [http://istariareference.com/istariamap.asp?type=Monster&search={{PAGENAMEE}} Locate ''{{PAGENAME}}'' on map]{{#if: {{{x|}}} | {{#if: {{{y|}}} | <br />[http://istariareference.com/istariamap.asp?search={{{x}}}/{{{y}}}&loc={{{x}}},{{{y}}} View the coordinate's area on map]}}}}</div> | + | [http://istariareference.com/istariamap.asp?type=Monster&search={{PAGENAMEE}} Locate ''{{PAGENAME}}'' on map]{{#if:{{{x|}}}|{{#if:{{{y|}}}|<br />[http://istariareference.com/istariamap.asp?search={{{x}}}/{{{y}}}&loc={{{x}}},{{{y}}} View the coordinate's area on map]}}}}</div> |
|} | |} | ||
{{InfoboxEnd}}</includeonly><noinclude>{{Clr}}{{documentation}}[[Category:Infobox Templates]]</noinclude> | {{InfoboxEnd}}</includeonly><noinclude>{{Clr}}{{documentation}}[[Category:Infobox Templates]]</noinclude> |
Revision as of 14:18, 8 July 2022
Template documentation (for the template shown above, sometimes hidden or invisible)
Description[edit]
A Brief summary about a creature.
- Try out this template in your sandbox
- Find pages using this template
- The available creature types are listed here.
- provides the following stats as SMW property: min health, min level, max health, max level, school, resource, x, y, tier
- uses: Template:InfoboxMultiproperty
Template:InfoboxMultiproperty parameters[edit]
{{InfoboxMultiproperty | property = the property name to be set (ex. Loot, School, Race) | limiter = a limiter for every entry. Default to comma, may also use html stuff like <br /> | value1 the first value to be set | value2 the second value to be set | valueN.. the N-th value to be set, repeat until you're done }}
Syntax[edit]
{{Infobox:Creature | image = | creature type = | school = | attacks on sight = | is social = | min level = | min health = | max level = | max health = | attack type = | weakness = | immune = | resistant = | x = | y = | resources = {{InfoboxMultiproperty|property=resource|value1|value2|...}} | tier = }}
Parameters[edit]
{{Infobox:Creature | image = Specify an image to be used alternatively. Used for backward compatibility. | creature type = The type of the creature. Please refer to the list mentioned above. | school = The school of the creature, as specified in-game ("Ice Ogre", "Saris Ranger", etc.). Provide as a link. | attacks on sight = Does the creature attack on sight? Possible values are: empty | yes | no | is social = Does the creature drag other creatures on aggro? Possible values are: empty | yes | no | min level = The minimum level of the creature. Integer only! | min health = The minimum health of the creature. Integer only! | max level = The maximum level of the creature. Integer only! | max health = The maximum health of the creature. Integer only! | attack type = The attack types of the creature. Use comma separated links (i.e. [[Flame]], [[Slash]], ...) | weakness = The attack types the creature is weak to. Use comma separated links (i.e. [[Flame]], [[Slash]], ...). | immune = The attack types the creature is immune to.Use comma separated links (i.e. [[Flame]], [[Slash]], ...). | resistant = The attack types the creature is resistant to. Use comma separated links (i.e. [[Flame]], [[Slash]], ...). | x = The ingame latitude location | y = The ingame longitude location | resources = If creature is harvestable, provide the available resources here. Use Template:InfoboxMultiproperty as mentioned above. | tier = Tier of the creature. }}
Example[edit]
{{Infobox:Creature | image = Bessie.jpg | creature type = Named Creature | school = [[Lava Crab]] | attacks on sight = yes | is social = no | min level = 81 | min health = 4120 | max level = 99 | max health = 10787 | attack type = [[Crush]] | weakness = [[Crush]], [[Ice]] | immune = [[Flame]] | resistant = [[Pierce]] | x = 25232 | y = 31453 | resources = {{InfoboxMultiproperty|property=resource|Hide|Meat}} | tier = 3 }}
Visit Template:Infobox:Creature/doc to edit this text. (How to: document correctly)