Difference between revisions of "Template:Template sandbox"

From MHWiki
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
{{ #if:1 | mouse_type={{{3}}} }}
+
{{#if:1 | mouse_type={{{3}}} }}
{{#switch: mouse_type|P=#CCFFCC | S=#FFCC66 | T=#FF9999 | default #FFFFFF }}
+
{{#switch: mouse_type
 +
|P=#CCFFCC  
 +
|S=#FFCC66  
 +
|T=#FF9999
 +
|default #FFFFFF  
 +
}}
 
<div style="float:left; width:150px; margin:0 10px 10px 0; border:1px solid #aaa; padding:5px; background:#CCFFCC; text-align:center">[[{{{1}}}_Mouse|{{ucfirst:{{{1}}}}}]]<br>x{{{2}}}</div>
 
<div style="float:left; width:150px; margin:0 10px 10px 0; border:1px solid #aaa; padding:5px; background:#CCFFCC; text-align:center">[[{{{1}}}_Mouse|{{ucfirst:{{{1}}}}}]]<br>x{{{2}}}</div>
 
</includeonly><noinclude>
 
</includeonly><noinclude>

Revision as of 18:12, 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.

{{Template sandbox|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

{{Template sandbox|Lich|2|F}}

Result:

2
xF


Example 2: Multiple mice collection

{{Template sandbox|White|159|P}}{{Template sandbox|Assassin|143|T}}

Result:

159
xP
143
xT