Difference between revisions of "Template:Pus:MC"

From MHWiki
m (+fix some layout error must add <BR>)
m (+#switch)
Line 1: Line 1:
<includeonly>{| border="0" style="float:left; margin:3px 3px 3px 3px; padding:5px; border:1px solid #ddd; text-align:center;"
+
<includeonly>
|-
+
{{ bg={{#switch {{{3}}}| P=#CCFFCC | S=#FFCC66 | T=#FF9999 | default #FFFFFF}} }}
|'''[[{{{1}}}_Mouse|{{ucfirst:{{{1}}}}}]]'''||x{{{2}}}
+
<div style="width:150px; margin:0 10px 10px 0; border:1px solid #aaa; padding:5px; background:{{{bg}}}; text-align:center">[[{{{1}}}_Mouse|{{ucfirst:{{{1}}}}}]]<br>x{{{2}}}</span>
|}</includeonly><noinclude>
+
</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 8: Line 8:
 
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}}</pre>
+
<pre>{{Pus:MC|mouse_name|caught|mouse_type}}</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.<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. In mouse_type, use P for Physical, S for Shadow, T for Tactical, F for Forgotten.<br><br>
 
Example 1: Single mouse collection  
 
Example 1: Single mouse collection  
<pre>{{Pus:MC|Lich|2}}</pre>
+
<pre>{{Pus:MC|Lich|2|F}}</pre>
Result:<br>{{Pus:MC|Lich|2}}
+
Result:<br>{{Pus:MC|Lich|2|F}}<br>
<br><br><br>
 
 
Example 2: Multiple mice collection
 
Example 2: Multiple mice collection
<pre>{{Pus:MC|White|159}}{{Pus:MC|grey|143}}</pre>
+
<pre>{{Pus:MC|White|159|P}}{{Pus:MC|Assassin|143|T}}</pre>
Result:<br>{{Pus:MC|White|159}}{{Pus:MC|grey|143}}
+
Result:<br>{{Pus:MC|White|159|P}}{{Pus:MC|Assassin|143|T}}<br>
<br><br><br>
 
 
</noinclude>
 
</noinclude>

Revision as of 17:29, 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|caught|mouse_type}}

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.

Example 1: Single mouse collection

{{Pus:MC|Lich|2|F}}

Result:

2
xF


Example 2: Multiple mice collection

{{Pus:MC|White|159|P}}{{Pus:MC|Assassin|143|T}}

Result:

159
xP
143
xT