Difference between revisions of "User:Peter888/Sandbox/Templates"

From MHWiki
m
m
Line 11: Line 11:
 
===Usage===
 
===Usage===
 
====Template code====
 
====Template code====
<nowiki>
+
*See [[User:Peter888/Sandbox/Templates/Infobox mouse|template]]
{| style="float:right; clear:right; width:300px; overflow:hidden; position:relative; border:1px solid black; padding:5px; text-align:center;"
 
|'''{{subst:PAGENAME}}'''
 
|-
 
|[Image:{{subst:PAGENAME}} silhouette.png]
 
|-
 
|<small>Spoiler [[:Image:{{subst:PAGENAME}}.png|image]]</small>
 
|-
 
|Reward: <{{{points}}} points and >{{{gold}}} gold
 
|-
 
|Description: ''{{{description}}}''
 
|}
 
[[Category:Mice]]
 
</nowiki>
 
 
====Usage code====
 
====Usage code====
 
<nowiki>
 
<nowiki>
Line 36: Line 23:
 
*Looking for a way to make it easier entering a description.
 
*Looking for a way to make it easier entering a description.
 
:<nowiki>{{{description|{{{{subst:Infobox mouse/description#{{subst:PAGENAME}}}}}}}}}</nowiki>
 
:<nowiki>{{{description|{{{{subst:Infobox mouse/description#{{subst:PAGENAME}}}}}}}}}</nowiki>
 +
==Infobox base==
 +
===Example===
 +
{{User:Peter888/Sandbox/Templates/Infobox base
 +
|description=A standard wood base to attach to your weapon.
 +
|power=35
 +
|pbonus=0
 +
|abonus=0
 +
|luck=0
 +
|effect=Very Positive
 +
|cost=300
 +
|score=0
 +
}}
 +
===Usage===
 +
====Template code====
 +
*See [[User:Peter888/Sandbox/Templates/Infobox base|template]]
 +
====Usage code====
 +
<nowiki>
 +
{{User:Peter888/Sandbox/Templates/Infobox base
 +
|description=A standard wood base to attach to your weapon.
 +
|power=35
 +
|pbonus=0
 +
|abonus=0
 +
|luck=0
 +
|effect=Very Positive
 +
|cost=300
 +
|score=0
 +
}}
 +
</nowiki>

Revision as of 05:05, 4 November 2008

Infoboxes

Infobox mouse

Example - see right

Peter888/Sandbox/Templates
[Image:Peter888/Sandbox/Templates/Infobox mouse.png]
Max Points: ? points
Min Gold: ? gold
Loot: None
Location(s): ?
Power Type: ?
Bait: None known
More info: [{{{mhinfo}}} MouseHunt Info Page]

'


Usage

Template code

Usage code

{{User:Peter888/Sandbox/Templates/Infobox mouse |gold= 100 |points= 50 |description= The white mouse is probably the most common mouse in these parts. They pose very little challenge and thus garner little reward. Great for the starting mouse hunter. }}

Notes

  • Looking for a way to make it easier entering a description.
{{{description|{{{{subst:Infobox mouse/description#{{subst:PAGENAME}}}}}}}}}

Infobox base

Example

Peter888/Sandbox/Templates/Infobox base
A standard wood base to attach to your weapon.
Power: 35
Power bonus: 0%
Accuracy bonus: 0%
Luck: 0
Cheese Effect: Very Positive
Cost: 300 gold
Score required: 0 points

Usage

Template code

Usage code

{{User:Peter888/Sandbox/Templates/Infobox base |description=A standard wood base to attach to your weapon. |power=35 |pbonus=0 |abonus=0 |luck=0 |effect=Very Positive |cost=300 |score=0 }}