#Add bucket repeated values to an infobox with multiple tabs

1 messages · Page 1 of 1 (latest)

hot crescent
obsidian oriole
#

For example I have the item with 2 IDs

#

my infobox have 2 tabs, first tab for 21169 and the second one for 21170

past glade
#

If the repeated value needs to be placed into the same spot, then this is easier.
If you want to display values separately (which seems to be the case), it's a bit harder. One thing you can do is to join these repeated values with a delimiter (e.g. ;) and then use string manipulation functions (e.g. Module:String) to retrieve the first/second value only.

#

If you are willing to write Lua, then repeated values will come back as a table of 2 values. You'll just need to take values at index 1 for the first tab and then use values at index 2 for the second tab.

obsidian oriole
#

I can't write lua so is it possible to retrieve 2 different rows and put it to the same template?

#

No idea how to retrieve the data twice and put to the second tab of the template

past glade
#

Hmmm. Trying to retrieve data and put them in an infobox seems like an anti-pattern since the main use case is to store data on individual pages (usually accompanied by an infobox) and then query data on a separate page.
If possible, maybe avoid using repeated values in the first place? Simply store them separately should greatly improve convenience.

obsidian oriole
#

store them in 2 pages and use tabberneue is quite easy to figure out

#

Well, I'm trying to recreate the below infobox