Difference between revisions of "Template:Pus:MC"

From MHWiki
m
m (New format and parameter)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>
+
<includeonly><div style="float:left; width:150px; margin:0 10px 10px 0; border:1px solid #aaa; padding:5px; background:{{{4}}}; text-align:center">[[{{ucfirst:{{{1}}}}}_Mouse|{{ucfirst:{{{2}}}}}]]<br>x{{{3}}}</div></includeonly><noinclude>
<div style="width:150px; margin:0 10px 10px 0; border:1px solid #aaa; padding:5px; background:{{#switch {{{3}}}| P=#CCFFCC | S=#FFCC66 | T=#FF9999 | default #FFFFFF }}; text-align:center">[[{{{1}}}_Mouse|{{ucfirst:{{{1}}}}}]]<br>x{{{2}}}</div>
 
</includeonly><noinclude>
 
 
This template is to easily link to a Mouse Collection from the Wiki.
 
This template is to easily link to a Mouse Collection from the Wiki.
  
Line 7: Line 5:
 
Insert the following code wherever you want it to appear on your user page.
 
Insert the following code wherever you want it to appear on your user page.
  
<pre>{{Pus:MC|mouse_name|caught|mouse_type}}</pre>
+
<pre>{{Pus:MC|mouse_name|short_name|total_caught|background_color}}</pre>
  
In place of "mouse_name" enter the name of mouse (e.g. Lich, Wight, Acolyte) and enter the total mice caught on total_caught. In mouse_type, use P for Physical, S for Shadow, T for Tactical, F for Forgotten.<br><br>
+
In place of "mouse_name" enter the name of mouse (e.g. Lich, Wight, Acolyte) and enter the total mice caught on total_caught.<br><br>
 +
Select background color according to mouse type:
 +
Physical #CCFFCC
 +
Tactical #CCCCFF
 +
Shadow #FFFFCC
 +
Forgotten #FFCCFF
 +
Arcane #FFAAAA
 +
<br>
 
Example 1: Single mouse collection  
 
Example 1: Single mouse collection  
<pre>{{Pus:MC|Lich|2|F}}</pre>
+
<pre>{{Pus:MC|Lich|Lich|2|#FFCCFF}}
Result:<br>{{Pus:MC|Lich|2|F}}<br>
+
<br clear=all></pre>
 +
Result:<br>{{Pus:MC|Lich|Lich|2|#FFCCFF}}
 +
<br clear=all>
 
Example 2: Multiple mice collection
 
Example 2: Multiple mice collection
<pre>{{Pus:MC|White|159|P}}{{Pus:MC|Assassin|143|T}}</pre>
+
<pre>
Result:<br>{{Pus:MC|White|159|P}}{{Pus:MC|Assassin|143|T}}<br>
+
{{Pus:MC|Mole|Mole|159|#CCFFCC}}
 +
{{Pus:MC|Wicked Witch of Whisker Woods|Wicked Witch|11|#CCCCFF}}
 +
<br clear=all>
 +
</pre>
 +
Result:<br>
 +
{{Pus:MC|Mole|Mole|159|#CCFFCC}}
 +
{{Pus:MC|Wicked Witch of Whisker Woods|Wicked Witch|11|#CCCCFF}}
 +
<br clear=all>
 
</noinclude>
 
</noinclude>

Latest revision as of 20:05, 1 May 2009

This template is to easily link to a Mouse Collection from the Wiki.

Usage

Insert the following code wherever you want it to appear on your user page.

{{Pus:MC|mouse_name|short_name|total_caught|background_color}}

In place of "mouse_name" enter the name of mouse (e.g. Lich, Wight, Acolyte) and enter the total mice caught on total_caught.

Select background color according to mouse type:

Physical #CCFFCC
Tactical #CCCCFF
Shadow #FFFFCC
Forgotten #FFCCFF
Arcane #FFAAAA


Example 1: Single mouse collection

{{Pus:MC|Lich|Lich|2|#FFCCFF}}
<br clear=all>

Result:


Example 2: Multiple mice collection

{{Pus:MC|Mole|Mole|159|#CCFFCC}}
{{Pus:MC|Wicked Witch of Whisker Woods|Wicked Witch|11|#CCCCFF}}
<br clear=all>

Result:

Mole
x159