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)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{| style="float:right; width:200px; margin-left:8pt; margin-bottom: 14pt; border:2px outset gray; border-radius: 6px; " 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: 125%; " | {{PAGENAME}}
+
| colspan="2" style="text-align: center; font-size: 150%; border: 4px outset gray;" | {{PAGENAME}}
 
|-
 
|-
| width="45%" style="width:45%; text-align: left; padding-right: 4px;" | '''Species''' || width="45%" style="width:45%; text-align: right; padding-left: 4px;" | {{{2}}}
+
| class="key" | '''Species / Morph''' || class="value" | {{{2}}}
 
|-
 
|-
| '''Gender''' || {{{gender|?}}}
+
| class="key" | '''[[:Category:Pokémon by Gender|Gender]]''' || class="value" | {{{gender|?}}}
 
|-
 
|-
| '''Nature''' || {{{nature|?}}}
+
| class="key" | '''Nature''' || class="value" | {{{nature|''unknown''}}}
 
|-
 
|-
| '''Age Info''' || {{{age|?}}} old {{#if:{{{birthdate}}}|born on {{{birthdate}}} }}
+
| class="key" | '''Age Info''' || class="value" | {{#if:{{{age|}}}|{{{age}}} old|}} {{#if:{{{birthdate|}}}|born on {{{birthdate}}}|}} {{#if:{{{age|}}}{{{birthdate|}}}||''unknown''}}
 
|-
 
|-
| '''{{bp|Poké Ball}}''' || {{{ball|Poké?}}}
+
| class="key" | '''{{bp|Poké Ball}}''' || class="value" | {{{ball|Poké?}}}
 +
|-
 +
| class="key" | '''[[:Category:Pokémon by Acquisition|Obtained by]]''' || class="value" | {{{obtained|''read below''}}}
 +
|-
 +
| class="key" | '''Training<br/>[[Training Classification|Classification]]''' || class="value" | {{{tc|''undetermined''}}}
 
|-
 
|-
| '''Training<br/>[[Training Classification|Classification]]''' || {{{tc|B?}}}
 
|}
 
 
</includeonly></onlyinclude><noinclude>
 
</includeonly></onlyinclude><noinclude>
 +
 +
= Template Usage Information =
 +
 +
Start and end the mon information block with the <code>/Begin</code> and <code>/End</code> 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 <code>/Field</code> subtemplate. If you want to add a ''quote'' for your character add it with the <code>/Quote</code> subtemplate.
 +
 +
Example usage is as follows.
 +
 +
 +
<pre>
 +
{{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}}
 +
</pre>
 +
 +
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 (<code><nowiki>|age=|</nowiki></code>).
 +
* '''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 <code>gray</code>.
 +
 
[[Category:Editing Templates]]
 
[[Category:Editing Templates]]
 
</noinclude>
 
</noinclude>

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.