Template talk:DungeonItem: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Created page with "==How to use== ===Coding=== First call the header, which use two parameters: ''1'' and ''color''. For each entry, coding should be like this: <pre>If an item with image and o...")
 
(→‎add note argument: new section)
(15 intermediate revisions by 7 users not shown)
Line 1: Line 1:
==How to use==
==How to use==
===Coding===
===Coding===
First call the header, which use two parameters: ''1'' and ''color''.
First call the header, which uses two parameters: ''1'' (background color) and ''text'' (text color)
<pre>{{DungeonItem/h|<background color, uses color templates>|text=<only if needed; put hex code for text color>}}</pre>


For each entry, coding should be like this:
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.)
<pre>If an item with image and own article:
<pre>If an item with image and own article:
{{User:Abcboy/sandbox/MagnagateItemlistEntry|<item name>|<item plural>}}
{{DungeonItem|<item name>|3=<floors; put like so: 1F-10F>}}


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


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


If an item with no individual article and no image:
If an item with no individual article and no image:
{{User:Abcboy/sandbox/MagnagateItemlistEntry|<item name>|<item plural>|<main arcticle>|sprite=None}}
{{DungeonItem|<item name>|<main article>|<floors; put like so: 1F-10F>|sprite=None}}</pre>
</pre>


Last, call the footer, which has three parameters: ''1'', ''2'', and ''color''.
At the end of the table, place the table closing code:
<pre>|}</pre>


===Example===
===Example===
====[[Bumpy Mountain]]====
====[[Ragged Mountain]]====
{{User:Abcboy/sandbox/MagnagateItemlistHeader|rock}}
{{DungeonItem/h|rock}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Oran Berry|Oran Berries}}
{{DungeonItem|Poké|3=1F-5|4=34-49|sprite=Poké currency}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Aspear Berry|Aspear Berries|sprite=None}}
{{DungeonItem|Oran Berry}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Chesto Berry|Chesto Berries}}
{{DungeonItem|Aspear Berry|sprite=None}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Escape Orb|Escape Orbs|Wonder Orb|sprite=MDBag Wonder Orb Sprite}}
{{DungeonItem|Chesto Berry}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Blast Seed|Blast Seeds|Seed|sprite=MDBag Seed Sprite}}
{{DungeonItem|Escape Orb|Wonder Orb}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Shiny Box|Shiny Boxes|Treasure box|sprite=None}}
{{DungeonItem|Blast Seed|Seed}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Heavy Box|Heavy Boxes|Treasure box|sprite=None}}
{{DungeonItem|Shiny Box|Treasure box|sprite=None}}
{{User:Abcboy/sandbox/MagnagateItemlistFooter|rock|34-49 after the first visit}}
{{DungeonItem|Heavy Box|Treasure box|sprite=None}}
|}


====[[Stone Cave]]====
====[[Stony Cave]]====
{{User:Abcboy/sandbox/MagnagateItemlistHeader|rock}}
{{DungeonItem/h|rock}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Oran Berry|Oran Berries}}
{{DungeonItem|Poké|3=B1F-B5|4=30-57|sprite=Poké currency}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Aspear Berry|Aspear Berries|sprite=None}}
{{DungeonItem|Oran Berry}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Chesto Berry|Chesto Berries}}
{{DungeonItem|Aspear Berry|sprite=None}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Pecha Berry|Pecha Berries|sprite=MDBag Pecha Berry IV Sprite}}
{{DungeonItem|Chesto Berry}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Escape Orb|Escape Orbs|Wonder Orb|sprite=MDBag Wonder Orb Sprite}}
{{DungeonItem|Pecha Berry|sprite=MDBag Pecha Berry Sprite}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Health Orb|Health Orbs|Wonder Orb|sprite=MDBag Wonder Orb Sprite}}
{{DungeonItem|Escape Orb|Wonder Orb}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Everyone's Strength Orb|Everyone's Strength Orbs|Wonder Orb|sprite=MDBag Wonder Orb Sprite}}
{{DungeonItem|Health Orb|Wonder Orb}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Rollcall Orb|Rollcall Orbs|Wonder Orb|sprite=MDBag Wonder Orb Sprite}}
{{DungeonItem|Everyone's Strength Orb|Wonder Orb}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Shiny Box|Shiny Boxes|Treasure box|sprite=None}}
{{DungeonItem|Rollcall Orb|Wonder Orb}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Sinister Box|Sinister Boxes|Treasure box|sprite=None}}
{{DungeonItem|Shiny Box|Treasure box|sprite=None}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Zinc Band|Zinc Bands|Scarf|sprite=MDBag Scarf Sprite}}
{{DungeonItem|Sinister Box|Treasure box|sprite=None}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Heal Seed|Heal Seeds|Seed|sprite=MDBag Seed Sprite}}
{{DungeonItem|Zinc Band|Scarf}}
{{User:Abcboy/sandbox/MagnagateItemlistEntry|Max Elixir|Max Elixirs|Health drink|sprite=MDBag Health Drink Sprite}}
{{DungeonItem|Heal Seed|Seed}}
{{User:Abcboy/sandbox/MagnagateItemlistFooter|rock|34-49 after the first visit}}
{{DungeonItem|Max Elixir|Health drink|sprite=MDBag Health drink Sprite}}
|}
 
==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)
: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. <span class="sc">[[User:Werdnae|<span style="color:#2D4B98;">Werdnae</span>]]</span> <small>[[User talk:Werdnae|<span style="color:#009000;">(talk)</span>]]</small> 02:30, 23 December 2012 (UTC)
::Okay then. I've gone through and I believe most pages using this template should be fixed. --[[User:Abcboy|Abcboy]] ([[User talk:Abcboy|talk]]) 11:10, 24 December 2012 (UTC)
 
== TM  ==
 
What should I do about TM links in this template I have seen two different sollutions <nowiki>{{DungeonItem|TM Roost|TM}} and {{DungeonItem|Brick Break|TM31|??|sprite=MDBag TM Sprite}}</nowiki><br>Which one should I use? --[[User:Raltseye|Raltseye]] ([[User talk:Raltseye|talk]]) 09:50, 13 June 2015 (UTC)
{{DungeonItem/h|normal}}
{{DungeonItem|TM Roost|TM}}
{{DungeonItem|Brick Break|TM31|??|sprite=MDBag TM Sprite}}
|}
 
== Item link change request ==
 
Since the template is locked, could someone who can edit it change the <code>MDBag Looplet Sprite.png</code> image link to <code>MDBag Looplet VI Sprite.png</code>, where the image is actually uploaded? [[User:Schiffy|<span style="color:#006400;">I don't even give a Schif</span>]] ([[User talk:Schiffy|<span style="color:#FF6600;">Talk</span>]] &bull; [[Special:Contributions/Schiffy|<span style="color:#FF0000;">Contribs</span>]]) 23:11, 11 August 2016 (UTC)
:There is no means to edit the template code for that. You can add <code>|sprite=</code> followed by the file name minus the extention if you want the proper image to display. [[User:Berrenta|Berrenta]] ([[User talk:Berrenta|talk]]) 23:17, 11 August 2016 (UTC)
::I mean, yes, but if the template currently has a non-existent image link coded in, and there is an image with a different name, wouldn't it make more sense to just change the template (or... move the image, I guess)? [[User:Schiffy|<span style="color:#006400;">I don't even give a Schif</span>]] ([[User talk:Schiffy|<span style="color:#FF6600;">Talk</span>]] &bull; [[Special:Contributions/Schiffy|<span style="color:#FF0000;">Contribs</span>]]) 17:57, 12 August 2016 (UTC)
 
== add note argument ==
 
Could somebody add a note argument after the item name? [[User:MannedTooth|<span style="color:#FF8000"> MannedTooth </span>]] ([[User_Talk:MannedTooth|Talk]]) 03:39, 18 October 2016 (UTC)

Revision as of 03:39, 18 October 2016

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 TDS Sprite.png Oran Berry ??F
None.png Aspear Berry ??F
MDBag Chesto Berry TDS Sprite.png Chesto Berry ??F
MDBag Wonder Orb TDS Sprite.png Escape Orb ??F
MDBag Seed TDS 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 TDS Sprite.png Oran Berry ??F
None.png Aspear Berry ??F
MDBag Chesto Berry TDS Sprite.png Chesto Berry ??F
MDBag Pecha Berry Sprite.png Pecha Berry ??F
MDBag Wonder Orb TDS Sprite.png Escape Orb ??F
MDBag Wonder Orb TDS Sprite.png Health Orb ??F
MDBag Wonder Orb TDS Sprite.png Everyone's Strength Orb ??F
MDBag Wonder Orb TDS Sprite.png Rollcall Orb ??F
None.png Shiny Box ??F
None.png Sinister Box ??F
MDBag Scarf TDS Sprite.png Zinc Band ??F
MDBag Seed TDS Sprite.png Heal Seed ??F
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)

TM

What should I do about TM links in this template I have seen two different sollutions {{DungeonItem|TM Roost|TM}} and {{DungeonItem|Brick Break|TM31|??|sprite=MDBag TM Sprite}}
Which one should I use? --Raltseye (talk) 09:50, 13 June 2015 (UTC)

Item Floors
MDBag TM TDS Sprite.png TM Roost ??F
MDBag TM Sprite.png Brick Break ??F

Item link change request

Since the template is locked, could someone who can edit it change the MDBag Looplet Sprite.png image link to MDBag Looplet VI Sprite.png, where the image is actually uploaded? I don't even give a Schif (TalkContribs) 23:11, 11 August 2016 (UTC)

There is no means to edit the template code for that. You can add |sprite= followed by the file name minus the extention if you want the proper image to display. Berrenta (talk) 23:17, 11 August 2016 (UTC)
I mean, yes, but if the template currently has a non-existent image link coded in, and there is an image with a different name, wouldn't it make more sense to just change the template (or... move the image, I guess)? I don't even give a Schif (TalkContribs) 17:57, 12 August 2016 (UTC)

add note argument

Could somebody add a note argument after the item name? MannedTooth (Talk) 03:39, 18 October 2016 (UTC)