Template:Infobox creature: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
(Adding armor value to infobox creature)
(+Table width 300px, +Boxmode, +First column width 90px. (+wiki format to html)))
Line 1: Line 1:
<includeonly
<includeonly


>{| class="infobox" style="font-size:89%; width:250px;"
>{| class="infobox boxed" style="font-size:89%; width:300px;"
|+ {{#if:{{REVISIONID}}
|+ {{#if:{{REVISIONID}}
|
|
Line 11: Line 11:
">Infobox Preview Mode:<br>Property Changes Not Shown.}}</span>
">Infobox Preview Mode:<br>Property Changes Not Shown.}}</span>


! colspan="2" {{RoB_style|infoboxheader}} |  {{{name|{{PAGENAME}}}}}
! colspan="2" | {{{name|{{PAGENAME}}}}}
|- style="text-align:center;"
|- style="text-align:center;"
| colspan="2" style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=320 }}<br/>''{{{caption| }}}''
| colspan="2" style="padding:0.5em;" | {{Page-image-name-processing | image={{{image|}}} | imagewidth={{{imagewidth|}}} | maxsize=320 }}<br/><i>{{{caption|}}}</i>
|-
|-
! colspan="2" {{RoB_style|infoboxsection}} | Vital statistics
| style="width:90px; padding:0; border:0;" |<!--above image might work best, but ... needs common css adjustment(rethink)-->
|-
! colspan="2" {{RoB_style|infoboxsection}} |
|-
|-
{{#if: {{{baseq|}}}
{{#if: {{{baseq|}}}
| {{!}}'''Base-Quality'''
| {{!}} <b>Base-Quality</b>
   {{!}} {{{baseq}}}
   {{!}} {{{baseq}}}
   {{!}}-
   {{!}}-
}}
}}
{{#if: {{{hp|}}}
{{#if: {{{hp|}}}
| {{!}}'''Hitpoints'''
| {{!}}<b>Hitpoints</b>
   {{!}} {{{hp}}}
   {{!}} {{{hp}}}
   {{!}}-
   {{!}}-
}}
}}
{{#if: {{{fhp|}}}
{{#if: {{{fhp|}}}
| {{!}}'''Fleeing-Hitpoints'''
| {{!}}<b>Fleeing-Hitpoints</b>
   {{!}} {{{fhp}}}
   {{!}} {{{fhp}}}
   {{!}}-
   {{!}}-
}}
}}
{{#if: {{{armor|}}}
{{#if: {{{armor|}}}
| {{!}}'''Armor'''
| {{!}}<b>Armor</b>
   {{!}} {{{armor}}}
   {{!}} {{{armor}}}
   {{!}}-
   {{!}}-
}}
}}
{{#if: {{{loot|}}}
{{#if: {{{loot|}}}
| {{!}}'''Creature-Products'''
| {{!}}<b>Creature-Products</b>
   {{!}} {{{loot}}}
   {{!}} {{{loot}}}
   {{!}}-
   {{!}}-
}}
}}
{{#if: {{#ask: [[category:creatures]] [[{{PAGENAME}}]]}}
{{#if: {{#ask: [[category:creatures]] [[{{PAGENAME}}]]}}
| {{!}}'''[[Terrain]]&nbsp;{{#info:This data is specified at the individual Terrain pages.|note}}'''
| {{!}}<b>[[Terrain]]&nbsp;{{#info:This data is specified at the individual Terrain pages.|note}}</b>
   {{!}} {{#if: {{#ask:[[terrain_fauna::{{PAGENAME}}]]}} | {{#ask:[[terrain_fauna::{{PAGENAME}}]]}} | <span style="color:gray;">(<i>None</i>)</span> }}
   {{!}} {{#if: {{#ask:[[terrain_fauna::{{PAGENAME}}]]}} | {{#ask:[[terrain_fauna::{{PAGENAME}}]]}} | <span style="color:gray;">(<i>None</i>)</span> }}
   {{!}}-
   {{!}}-
}}
}}
|-
! colspan="2" | Back to [[:Category:Creatures|Creatures]]
|}
|}
{{#ifeq:{{NAMESPACE}}|{{ns:10}}| |
{{#ifeq:{{NAMESPACE}}|{{ns:10}}| |
[[Category:Creatures|{{PAGENAME}}]]
[[Category:Creatures|{{PAGENAME}}]]
        {{#set:object_type=creature}}
{{#set:Test_Text_1={{List_normalize|{{{name|}}}!{{{image|}}}!{{{imagewidth|}}}!{{{caption|}}}!{{{baseq|}}}!{{{hp|}}}!{{{fhp|}}}!{{{loot|}}}!{{{terrain|}}}!{{{location|}}}!{{{xsize|}}}!{{{ysize|}}}}}}}
{{#set:Test_Text_1={{List_normalize|{{{name|}}}!{{{image|}}}!{{{imagewidth|}}}!{{{caption|}}}!{{{baseq|}}}!{{{hp|}}}!{{{fhp|}}}!{{{loot|}}}!{{{terrain|}}}!{{{location|}}}!{{{xsize|}}}!{{{ysize|}}}}}}}
}}</includeonly
}}</includeonly
Line 68: Line 73:
| loot = {{{loot}}}
| loot = {{{loot}}}
}}
}}
<br style="clear:both;" />{{documentation}}
<br style="clear:both;" />{{documentation}}</noinclude>
</noinclude>

Revision as of 13:25, 20 March 2020

{{{name}}}
[[ {{{image}}}|frameless|320x320px ]]
{{{caption}}}
Base-Quality {{{baseq}}}
Hitpoints {{{hp}}}
Fleeing-Hitpoints {{{fhp}}}
Armor {{{armor}}}
Creature-Products {{{loot}}}
Back to Creatures


Template documentation (for the template shown above, sometimes hidden or invisible)
Example result
Infobox creature.png
image caption
Base-Quality 12
Hitpoints 321
Fleeing-Hitpoints 123
Creature-Products Fresh Mouflon Hide, Intestines, Entrails x3, Raw Mutton x6, Bone Material x3
Back to Creatures


Description
This template is used to create a creature infobox on creature pages.


Basic syntax
Type {{infobox creature|...}} at the top of the page. Available parameters shown below.


Parameters
{{infobox creature

    General infobox parameters. Should only be used when needed or appropriate.
| name        = Infobox Title (defaults to related page-name)
| image       = File:Example.ext (defaults to "...")
| imagewidth  = 123 (To resize image if needed. Capped to a maximum of 350)
| caption     = text (Concise infobox-image caption text if needed)

| ptext1      = In-game/paginae text (type1). -- If any.

    Creature parts. (if applicable. ie: they do not apply all to all creatures)
| baseq       = 25
| deadly      = yes/no (bool-property)
| hp          = 200
| fhp         = 120
| armor       = 50
| loot        = [[Fresh Mouflon Hide]], [[Intestines]], [[Entrails]] x3, [[Raw Mutton]] x6, [[Bone Material]] x3

    Outdated parts.
| location       = (Input moved and renamed! Creature related terrain data can be added on the related terrain pages)
}}


Properties


Categories