Please remember to follow the manual of style and code of conduct at all times.
Check BNN and Bulbanews for up-to-date Pokémon news and discuss it on the forums or in our IRC channel #bulbagarden on irc.systemnet.info.

Difference between revisions of "Template talk:DungeonItem"

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to: navigation, search
m (Scarves)
m
Line 21: Line 21:
   
 
===Example===
 
===Example===
====[[Bumpy Mountain]]====
+
====[[Ragged Mountain]]====
 
{{DungeonItem/h|rock}}
 
{{DungeonItem/h|rock}}
 
{{DungeonItem|Poké|3=1F-5|4=34-49|sprite=Poké currency}}
 
{{DungeonItem|Poké|3=1F-5|4=34-49|sprite=Poké currency}}
Line 33: Line 33:
 
|}
 
|}
   
====[[Stone Cave]]====
+
====[[Stony Cave]]====
 
{{DungeonItem/h|rock}}
 
{{DungeonItem/h|rock}}
 
{{DungeonItem|Poké|3=B1F-B5|4=30-57|sprite=Poké currency}}
 
{{DungeonItem|Poké|3=B1F-B5|4=30-57|sprite=Poké currency}}
Line 51: Line 51:
 
|}
 
|}
   
== Scarves ==
+
==Scarves==
   
 
As the page is located at [[Scarf (Mystery Dungeon)]], can a work-around be put into the template? It would take a lot of coding for each individual item on the dungeon pages. --[[User:Abcboy|Abcboy]] ([[User talk:Abcboy|talk]]) 00:17, 23 December 2012 (UTC)
 
As the page is located at [[Scarf (Mystery Dungeon)]], can a work-around be put into the template? It would take a lot of coding for each individual item on the dungeon pages. --[[User:Abcboy|Abcboy]] ([[User talk:Abcboy|talk]]) 00:17, 23 December 2012 (UTC)

Revision as of 05:31, 8 February 2013

How to use

Coding

First call the header, which uses two parameters: 1 (background color) and text (text color)

{{DungeonItem/h|<background color, uses color templates>|text=<only if needed; put hex code for text color>}}

For each entry there are five parameters: 1 (item name), 2 (article location, optional: leave out if the same as 1), 3 (floors), 4 (bundle size, for stacks of items) and sprite (image location if not at MDBag <1> sprite.png, use "None" if no image.)

If an item with image and own article:
{{DungeonItem|<item name>|3=<floors; put like so: 1F-10F>}}

If an item with no image but an article:
{{DungeonItem|<item name>|sprite=None|3=<floors; put like so: 1F-10F>}}

If an item with no individual article and no individual picture:
{{DungeonItem|<item name>|<main article>|<floors; put like so: 1F-10F>|sprite=<image location>}}

If an item with no individual article and no image:
{{DungeonItem|<item name>|<main article>|<floors; put like so: 1F-10F>|sprite=None}}

At the end of the table, place the table closing code:

|}

Example

Ragged Mountain

Item Floors
Poké currency.png 34-49 Poké 1F-5F
MDBag Oran Berry Sprite.png Oran Berry  ??F
None.png Aspear Berry  ??F
MDBag Chesto Berry Sprite.png Chesto Berry  ??F
MDBag Wonder Orb Sprite.png Escape Orb  ??F
MDBag Seed Sprite.png Blast Seed  ??F
None.png Shiny Box  ??F
None.png Heavy Box  ??F

Stony Cave

Item Floors
Poké currency.png 30-57 Poké B1F-B5F
MDBag Oran Berry Sprite.png Oran Berry  ??F
None.png Aspear Berry  ??F
MDBag Chesto Berry Sprite.png Chesto Berry  ??F
File:MDBag Pecha Berry IV Sprite.png Pecha Berry  ??F
MDBag Wonder Orb Sprite.png Escape Orb  ??F
MDBag Wonder Orb Sprite.png Health Orb  ??F
MDBag Wonder Orb Sprite.png Everyone's Strength Orb  ??F
MDBag Wonder Orb Sprite.png Rollcall Orb  ??F
None.png Shiny Box  ??F
None.png Sinister Box  ??F
MDBag Scarf Sprite.png Zinc Band  ??F
MDBag Seed Sprite.png Heal Seed  ??F
File:MDBag Health Drink Sprite.png Max Elixir  ??F

Scarves

As the page is located at Scarf (Mystery Dungeon), can a work-around be put into the template? It would take a lot of coding for each individual item on the dungeon pages. --Abcboy (talk) 00:17, 23 December 2012 (UTC)

There's already a parameter for article title. I don't want to add a switch to shorten that because it'll negatively affect the template's performance, increasing the load on the servers. Werdnae (talk) 02:30, 23 December 2012 (UTC)
Okay then. I've gone through and I believe most pages using this template should be fixed. --Abcboy (talk) 11:10, 24 December 2012 (UTC)