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)
 
(5 intermediate revisions by the same user not shown)
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="45%" style="width:45%; text-align: left; padding-right: 4px;" | '''Species / Morph''' || width="45%" style="width:45%; 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''' || width="45%" style="width:45%; text-align: right; padding-left: 4px;" | {{{nature|?}}}
+
| class="key" | '''Nature''' || class="value" | {{{nature|''unknown''}}}
 
|-
 
|-
| '''Age Info''' || width="45%" style="width:45%; text-align: right; padding-left: 4px;" | {{#if:{{{age}}}|{{{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}}''' || width="45%" style="width:45%; text-align: right; padding-left: 4px;" | {{{ball|Poké?}}}
+
| class="key" | '''{{bp|Poké Ball}}''' || class="value" | {{{ball|Poké?}}}
 
|-
 
|-
| '''[[:Category:Pokémon by Acquisition|Obtained by]]''' || width="45%" style="width:45%; text-align: right; padding-left: 4px;" | {{{obtained|caught in a wild battle}}}
+
| class="key" | '''[[:Category:Pokémon by Acquisition|Obtained by]]''' || class="value" | {{{obtained|''read below''}}}
 
|-
 
|-
| '''Training<br/>[[Training Classification|Classification]]''' || width="45%" style="width:45%; 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 28: Line 28:
 
<pre>
 
<pre>
 
{{MonInfo/Begin}}
 
{{MonInfo/Begin}}
{{MonInfo|Species|Nick|gender=Female|nature=Adorable|age=1 yr|ball=Poké Ball|obtained=Egg|tc=¿?}}
+
{{MonInfo|Nick|Species|gender=Female|nature=Adorable|age=1 yr|ball=Poké Ball|obtained=Egg|tc=¿?}}
 
{{MonInfo/Field|Favourite Food|[nuts]!}}
 
{{MonInfo/Field|Favourite Food|[nuts]!}}
 
{{MonInfo/Quote|"Silly Pidgeys!"}}
 
{{MonInfo/Quote|"Silly Pidgeys!"}}
Line 36: Line 36:
 
Important fields:
 
Important fields:
  
* The '''first field''' is the species or morph, not important ATM.
+
* The '''first field''' is the nickname, not actually used ATM.
* The '''second field''' is the nickname.
+
* 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).
+
* '''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>).
 
* '''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. If not known or not used it just displays a question mark.
+
* '''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.