Template talk:Inventory slot

From Minecraft Wiki
Jump to: navigation, search

Animated Fire Texture[edit]

Hello.

I've just uploaded an animated version of the Fire grid texture, thanks to the new texture format in the Redstone Update (Minecraft 1.5). I embedded it below so you guys can see it.

Invicon Fire.gif

I was wondering if it would be possible for someone to use my animated fire render as the fire grid image for this template so that we don't have to look at that boring static image of fire.

Thank you for your consideration. —YoshiOG1 19:40, 14 March 2013 (UTC)

The animation would be nice, but the template only uses PNG images, not GIFs, and I'm hesitant to add special-case code. You could turn it into a (non-standard) APNG animated image, though that isn't supported by all browsers. -- Orthotope 01:58, 15 March 2013 (UTC)
That's OK... Thanks anyway!
So I guess I could add it to Fire's gallery instead... —YoshiOG1 19:15, 20 March 2013 (UTC)

I need the source on this page.[edit]

Please post the source of this page here. --Tag365 14:02, 6 June 2013 (UTC)

Click the "View source" tab. ultradude25Talk
Contribs
14:50, 6 June 2013 (UTC)

"Any Wood" values?[edit]

Now that we have lua, would it be possible to add "Any Wood X" (X=Logs, Planks, Stairs, Slabs) values that could abstract out those manually-maintained lists? --MentalMouse42 (talk) 23:00, 24 October 2013 (UTC)

We don't have lua until the update to 1.21, which is meant to happen by the end of November. The lua version of this template already has frame groups, which lets you define a list of frames under an alias. MattTalk
Contribs
⎜ 03:29, 25 October 2013 (UTC)
Cool, so it should be straightforward to do "Any Wood", and suchlike. --MentalMouse42 (talk) 10:14, 25 October 2013 (UTC)
Well I was thinking using values like "Wood" (unless there's conflicts with existing names), but I'm not decided between the two. MattTalk
Contribs
⎜ 11:09, 25 October 2013 (UTC)
I'm not terribly invested in the difference, but ISTM that "Any" is explicitly inclusive, while "Wood", "Wooden Stairs", etc., could be seen as underspecified. --MentalMouse42 (talk) 13:23, 25 October 2013 (UTC)
Module:Grid/Aliases MattTalk
Contribs
⎜ 08:44, 22 January 2014 (UTC)
Cool, Thanks! I don't completely understand the Golden Apple aliases, but the others look straightfoward. Hmm... no docs for the module? I'm assuming it's interface-compatible with the old Template:Grid, but it would be nice to have that made explicit. --MentalMouse42 (talk) 14:22, 23 January 2014 (UTC)
[Title]Mod:Name,Amount[Description] --91.9.202.58 14:28, 23 January 2014 (UTC)
(edit conflict) The golden apple aliases add the colouring to the name (go hover over the outputs on Golden Apple). A new feature in the lua version is the [] syntax before and after the name which adds a title and description respectively, for use with Minetip. This could of course be done directly on the page, but why not do it here so it's automatically coloured by just using the name?
I'll do the docs after I've finished implementing everything, but unless you're going to be using the module directly (don't do that), existing functionality should be mostly the same. MattTalk
Contribs
⎜ 14:37, 23 January 2014 (UTC)
I, or someone, might actually have cause to use it, if and when we get around to setting up the icons and extra grids for Thaumcraft. However, that doesn't seem imminent. --MentalMouse42 (talk) 00:25, 24 January 2014 (UTC)

Problem with the vanilla-prefix[edit]

I noticed a bug in this template. When the vanilla-prefix is used to show vanilla-items in a grid where a mod is defined (mod=), only the first vanilla-item or block is shown. You can see this in the documentation Has someone a solution?--.zip de.MinecraftWiki-Admin Diskussion 07:40, 31 October 2013 (UTC)

It used to work, I probably broke it at some point. It'll work in the lua version. MattTalk
Contribs
⎜ 10:33, 31 October 2013 (UTC)
We're on Mediawiki 1.21 now and lua should work. Are there plans to rewrite the template in lua to get rid of the existing bugs? --eagle3000 (D ~ B) 15:38, 20 December 2013 (UTC)
The Lua version has existed for a few months now, I'm just still waiting on Curse. MattTalk
Contribs
⎜ 22:13, 20 December 2013 (UTC)
We now finally have Lua, so everything should always work forever. MattTalk
Contribs
⎜ 08:42, 22 January 2014 (UTC)

Animation.[edit]

Well, I'm trying to translate the Grid/Crafting Template but without translating this template. But I came to a problem with animation, you can't change the link for a specific part of the animation. ZlingerZZ (talk) 07:17, 15 February 2014 (UTC)

It's never been possible. And it doesn't really need to be, as the image name should always be the same as the page it should link to. MattTalk
Contribs
⎜ 08:28, 15 February 2014 (UTC)

Grid background[edit]

I recently installed this module on my wiki, and all the images show, except for the background. Does anyone know how to fix this? Been trying for an hour so, with no luck

SakuraTheKitten (talk) 18:23, 7 April 2014 (UTC)

You need the styling in Mediawiki:Common.css. MattTalk
Contribs
⎜ 02:12, 8 April 2014 (UTC)

Overlay parameter[edit]

Can we possibly add some sort of overlay parameter? either as a part of the grid syntax (would make it easier on other forms of grid) or it's own parameter. It would basically do the same thing that {{{1}}} does to {{{default}}}.

The main reason is it would be helpful for the banner article, as uploading every combination would result in thousands of images.

--KnightMiner (t|c) 01:10, 19 August 2014 (UTC)

I need the source[edit]

I am trying to add this template to Turkish page but there is nothing in view source tab. How can i find it? --LambayaFunfDe (talk) 17:57, July 19, 2017 (UTC)

The reason that there is nothing in the template is that it invokes Module:Inventory slot, so that is where you will find the template. – Nixinova Grid Book and Quill.png Grid Diamond Pickaxe.png Grid Map.png 20:06, 19 July 2017 (UTC)
The issue with the Turkish wiki is that in Turkish, I becomes ı and i becomes İ. In #invoke: expressions, you have to change every İ to I (or i, if it's the first letter) and every i to ı to make them work. | violine1101(Talk) 20:12, 19 July 2017 (UTC)

Use of {{!}} and {{=}}[edit]

When I set the title and link to none on a template using {{!}} and {{=}} it becomes like this: title=none
Can anyone fix this? – ItsPlantseed|⟩ 13:44, 3 May 2018 (UTC)

I'm trying to imitate the {{{default}}}, but rather than appearing behind the items, the overlay will disappear when it is not empty. Just like the armor slot. – ItsPlantseed|⟩ 14:00, 3 May 2018 (UTC)
Why are you using {{!}} and {{=}}? Those templates are to esacpe template syntax, not be used in it. You also have a non-required .png in the name. Try the following: Grid layout Head Empty.pngKnightMiner t/c 02:44, 4 May 2018 (UTC)
Yes, I see now. My bad. – ItsPlantseed|⟩ 06:01, 4 May 2018 (UTC)
Why would you expect template parameters to work when you've escaped the parameters? Either way, just only set {{{default}}} if there's no value? {{slot|{{{1|}}}|default={{#if: {{{1|}}} || Grid layout Head Empty }}}} MajrTalk
Contribs
03:54, 4 May 2018 (UTC)
Thanks. I was too befuddled when writing the template. Just got it to work. – ItsPlantseed|⟩ 06:01, 4 May 2018 (UTC)