Jump to content

Extension talk:TabberNeue

Add topic
From mediawiki.org
Latest comment: 19 minutes ago by Filburt in topic Lua Support

Box overriding too many tabs

[edit]

I have a box displayed alongside tab contents. When the tab menu contains too many tabs the box overflows it, and scrolling the tab menu is broken. I can see the arrow indicating more tabs exist, but nothing happens when I click it. What could be the reason? I'm using MW 1.40 and TabberNeue 2.7.4. 85.64.143.45 20:00, 31 March 2025 (UTC)Reply

disable cache option

[edit]

sometimes the cache prevents getting the latest changes of a transcluded page. Would you consider to add an option in order to control the cache here

	async fetchData() {
		try {
			await this.validateUrl();
			const cachedData = this.checkCache();
			if ( cachedData ) {
				return cachedData;
			}

			const data = await this.fetchDataFromUrl();
			const parsedData = this.parseData( data );
			return this.cacheData( parsedData );
		} catch ( error ) {
			return Promise.reject( `[TabberNeue] Error fetching data: ${ error }` );
		}
	}

(modules/Transclude.js) in the tabbertransclude tag to disable it if needed ? Thomas-topway-it (talk) 10:17, 24 February 2025 (UTC)Reply

Add ability to set custom prepended text to tabpanel IDs

[edit]

For the tabpanel IDs, it would be nice to be able to set a custom prepend for a specific tabber, instead of using "tabber-".

Maybe something like this with a better name (panel-id-prepend="newtext-"):

<tabber panel-id-prepend="newtext-">
|-|Awesome Tab Title 1=
Awesome first tab content goes here.
|-|Awesome Tab Title 2=
Awesome second tab content goes here.
|-|Awesome Tab Title 3=
Awesome third tab content goes here.
</tabber>

SuperNickno (talk) 03:08, 30 October 2025 (UTC)Reply

Lua Support

[edit]

I tried to implement tabs with Lua, but I get the error:

Lua error in Module:Test_tabs at line 4: attempt to index field 'tabber' (a nil value).

Lua Module:

local p = {}

function p.testTabs(frame)
    mw.ext.tabber.render( {
     {
         label = 'Tab 1',
         content = 'Content 1'
     },
     {
         label = 'Tab 2',
         content = 'Content 2'
     },
     {
         label = 'Tab 3',
         content = 'Content 3'
     },
     {
         label = 'Tab 4',
         content = 'Content 4'
     }
 } )
end

return p

Any idea? Thanks for support! Filburt (talk) 16:11, 8 January 2026 (UTC)Reply