The Adventures of Tree Wiki
Line 1: Line 1:
 
{| class="infoboxtable"
 
{| class="infoboxtable"
 
|-
 
|-
! colspan="2" class="infoboxname" | {{{name}}}
+
! colspan="2" class="infoboxname" | "{{{name}}}"
|-style="text-align:center"
 
| colspan="2" style="padding:0.5em;" | [[File:{{{image}}}|{{#if: {{{size|}}} |{{{size}}|110px}}]]{{#if: {{{caption|}}} |<br>''{{{caption}}}'' }}
 
 
|-
 
|-
  +
{{#if: {{{image|}}} | ! colspan="2" {{!}} [[File:{{{image}}}{{!}}{{{size|250x250px}}}]] | ! colspan="2" {{!}} ''No image yet''{{#ifeq: {{NAMESPACE}} | Template | | <includeonly>[[Category:Infoboxes lacking images]]</includeonly>}} }}
! colspan="2" class="infoboxname infoboxdetails" | Description
 
 
|-
 
|-
 
! colspan="2" class="infoboxdetails" | Details
{{#if: {{{health|}}} | {{!}} width=80 {{!}} <div>Health</div> {{!!}} {{{health}}} }}
 
 
|-
 
|-
{{#if: {{{defence|}}} | {{!}} <div>Defence</div> {{!!}} {{{defence}}} }}
+
{{#if: {{{race|}}} | {{!}} width=80 {{!}} <div>Race</div> {{!!}} {{{race}}} }}
 
|-
 
|-
{{#if: {{{damage|}}} | {{!}} <div>Attack&nbsp;Damage</div> {{!!}} {{{damage}}} }}
+
{{#if: {{{location|}}} | {{!}} <div>Location(s)</div> {{!!}} {{{location}}} }}
 
|-
 
|-
{{#if: {{{range|}}} | {{!}} <div>Attack&nbsp;Range</div> {{!!}} {{{range}}} }}
+
{{#if: {{{source|}}} | {{!}} <div>Source</div> {{!!}} {{{source}}} }}
  +
|-
|}<noinclude>
 
 
{{#if: {{{reward|}}} | {{!}} <div>Reward</div> {{!!}} {{{reward}}} }}
This is an infobox template for creatures and items appearing in [[The Adventures of Tree]].
 
  +
|-
 
  +
{{#if: {{{related|}}} | {{!}} <div>Related</div> {{!!}} {{{related}}} }}
== Usage ==
 
  +
|-
<pre>{{Infobox
 
  +
{{#if: {{{ID|}}} | {{!}} <div>ID</div> {{!!}} {{{ID}}} }}
| name =
 
 
|}<noinclude>{{clear}}{{doc}}
| image =
 
 
[[Category:Infobox templates]]</noinclude>
| size =
 
| caption =
 
| health =
 
| defence =
 
| damage =
 
| range =
 
}}</pre>
 
 
==Example==
 
<pre>{{Infobox
 
| name = Spidy
 
| image = 0002.png
 
| caption =
 
| size =
 
| health = 50
 
| defence = 0
 
| damage = 10
 
| range = 1
 
}}</pre>
 
 
{{Infobox
 
| name = Spidy
 
| image = 0002.png
 
| health = 50
 
| defence = 0
 
| damage = 10
 
| range = 1
 
}}
 
 
[[Category:Infobox templates|{{PAGENAME}}]]</noinclude>
 

Revision as of 13:32, 14 October 2016

"{{{name}}}"
No image yet
Details
Template-info.png Documentation

This is just a generic infobox with a few sample fields

Usage

{{Infobox
| name     = 
| image    = 
| size     = //optional, default is 250x250px
| race     = 
| location = 
| source   = 
| reward   = 
| related  = 
| ID       =
}}

Example

"Hydra guy"
Curse hydra.png
Details
Race
Plushie
Location(s)
Curse Headquarters
Source
Encredechine
Related
Fun
{{Infobox
| name     = Hydra guy
| image    = Curse hydra.png
| race     = Plushie
| location = Curse Headquarters
| source   = [[User:Encredechine{{!}}Encredechine]]
| reward   = 
| related  = Fun
| ID       =
}}