Difference between revisions of "Template:Template sandbox"
From MHWiki
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | + | <div style="float:left; width:150px; margin:0 10px 10px 0; border:1px solid #aaa; padding:5px; background:{{{3}}}; 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: | ||
</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 14: | Line 7: | ||
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>{{Template sandbox|mouse_name|caught| | + | <pre>{{Template sandbox|mouse_name|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 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> |
Example 1: Single mouse collection | Example 1: Single mouse collection | ||
− | <pre>{{Template sandbox|Lich|2| | + | <pre>{{Template sandbox|Lich|2|CCFFCC}}</pre> |
− | Result:<br>{{Template sandbox|Lich|2| | + | Result:<br>{{Template sandbox|Lich|2|CCFFCC}}<br> |
Example 2: Multiple mice collection | Example 2: Multiple mice collection | ||
− | <pre>{{Template sandbox|White|159| | + | <pre>{{Template sandbox|White|159|CCFFCC}}{{Template sandbox|Assassin|143|CCFF66}}</pre> |
− | Result:<br>{{Template sandbox|White|159| | + | Result:<br>{{Template sandbox|White|159|CCFFCC}}{{Template sandbox|Assassin|143|CCFF66}}<br> |
</noinclude> | </noinclude> |
Revision as of 18:24, 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|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.
Example 1: Single mouse collection
{{Template sandbox|Lich|2|CCFFCC}}
Result:
2
xCCFFCC
xCCFFCC
Example 2: Multiple mice collection
{{Template sandbox|White|159|CCFFCC}}{{Template sandbox|Assassin|143|CCFF66}}
Result:
159
xCCFFCC
xCCFFCC
143
xCCFF66
xCCFF66