Difference between revisions of "Template:MonInfo"

From We Are All Pokémon Trainers
Jump to navigation Jump to search
m
m (using custom CSS now)
 
Line 1: Line 1:
<onlyinclude><includeonly>{| style="float:right; width:30%; margin-left:8pt; margin-bottom: 14pt; border:4px outset {{{border_color|gray}}}; border-radius: 6px; font-size: smaller; " border="1" "cellpadding="1"  
+
<onlyinclude><includeonly>{| class="mon_info" style="border:4px outset {{{border_color|gray}}}; border-radius: 6px; font-size: smaller; " border="1" "cellpadding="1"  
 
|-
 
|-
| colspan="2" style="text-align: center; font-size: 150%; " | {{PAGENAME}}
+
| colspan="2" style="text-align: center; font-size: 150%; border: 4px outset gray;" | {{PAGENAME}}
 
|-
 
|-
| width="35%" style="width:35%; text-align: left; padding: 0 4px;" | '''Species / Morph''' || width="55%" style="width:55%; text-align: right; padding-left: 4px;" | {{{2}}}
+
| class="key" | '''Species / Morph''' || class="value" | {{{2}}}
 
|-
 
|-
| '''[[:Category:Pokémon by Gender|Gender]]''' || width="45%" style="width:45%; text-align: right; padding-left: 4px;" | {{{gender|?}}}
+
| class="key" | '''[[:Category:Pokémon by Gender|Gender]]''' || class="value" | {{{gender|?}}}
 
|-
 
|-
| '''Nature''' || style="text-align: right; padding-left: 4px;" | {{{nature|''unknown''}}}
+
| class="key" | '''Nature''' || class="value" | {{{nature|''unknown''}}}
 
|-
 
|-
| '''Age Info''' || style="width:55%; text-align: right; padding-left: 4px;" | {{#if:{{{age|}}}|{{{age}}} old|}} {{#if:{{{birthdate|}}}|born on {{{birthdate}}}|}} {{#if:{{{age|}}}{{{birthdate|}}}||''unknown''}}
+
| class="key" | '''Age Info''' || class="value" | {{#if:{{{age|}}}|{{{age}}} old|}} {{#if:{{{birthdate|}}}|born on {{{birthdate}}}|}} {{#if:{{{age|}}}{{{birthdate|}}}||''unknown''}}
 
|-
 
|-
| '''{{bp|Poké Ball}}''' || style="width:55%; text-align: right; padding-left: 4px;" | {{{ball|Poké?}}}
+
| class="key" | '''{{bp|Poké Ball}}''' || class="value" | {{{ball|Poké?}}}
 
|-
 
|-
| '''[[:Category:Pokémon by Acquisition|Obtained by]]''' || style="width:55%; text-align: right; padding-left: 4px;" | {{{obtained|''read below''}}}
+
| class="key" | '''[[:Category:Pokémon by Acquisition|Obtained by]]''' || class="value" | {{{obtained|''read below''}}}
 
|-
 
|-
| '''Training<br/>[[Training Classification|Classification]]''' || style="width:55%; text-align: right; padding-left: 4px;" | {{{tc|''undetermined''}}}
+
| class="key" | '''Training<br/>[[Training Classification|Classification]]''' || class="value" | {{{tc|''undetermined''}}}
 
|-
 
|-
 
</includeonly></onlyinclude><noinclude>
 
</includeonly></onlyinclude><noinclude>
Line 41: Line 41:
 
* '''age''' is the current age of the Pokémon. If don't want to set, mark it as empty (<code><nowiki>|age=|</nowiki></code>).
 
* '''age''' is the current age of the Pokémon. If don't want to set, mark it as empty (<code><nowiki>|age=|</nowiki></code>).
 
* '''birthdate''' is the date of birth of the Pokémon, if known.
 
* '''birthdate''' is the date of birth of the Pokémon, if known.
* '''ball''' is the type of Pokéball of the Pokémon; it defaults to "Poké?".
+
* '''ball''' is the type of Pokéball of the Pokémon; it defaults to "Poké?". Might be used to eventually add icon later.
 
* Use the '''obtained''' field to briefly describe how the Pokémon was obtained; defaults to "see page" in case you'd rather describe it in the page itself.
 
* Use the '''obtained''' field to briefly describe how the Pokémon was obtained; defaults to "see page" in case you'd rather describe it in the page itself.
 
* '''tc''' is the [[Training Classification]] of the Pokémon. ; defaults to display a question mark.
 
* '''tc''' is the [[Training Classification]] of the Pokémon. ; defaults to display a question mark.

Latest revision as of 19:49, 25 July 2013


Template Usage Information

Start and end the mon information block with the /Begin and /End subtemplates. Then fill in the fields that you want (some of them can take default values). If you want to add custom fields add them with the /Field subtemplate. If you want to add a quote for your character add it with the /Quote subtemplate.

Example usage is as follows.


{{MonInfo/Begin}}
{{MonInfo|Nick|Species|gender=Female|nature=Adorable|age=1 yr|ball=Poké Ball|obtained=Egg|tc=¿?}}
{{MonInfo/Field|Favourite Food|[nuts]!}}
{{MonInfo/Quote|"Silly Pidgeys!"}}
{{MonInfo/End}}

Important fields:

  • The first field is the nickname, not actually used ATM.
  • The second field is the species or morph, not important ATM but might be used later for sprite or categorization.
  • gender: Has to begin with uppercase (Male, Female, Genderless). This field must be specified.
  • age is the current age of the Pokémon. If don't want to set, mark it as empty (|age=|).
  • birthdate is the date of birth of the Pokémon, if known.
  • ball is the type of Pokéball of the Pokémon; it defaults to "Poké?". Might be used to eventually add icon later.
  • Use the obtained field to briefly describe how the Pokémon was obtained; defaults to "see page" in case you'd rather describe it in the page itself.
  • tc is the Training Classification of the Pokémon. ; defaults to display a question mark.
  • You can set the color of the table border with border_color; defaults to gray.