FTB-Gamepedia / Tilesheets

Adds a parser function that looks up a table for an item and returns the requested image.
MIT License
7 stars 5 forks source link

Aliases #63

Open xbony2 opened 7 years ago

xbony2 commented 7 years ago

This is one of my crazy ideas, but I don't think it's too crazy, so I'll share it. Simple idea: allowing a tile to have aliases. For example, Stained Clay, Hardened Clay and Terracotta are all three names for one block in Vanilla in different versions. Doing {{Gc|mod=V|dis=false|title=Blue Hardened Clay|Blue Terracotta}} every page through 1.10-1.11 seems silly, and also it hurts automatically translated tile names (hopefully each alias could be translated).

retep998 commented 7 years ago

Allowing aliases would be as simple as removing the check for whether a tile already exists at that position (https://github.com/FTB-Gamepedia/Tilesheets/blob/master/special/TileManager.php#L86-L88). What would be trickier however is figuring out how ftb-rs would deal with such cases when attempting to update a tilesheet. Come up with a good concrete solution and I'll consider this idea.

elifoster commented 7 years ago

I have thought about this briefly in the past and I agree it would be useful.

@retep998 I think it would be nicer and easier to just have some tile names point to a specific tile rather than actually add new sets of tiles.