Difference between revisions of "Template:Cheese"

From MHWiki
(make categories automatic)
m (Fixing more issues :))
 
(10 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
{| align="left" cellpadding="5" width="400" style="border:2px solid #B8860B; border-top:25px solid #B8860B; border-spacing:0; margin-left:20px; margin-bottom:20px; padding:5px;"
 
{| align="left" cellpadding="5" width="400" style="border:2px solid #B8860B; border-top:25px solid #B8860B; border-spacing:0; margin-left:20px; margin-bottom:20px; padding:5px;"
 
   |-
 
   |-
! colspan="2" style="font-size:150%;" | {{PAGENAME}}
+
! colspan="2" style="font-size:150%;" | {{{alttitle|{{PAGENAME}}}}}
 
   |-
 
   |-
! colspan="2"  style="border-style: solid; border-width: 2px 2px 2px 2px; font-size:125%;" bgcolor=#B8860B | Category: {{if|{{{subgroup1|}}}|[[:Category:Cheese ({{{subgroup1}}})]]|??}}
+
! colspan="2"  style="border-style: solid; border-width: 2px 2px 2px 2px; font-size:125%;" bgcolor=#B8860B | {{if|{{{subgroup1|}}}|{{if|{{{subgroup2|}}}|Categories:|Category:}} [[:Category:Cheese ({{{subgroup1}}})|{{{subgroup1}}}]]{{if|{{{subgroup2|}}}|, [[:Category:Cheese ({{{subgroup2}}})|{{{subgroup2}}}]]}}{{if|{{{subgroup3|}}}|, [[:Category:Cheese ({{{subgroup3}}})|{{{subgroup3}}}]]}}{{if|{{{subgroup4|}}}|, [[:Category:Cheese ({{{subgroup4}}})|{{{subgroup4}}}]]}}|??}}
 
   |-
 
   |-
 
! colspan="2" width="400" |
 
! colspan="2" width="400" |
Line 50: Line 50:
 
</noinclude>
 
</noinclude>
  
{{if|{{NAMESPACE}}|
+
{{if|{{NAMESPACE}}||
 
[[Category:Cheese]]
 
[[Category:Cheese]]
{{if|{{{subgroup1|}}}|[[Category:Cheese ({{{subgroup1}}}]]}}
+
{{ifeq|{{{trade}}}|Yes|[[Category:Tradable]] [[Category:Cheese (Tradable)]]}}
 +
{{ifeq|{{{give}}}|Yes|[[Category:Giveable]] [[Category:Cheese (Giveable)]]}}
 +
{{ifeq|{{{smash|N/A}}}|N/A||[[Category:Smashable]] [[Category:Cheese (Smashable)]]}}
 +
{{ifeq|{{{craft}}}|Yes|[[Category:Craftable]] [[Category:Cheese (Craftable)]]}}
 +
{{if|{{{subgroup1|}}}|[[Category:Cheese ({{{subgroup1}}})]]}}
 +
{{if|{{{subgroup2|}}}|[[Category:Cheese ({{{subgroup2}}})]]}}
 +
{{if|{{{subgroup3|}}}|[[Category:Cheese ({{{subgroup3}}})]]}}
 +
{{if|{{{subgroup4|}}}|[[Category:Cheese ({{{subgroup4}}})]]}}
 
}}
 
}}
 
{{-}}
 
 
{{-}}
 
{{-}}

Latest revision as of 20:18, 10 August 2024

Sample

Cheese
??
Cheese Info
Cost: ??
Shoppe: ??
Potion: ??
Craftable: ??
Tradeable: ??
Giveable: ??
Smashes To: ??
Stales To: ??
Larry's Loot Lexicon: ??
Image: ??



Usage

Simple table template to maintain consistency between Cheese pages. All fields except alttitle are required.

{{ Cheese
 | alttitle =
 | cost       = 
 | shop  = 
 | potion       = 
 | craft  = 
 | smash  = 
 | trade       = 
 | give  = 
 | subgroup1 =
 | subgroup2 =
 | subgroup3 =
 | subgroup4 =
 | stale =
 | mhinfo     =
 | imglink    = 
 | desc       = 
 }}

Notes

Use the potion that creates the cheese, not potions for which it is used to create other cheeses.

For the smash field, use N/A (rather than No) if the cheese is not smashable.

For the mhinfo field, list only the portion of the Larry's Loot Lexicon link after the item_type= in the link. For example, Cheddar Cheese would list mhinfo = cheddar_cheese.

If a cheese requires special characters in the name that can't be represented in the page title (such as SUPER|brie+), add the alttitle field to represent the correct spelling.

The description is to be copied from the official MouseHunt page.