Template talk:Infobox item

From Nguhcraft Wiki
Jump to navigation Jump to search

Lua

If we don't want to copy paste like this:

{{Infobox/tabber
|label1={{{image-tab-label|}}}|{{Infobox/image|image={{{image|}}}|caption={{{image-label|}}}|options=border{{!}}frameless{{!}}128px}}
|label2={{{image-tab-label2|}}}|{{Infobox/image|image={{{image2|}}}|caption={{{image-label2|}}}|options=border{{!}}frameless{{!}}128px}}
|label3={{{image-tab-label3|}}}|{{Infobox/image|image={{{image3|}}}|caption={{{image-label3|}}}|options=border{{!}}frameless{{!}}128px}}
|label4={{{image-tab-label4|}}}|{{Infobox/image|image={{{image4|}}}|caption={{{image-label4|}}}|options=border{{!}}frameless{{!}}128px}}
|label5={{{image-tab-label5|}}}|{{Infobox/image|image={{{image5|}}}|caption={{{image-label5|}}}|options=border{{!}}frameless{{!}}128px}}
}}

we could probably use some Lua to be able to have n images instead of only 5 or how many times we copied, but maybe this will do for now. Viklo (talk) 15:09, 19 December 2024 (UTC)