Template:User Pet: Difference between revisions

m
alright, now it's much more complicated, but easier to use. Next up, updating every userpage that uses it.
mNo edit summary
m (alright, now it's much more complicated, but easier to use. Next up, updating every userpage that uses it.)
Line 1: Line 1:
{| class="userboxitem" style="border: 1px solid #cca;" cellspacing="0" cellpadding="0"
{| class="userboxitem" style="border: 1px solid #cca;" cellspacing="0" cellpadding="0"
! style="background: #{{{4|FFA800}}};" | [[Image:{{{1|058.png}}}|50px]]
{{#switch: {{{1|none}}}
| style="background: #{{{5|FF5A00}}}; color: #{{{6|110F0F}}};" | This user has a pet '''[[wp:{{{2|Dog}}}|<span style="color:#{{{6|110F0F}}}">{{{3|{{{2|dog}}}}}}</span>]]'''.
|dog
|Dog=! style="background: #{{{3|FFA800}}};" {{!}} [[Image:{{{2|058}}}.png|50px]]
{{!}} style="background: #{{{4|FF5A00}}}; color: #{{{5|110F0F}}};" {{!}} This user has a pet '''[[wp:{{{1|Dog}}}|<span style="color:#{{{5|110F0F}}}">{{{1|dog}}}</span>]]'''.
|cat
|Cat=! style="background: #{{{3|FFE1B2}}};" {{!}} [[Image:{{{2|053}}}.png|50px]]
{{!}} style="background: #{{{4|E6C772}}}; color: #{{{5|7E3F11}}};" {{!}} This user has a pet '''[[wp:{{{1|Cat}}}|<span style="color:#{{{5|7E3F11}}}">{{{1|cat}}}</span>]]'''.
|parrot
|Parrot
|bird
|Bird=! style="background: #{{{3|BEC0FF}}};" {{!}} [[Image:{{{2|441}}}.png|50px]]
{{!}} style="background: #{{{4|A890F0}}}; color: #{{{5|21249E}}};" {{!}} This user has a pet '''[[wp:{{{1|Bird}}}|<span style="color:#{{{5|21249E}}}">{{{1|bird}}}</span>]]'''.
|turtle
|Turtle=! style="background: #{{{3|98D8D8}}};" {{!}} [[Image:{{{2|007}}}.png|50px]]
{{!}} style="background: #{{{4|6890F0}}}; color: #{{{5|3C1D9F}}};" {{!}} This user has a pet '''[[wp:{{{1|Turtle}}}|<span style="color:#{{{5|3C1D9F}}}">{{{1|turtle}}}</span>]]'''.
|hamster
|Hamster=! style="background: #{{{3|A8A878}}};" {{!}} [[Image:{{{2|399}}}.png|50px]]
{{!}} style="background: #{{{4|DDCEB6}}}; color: #{{{5|A4752A}}};" {{!}} This user has a pet '''[[wp:{{{1|Hamster}}}|<span style="color:#{{{5|A4752A}}}">{{{1|hamster}}}</span>]]'''.
|guinea pig
|Guinea pig
|Guinea Pig=! style="background: #{{{3|A8A878}}};" {{!}} [[Image:{{{2|399}}}.png|50px]]
{{!}} style="background: #{{{4|DDCEB6}}}; color: #{{{5|A4752A}}};" {{!}} This user has a pet '''[[wp:{{{1|Guinea Pig}}}|<span style="color:#{{{5|A4752A}}}">{{{1|guinea pig}}}</span>]]'''.
|rabbit
|Rabbit=! style="background: #{{{3|DA9C4B}}};" {{!}} [[Image:{{{2|427}}}.png|50px]]
{{!}} style="background: #{{{4|B16400}}}; color: #{{{5|DFA928}}};" {{!}} This user has a pet '''[[wp:{{{1|Rabbit}}}|<span style="color:#{{{5|DFA928}}}">{{{1|rabbit}}}</span>]]'''.
|mouse=
|Mouse=! style="background: #{{{3|F1E7D7}}};" {{!}} [[Image:{{{2|183}}}.png|50px]]
{{!}} style="background: #{{{4|DDCEB6}}}; color: #{{{5|A4752A}}};" {{!}} This user has a pet '''[[wp:{{{1|Mouse}}}|<span style="color:#{{{5|A4752A}}}">{{{1|mouse}}}</span>]]'''.
|ferret
|Ferret=! style="background: #{{{3|E8D38A}}};" {{!}} [[Image:{{{2|162}}}.png|50px]]
{{!}} style="background: #{{{4|CCB979}}}; color: #{{{5|9C6823}}};" {{!}} This user has a pet '''[[wp:{{{1|Ferret}}}|<span style="color:#{{{5|9C6823}}}">{{{1|ferret}}}</span>]]'''.
|fish
|Fish=! style="background: #{{{3|B9F4FF}}};" {{!}} [[Image:{{{2|457}}}.png|50px]]
{{!}} style="background: #{{{4|80E9FF}}}; color: #{{{5|CC4598}}};" {{!}} This user has a pet '''[[wp:{{{1|Fish}}}|<span style="color:#{{{6|CC4598}}}">{{{1|fish}}}</span>]]'''.
|snake
|Snake=! style="background: #{{{3|A040A0}}};" {{!}} [[Image:{{{2|336}}}.png|50px]]
{{!}} style="background: #{{{4|705848}}}; color: #{{{5|471749}}};" {{!}} This user has a pet '''[[wp:{{{1|Snake}}}|<span style="color:#{{{5|471749}}}">{{{1|snake}}}</span>]]'''.
|lizard
|Lizard=! style="background: #{{{3|66D570}}};" {{!}} [[Image:{{{2|352}}}.png|50px]]
{{!}} style="background: #{{{4|78C850}}}; color: #{{{5|2B7A32}}};" {{!}} This user has a pet '''[[wp:{{{1|Lizard}}}|<span style="color:#{{{5|2B7A32}}}">{{{1|lizard}}}</span>]]'''.
|frog
|Frog=! style="background: #{{{3|C2F678}}};" {{!}} [[Image:{{{2|186}}}.png|50px]]
{{!}} style="background: #{{{4|78C850}}}; color: #{{{5|566A39}}};" {{!}} This user has a pet '''[[wp:{{{1|Frog}}}|<span style="color:#{{{5|566A39}}}">{{{1|frog}}}</span>]]'''.
|tarantula
|Tarantula
|spider
|Spider=! style="background: #{{{3|A040A0}}};" {{!}} [[Image:{{{2|168}}}.png|50px]]
{{!}} style="background: #{{{4|705898}}}; color: #{{{5|3D2455}}};" {{!}} This user has a pet '''[[wp:{{{1|Frog}}}|<span style="color:#{{{5|3D2455}}}">{{{1|frog}}}</span>]]'''.
|Echidna=! style="background: #FF9A00;" {{!}} [[Image:155.png|50px]]
{{!}} style="background: #FF5A00; color: #F9F9E9;" {{!}} This user has a pet '''[[User:TTEchidna|<span style="color:#F9F9E9">Echinda</span>]]'''.
|{{{1}}}=! style="background: #{{{3|FFE1B2}}};" {{!}} [[Image:{{{2|052}}}.png|50px]]
{{!}} style="background: #{{{4|E6C772}}}; color: #{{{5|7E3F11}}};" {{!}} This user has a pet '''[[wp:{{{1|Cat}}}|<span style="color:#{{{5|7E3F11}}}">{{{1|cat}}}</span>]]'''.
|none=! style="background: #{{{3|FFE1B2}}};" {{!}} [[Image:{{{2|053}}}.png|50px]]
{{!}} style="background: #{{{4|E6C772}}}; color: #{{{5|7E3F11}}};" {{!}} This user has a pet.}}
|}<noinclude>
|}<noinclude>
[[Category:Other tags]]
[[Category:Other tags]]


To put in the type of pet you have, fill in first a picture that represents it, second, the species of pet, third, optionally, alternate text for the name (if the Wikipedia article on it isn't at just the animal's title), fourth, optionally, a color for the box the picture is in, fifth, optionally, a color for the box the text is in, and sixth, again optionally, the color for the text.
To put in the type of pet you have, fill in the type of pet you have in the first variable, like so:


  <nowiki>{{User Pet|052.png|Cat|cat|FFE1B2|E6C772|7E3F11}}</nowiki>
  <nowiki>{{User Pet|cat}}</nowiki>


{{User Pet|052.png|Cat|cat|FFE1B2|E6C772|7E3F11}}</noinclude>
The template will automatically switch the colors and picture to match.
 
You can also optionally change the second variable if you'd like a different picture, like so:
 
<nowiki>{{User Pet|cat|052}}</nowiki>
 
And also optional, the third, fourth, and fifth variables will respectively change the colors of the image background, text background, and text color.
 
A listing of preset pets:
 
*Cat
{{User Pet|cat}}
 
*Dog
{{User Pet|dog}}
 
*Mouse
{{User Pet|mouse}}
 
*Rabbit
{{User Pet|rabbit}}
 
*Bird (or Parrot)
{{User Pet|bird}}
 
*Lizard
{{User Pet|lizard}}
 
*Frog
{{User Pet|frog}}
 
*Fish
{{User Pet|fish}}
 
*Guinea Pig
{{User Pet|guinea pig}}
 
*Hamster
{{User Pet|hamster}}
 
*Snake
{{User Pet|snake}}
 
*Spider (or Tarantula)
{{User Pet|spider}}
 
*Ferret
{{User Pet|ferret}}
 
*Turtle
{{User Pet|turtle}}</noinclude>
2,743

edits