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

From MHWiki
m
m
Line 10: Line 10:
  
 
===Usage===
 
===Usage===
 +
====Template code====
 +
<nowiki>
 +
{| 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====
 
<nowiki>
 
<nowiki>
 
{{User:Peter888/Sandbox/Templates/Infobox mouse  
 
{{User:Peter888/Sandbox/Templates/Infobox mouse  
 
|gold= 100  
 
|gold= 100  
 
|points= 50  
 
|points= 50  
|description  
+
|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.
 
}}
 
}}
 
</nowiki>
 
</nowiki>

Revision as of 03:31, 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

{| 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]]

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}}}}}}}}}