Template:Infobox Trait

From Portals of Phereon Wiki
Revision as of 17:02, 16 December 2019 by portalsofphereon>Olaroll (Created page with "<includeonly><infobox theme="location"> <title source="name"><default>{{PAGENAME}}</default></title> <image source="image" /> <data source="info"><label>Info</label></da...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view | edit | purge]Documentation
Description
An infobox for traits
Usage
Look at the example to see how it should be formatted
Use this as a template
{{Infobox Trait
| name     = <!-- Defaults to title -->
| color    = <!-- Color of the skill name itself, use Normal/Green/Blue/Orange -->
| info     = <!-- The yellow text -->
| pros     = <!-- The green text -->
| cons     = <!-- The red text -->
| opposite = 
| unlock   = 
| no-MC    = <!-- Enter yes if it doesn't affect main character -->
}}
Example

There is a problem with parsing the infobox

  • 0
  • 1
    <title source="name"><default>{{PAGENAME}}</default></title>
  • 2
    <image source="image" />
  • 3
    <data source="info"><label>Info</label></data>
  • 4
    <data source="pros"><label>Pros</label></data>
  • 5
    <data source="cons"><label>Cons</label></data>
  • 6
    <data source="opposite"><label>Opposite</label></data>
  • 7
    <data source="no-main-character" layout="stacked"><format>{{#if:{{{no-main-character|}}}|<b>Does not affect main character</b>}}</data>

    Opening and ending tag mismatch

  • 8
    <data source="Unlock condition" layout="stacked"><label>Unlock condition</label></data>
  • 9

    Opening and ending tag mismatch

    Premature end of tag

{{Infobox Trait
| name     = Fertile
| color    = Normal
| info     = <!-- The yellow text -->
| pros     = *Fertility +50%
*Milk amount +50%
| cons     = *Virility -20%
| opposite = Virile
| unlock   = Level an endurance character to 20
| no-MC    = <!-- Enter yes if it doesn't affect main character -->
}}
[view | edit | purge]The above documentation is transcluded fromTemplate:Infobox Trait/doc.