Extension talk:Tabs/Flow export
This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
I can't get this to work with tables
Hi.
This extension looks very promising!
I'm trying to use this with tables. I have:
<tabs style="font-weight:bold;" class="foo" id="bar"> <tab name="Our Details"> {| ![[Organisation::{{{Name|}}}]] |- ! width="18%"|Address | [[Address::{{{Address|}}}]] |- ! Town | [[Location::{{{Town|}}}]] |} </tab> <tab name="Projects"> {| id="wikitable" ! width="18%"|Project Name | [[Project::{{{Project|}}}]] |} </tab> </tabs>
The tabs show up fine, but the table is displayed completely empty. Obviously, if I knock out the tabs stuff it displays the field contents fine.
I also tried:
<tabs> {{#tag:tab|{{#!: {| id="wikitable" ![[Organisation::{{{Name|}}}]] |- ! width="18%"|Address | [[Address::{{{Address|}}}]] |- ! Town | [[Location::{{{Town|}}}]] |}}}|name="Our Details}} {{#tag:tab|{{#!: {| id="wikitable" ! width="18%"|Project Name | [[Project::{{{Project|}}}]] |}}}|name=Projects}} </tabs>
It still didn't work. I suspect it is not parsing the triple brackets.
Any pointers on what I am doing wrong?
Thanks! Mitchelln (talk) 13:07, 4 February 2014 (UTC)
- When I try this code, it works just as it would when not inside a tabs menu. What I am assuming you're expecting is that it will have wikitable layout. This doesn't happen, because for the first table, you don't define any attributes for the table, and for the second table, you define
id="wikitable"
while it should beclass="wikitable"
- The code that does show the wikitables in the correct format would be:
<tabs> <tab name="Our Details"> {| class="wikitable" ! ![[Organisation:{{{Name|}}}]] |- ! width="18%"|Address | [[Address:{{{Address|}}}]] |- ! Town | [[Location:{{{Town|}}}]] |} </tab> <tab name="Projects"> {| class="wikitable" ! width="18%"|Project Name | [[Project:{{{Project|}}}]] |} </tab> </tabs>
- Here I've also removed the unnecessary attributes on the
<tabs>
tag, and changed your links to only have a single:
after the namespace (changed[[Project::{{{Project|}}}]]
to[[Project:{{{Project|}}}]]
). - I hope this extension works fine for you other than this. It's great hearing you're happy with it! Joeytje50 (talk) 19:31, 5 February 2014 (UTC)
Setting "Active" Tab
Using this plugin, is it possible to edit which tab is active when the page loads?
Example:
<tabs>
<tab name="Hi">Hello there!</tab>
<tab name="Bye" active>Goodbye!</tab>
</tabs>
By adding the active attribute, the second tab will be shown when the page loads, and not just the first tab in the the tab menu.
Is a feature like this possible? I understand you can directly link to a tab, but I want to just have the desired tab load on my page versus using a link to do so. HawkHunter3 (talk) 18:06, 16 March 2015 (UTC)
- I'm very sorry for not getting back to you at all (I didn't get any email notifications about this). This is currently not possible, but it does sound like a good idea to implement. I'll try to get this implemented some time in the future, but this might take a while since I'm in my exam period right now (nice timing on getting back to you now eh?). I'll put this on my to-do list though. Thanks for the suggestion. Joeytje50 (talk) 21:19, 15 May 2016 (UTC)
- Any updates on this? It would be nice to preset active tabs, for example inside things like navboxes. 109.174.114.72 (talk) 18:41, 17 November 2022 (UTC)
Output Error
I have this extension working without issue on MW 1.25.3 however on 1.26.0 I've receiving the below error:
Warning: OutputPage::getModuleStyles: style module should define its position explicitly: ext.tabs ResourceLoaderFileModule 2605:A000:1507:80DB:34CD:48AE:D118:2604 (talk) 13:03, 20 December 2015 (UTC)
- I'm have the same issue and received a message back
- Since mediawiki 1.26 I required position to be set and will default to bottom but come up with an error.
- I have no Idea on how to fix it.
- bootstrap extension had the same issue and I found this
- https://phabricator.wikimedia.org/rEBOO21a2c420b91b06b780e146a678cda808d1086782#bd1dfec3 Legaulph (talk) 17:08, 14 January 2016 (UTC)
- OK I figured it out
- I updated Tabs.php file with 'position' => 'top',
- <code>
- $wgResourceModules['ext.tabs'] = array(
- 'position' => 'top',
- 'scripts' => 'ext.tabs.js',
- 'styles' => 'ext.tabs.css',
- </code> Legaulph (talk) 01:25, 15 January 2016 (UTC)
collapsed attribute in template can't work
Hi@Joeytje50,
I create the mediawiki template "novel" as below:
{{#tag:tab |{{{content|{{{1|'''Warning! there is no content.'''}}}}}} |{{#if:{{{collapsed|}}}|{{{collapsed}}}}} |class=novel |openname="{{#if:{{{openname|}}}|{{{openname}}}}}(Click to show)" |closename="{{#if:{{{closename|}}}|{{{closename}}}}}(Click to hide)" |style="background:white; width:100%" }}
But when I use the template:
{{template:novel |content=This is a test ! |collapsed=collapsed }}
the toggle box can't appear collapsed ! Do you know why? I am looking forward to your repaly! 59.172.176.183 (talk) 10:02, 13 July 2016 (UTC)
#Tag:Tab and #Tab seems to be broken when inside #Tag:Tabs
The example in Extension_talk:Tabs does not work at all for me. 118.212.156.145 (talk) 15:51, 25 January 2017 (UTC)
- I can confirm that I'm seeing the same problems Imamadmad (talk) 11:36, 20 March 2017 (UTC)
- It's a mighty shame, otherwise this would've been the perfect tab extension, and I would have no more use for tabber. Now I have to use both and sometimes even both won't do. 124.122.55.217 (talk) 14:17, 20 April 2017 (UTC)
Adding images
Hi, is it possible to use images inside the tabs? So far I can only get text to work. 2605:E000:858B:F900:18A2:6FDA:1C30:8E5C (talk) 11:29, 11 February 2017 (UTC)
Generating tabs with Lua Module
Hi there. I tried to generate a set of tabs using a Lua module but it seems the tags are parsed before the module as they were left as plain text. Any suggestion as to what format should be output by the Lua module for this to work properly? Imamadmad (talk) 17:10, 15 March 2017 (UTC)
A new tab
A new tab
Hello, can I add a new namespace to the pages, like talk namespace, and to call it 'draft'. But I want it to be in a new tab like the tab 'discussion', near the page. Actually, maybe I don't need a new namespace, just a new tab, but not like here or here, because it made the tab inside the page, I want it in the head of the page, near the discussion tab. someone? Betmidrash (talk) 14:04, 4 May 2017 (UTC)
- I'm sorry but that is not possible with my extension either. Those tabs are generated automatically by the page, so they are not part of the content. While it may be technically possible to make an extension that would do this, I think this is too specific to add to any existing extension. I think the best extension for you (if you want the whole page to be a tabbed interface) would still be Header Tabs.
- Alternatively you could use javascript to make your own extra 'tab' at the top of the page, but I think that is unnecessary extra work if HeaderTabs basically does what you want to do. Joeytje50 (talk) 10:09, 9 May 2017 (UTC)
- O.k. Thank you very much. Betmidrash (talk) 06:02, 11 May 2017 (UTC)
PDF rendering problem
When attempting to render a PDF using mwlib rendering server, the rendered PDF shows the source code instead of the published page. This is likely a mwlib problem but was wondering if anyone has a fix/workaround. Jamal22066 (talk) 18:18, 27 October 2017 (UTC)
- I'm sorry but I don't really understand what the problem is. Which extension or script is not working? Joeytje50 (talk) 08:42, 29 March 2018 (UTC)
- The issue was that mwlib can only convert the Wiki markdown language. I was using the 'tabber' extension which is used to create tabs on a page. mwlib can not render a page properly that is using this extension because it is not wiki markdown language. Jamal22066 (talk) 17:53, 16 April 2018 (UTC)
Tabs no longer working
RESOLVED | |
Fixed with https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Tabs/+/509435/ on the master branch
|
The following discussion is closed. Please do not modify it. Subsequent comments should be made on the appropriate discussion page. No further edits should be made to this discussion.
MediaWiki 1.30.0
PHP 7.1.8 (apache2handler) Semantic MediaWiki 2.5.5 Tabs 1.3.2 Tabs no longer working at all Legaulph (talk) 14:33, 25 January 2018 (UTC)
- I am getting the same issue, with MediaWiki 1.30.0 and PHP 7.0.27, with the same version of Tabs (but from the master branch). From what I can see, the error is due to the styles not being applied and it appears to be a problem with the extension, as I get in the Debug Log when I turn on the Debug Toolbar of MediaWiki:
[resourceloader] Unexpected general module "ext.tabs" in styles queue.
- I've been looking to see how this can be fixed, but cannot find a fix for it. Things I tried:
- Commenting out usages of addModuleStyles() and addModuleScripts() in Tabs.body.php
- Changing extension.json (but this problem was occurring even with the version of Tabs from the REL1_30 branch and editing Tabs.php instead) to have the styles and scripts separate, which removes the error but doesn't load the styles
- Changing the uses of addModuleStyles() and addModuleScripts() to just addModules()
- None of these have worked, though. CyberBotX (talk) 12:52, 23 February 2018 (UTC)
- ./Tabs.body.php:
- I was able to get rid of the message [resourceloader] Unexpected general module "ext.tabs" in styles queue
- Tabs.body.php change
$parserOut->addModuleStyles('ext.tabs'); $parserOut->addModuleScripts('ext.tabs');
- To
$parserOut->addModules('ext.tabs'); //$parserOut->addModuleScripts('ext.tabs');
- This message is also showing
[GlobalTitleFail] MessageCache::parse called by Tabs->renderTab/trim/Message->__toString/Message->toString/Message->parseText/MessageCache->parse with no title set.
- Extension:AddMessages
- I'm curious: What was your "No longer working" failure mode?
- I installed a fresh MW 1.31 instance (PHP 7.2.7) and now with the same tab-generating wikitext and version of Tabs (1.3.2) that works in my old MW 1.30 instance (PHP 5.5.38) instead of tabs I get radio buttons for each tab title and all the text from all the tabs below them. Commenting out the
$parserOut->addModuleScripts('ext.tabs');
line and loading the AddMessages extension suppresses the MW debug log messages (as you note above), but still doesn't display the tabs. Josh Simon (talk) 11:56, 27 June 2018 (UTC) - Sorry for the late reply. I'm not sure what you mean by failure mode. The tabs would not work, MediaWiki was working fine just could not get tabs working.
- I'm recently testing on MediaWiki 1.31
MediaWiki 1.31.0
PHP 7.1.8 (apache2handler)
MySQL 5.6.34-log
Tabs 1.3.2
- everything is still working with the configuration above. It may have to do with PHP 7.2.7 or did you change the line above $parserOut->addModuleStyles('ext.tabs'); to $parserOut->addModules('ext.tabs');? Legaulph (talk) 11:57, 26 July 2018 (UTC)
- Aha! I missed the "replace with..." piece. If I change
...->addModuleScripts...
to...->addModules...
on line 378 of Tabs.body.php then the tabs do work as expected again (MW 1.31, PHP 7.2.8, Tabs 1.3.2). Thanks!! Josh Simon (talk) 17:14, 26 July 2018 (UTC) - Currently using MW 1.31.1, PHP 7.2.15, and Tabs 1.3.2 and I've applied the changes noted above.
//$parserOut->addModuleStyles('ext.tabs'); //$parserOut->addModuleScripts('ext.tabs'); $parserOut->addModules('ext.tabs');
- I've also added the AddMessages plugin as advised, which did fix the tab buttons themselves. However, I'm encountering a bug where most of the tab content won't be displayed. It'll make it to a 3rd tab, and then stop displaying any afterwards.
- Examples:
- https://wiki.ffxiv-roleplayers.com/pages/Greer_Wolf
- https://wiki.ffxiv-roleplayers.com/pages/Kaz_Ashura
- https://wiki.ffxiv-roleplayers.com/pages/Azlem_Riendotte
- https://wiki.ffxiv-roleplayers.com/pages/Mihk'a_Epocan
- Unnamed mercenary (talk) 04:00, 1 March 2019 (UTC)
- Fixed with https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Tabs/+/509435/ (and confirmed that it fixed the issue. Paladox (talk) 16:00, 10 May 2019 (UTC)
Boxes don't work properly
Hello I installed the tabs extension last night and I've realized that the following contents are not working properly for some reason. I've tried all of the methods below and they don't seem to resolve what I am looking for. Here are the examples:
This image above shows the proper one in another site, and tabs above work and adjust the page as I click different tabs. This is how it is supposed to work.
This is mine. I tried to make it work like the first link, but it doesn't work like as I wanted it to be. pages don't adjust either. the codes are same too.
Is there something I am doing wrong in this situation? Please help. 173.56.73.5 (talk) 16:09, 21 March 2018 (UTC)
- What versions are you running mediawiki, PHP, 148.177.1.210 (talk) 11:27, 2 April 2018 (UTC)
- I am currently using latest mediawiki that's released. as for PHP, 5.5.51-38.2 - Percona Server (GPL), Release 38.2, Revision 727 173.52.95.75 (talk) 04:26, 6 April 2018 (UTC)
Tabs do not work
I tried everything but the tabs do not work. I write:
<tabber> |-|1= Test |-|2= Test |-|3= Test </tabber>
but it does not work. The tabbers are shown but they don't work.
Please can someone help me? The tabs are very important to our wiki.
Thank you! Knetschkäfer (talk) 17:52, 3 August 2019 (UTC)
- Here is a test page from my wiki: wiki.silverfang.net/Tabber_Test_Page Knetschkäfer (talk) 17:52, 3 August 2019 (UTC)
- Apologies for the late reply. As it seems, on that linked page, the tabs extension to which you are commenting here, does seem to work fine. This extension does not include the Tabber extension, which is its own extension. If you want to use that, you can install it separately, but the tabs do function just fine the way you show on that linked page. Joeytje50 (talk) 22:03, 9 October 2019 (UTC)
Minor bug?
diff --git a/Tabs.body.php b/Tabs.body.php index 16d12b4..1c30aa9 100644 --- a/Tabs.body.php +++ b/Tabs.body.php @@ -398,7 +398,7 @@ class Tabs { '.tabs-dropdown li,'. '.tabs-dropdown ul,'. '.tabs-dropdown ol {'. - 'background-color: '.wfMessage('tabs-dropdown-bgcolor'). + 'background-color: '.wfMessage('tabs-dropdown-bgcolor')->text(). '}'; return "<style type=\"text/css\" id=\"tabs-dynamic-styles\">/*<![CDATA[*/\n/* Dynamically generated tabs styles */\n$css\n/*]]>*/</style>"; }
Found this was interfering with math tags on my page, and dug it down to this. I am not familiar with innards, but this fixed it for me.
~~~~ LarryAlgo (talk) 08:15, 12 December 2019 (UTC)
- Also just to add that I ran into this again, this time with bisecting it to this change:I also noticed the pattern and went ahead and changed found all my "wfMessage" and added ->text(). I'm still an amateur to mediawiki.. I can sent a patch when I'm in an easier place to do so. LarryAlgo (talk) 08:41, 12 December 2019 (UTC)
--- a/Tabs.body.php +++ b/Tabs.body.php @@ -92,7 +92,7 @@ class Tabs { if (isset($names[$index-1])) { // if array $names already has a name defined at position $index, use that. $name = $names[$index-1]; // minus 1 because tabs are 1-based, arrays 0-based. } else { // otherwise, use the entered name, or the $index with a "Tab " prefix if it is not defined or empty. - $name = trim(isset($attr['name']) && $attr['name'] ? $attr['name'] : wfMessage('tabs-tab-label', $index)); + $name = trim(isset($attr['name']) && $attr['name'] ? $attr['name'] : wfMessage('tabs-tab-label', $index)->text()); } } if (!$nested && !$nestAttr) { // This runs when the tab is not nested inside a <tabs> tag.
bottom tabs
Hello
Good time
This Extension is very useful. Thank you
How can I show the tabs below?
Like the following link:
https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_tab_header Sokote zaman (talk) 00:42, 12 November 2020 (UTC)
Issue: not loading the values for template parameters
When I create a template with parameters shown in tabs
<tabs><tab>{{{1}}} {{{foo}}} {{{bar|}}</tab></tabs>{{{1}}}{{{bar}}}
the parameters are not loaded when I include the template (eg {{{tabs|one|foo|bar}}}
)
The parameters outside the <tabs>
tag are loaded properly.
Has anyone else experienced this? The (read-restricted) wiki is running Tabs version 1.3.2 on MediaWiki 1.27.8. DWizzy (talk) 21:59, 7 December 2020 (UTC)
- Hi there, there is one problem with your line of code I noticed, namely that your
{{{bar|}}
is missing a closing bracket. Please first try changing that to see if that fixes it. Otherwise, could you try using the parser-function syntax for the tabs? So, for your line of code, that would be: {{#tag:tabs| {{#tab:| {{{1}}} {{{foo}}} {{{bar|}}} }} }} {{{1}}}{{{bar}}}
- Due to differences in the parsing of different types of functions, some functionality that is supported in the parser-function syntax is not supported in the tag syntax.
- Hopefully this helps you! Joeytje50 (talk) 14:39, 9 December 2020 (UTC)
- I somehow missed your reply, thank you! :)
- Silly of me to give an incorrect example. The extra closing bracket didn't resolve it, nor did using the parser-function.
- In the end I resorted to using the Extension:Variables parser function
{{#var:foo}}
after defining mapping all the template parameters to variables. DWizzy (talk) 17:28, 30 December 2020 (UTC) - ===For anyone else experiencing this issue:===
- I have also encountered this issue recently, and found a solution for it through modifying the extension. Here's a link to the commit which shows the implemented fix:
github.com/forgecommunitywiki/mediawiki-extensions-Tabs/commit/20440ea2b2a6a7af438059c57135c2194a166b6b
(I seem to be barred from adding a real hyperlink by the abuse filter, oh well). - To summarize it and to preserve the fix in case the link becomes dead, you have to modify the extension's code (
includes/Tabs.php
) so that the tab extension functions (for both<tab>
and<tabs>
) take in the extra$frame
parameter and pass it into$parser->recursiveTagParse
. This gives the parser access to the frame object, which allows it to do variable/parameter substitution. - I might push this change to the upstream repo in the future, but do not plan to do so for now because of my lack of experience in contributing to Wikimedia repos and lack of time to try do so. If anyone wishes to make the change upstream themselves, please feel free to do so (though I'd like to be given a bit of credit if possible). SciWhiz12 (talk) 19:59, 7 April 2021 (UTC)
- Fix available on https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Tabs/+/827996. YOUR1 (talk) 12:29, 30 August 2022 (UTC)
- I've landed @YOUR1's patch, which will automatically ship in the REL1_39 branch which will be cut next week.
- It could be back-ported to other versions if @Joeytje50 as maintainer wants to, but I don't want to pre-judge. Jdforrester (WMF) (talk) 14:35, 31 August 2022 (UTC)
- We do need it in the 1.35 LTS version. YOUR1 (talk) 14:36, 31 August 2022 (UTC)
- Never mind this message; I'll pin our codebase at 4b1529d YOUR1 (talk) 14:41, 31 August 2022 (UTC)
Background Color on Label
I've looked all over and honestly it isn't very clear when reading about styling under the Usage. How does one change the background color on the label itself. Is that a CSS thing or something I can enter per tab? When I do the background color style it changes the color on the tab and not the label, and color just changes the text color of course. 24.111.201.85 (talk) 06:28, 30 April 2021 (UTC)
Parser function #tag:tag is not working
Hello! I attempted to use the example in the Usage page, which is the following code:
{{#tag:tabs| {{#tag:tab|Foo|name={{{1|}}}}} {{#tab:{{{2|}}}|Bar}} |style=color:{{#if:{{{1|}}}|green|red}} }}
It keeps rendering single tabs inside the Tabs box rather than adding tabs. It's making it difficult to implement certain templates that I have planned. Is anyone else encountering this? I know there was a thread earlier describing the same problem, and it seems like it still hasn't been fixed. Kiwibasket (talk) 00:49, 6 August 2021 (UTC)
Deprecation errors
When I installed this extension on a 1.39.1 version of Mediawiki I get these Deprecation errors:
Deprecated: Required parameter $parser follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 60
Deprecated: Required parameter $frame follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 60
Deprecated: Required parameter $parser follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 142
Deprecated: Required parameter $parser follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 225
Deprecated: Required parameter $frame follows optional parameter $attr in /mgi/software/test/mediawiki/extensions/Tabs/includes/Tabs.php on line 225
will these be fixed soon or is something else going on I need to dig in to? Kanto501 (talk) 13:35, 5 May 2023 (UTC)
- ok I fixed the issues for example on line 60 of the Tabs.php file you need to change:
- public function renderTab( $input, $attr = [], $parser, $frame ) {
- to
- public function renderTab( $input, $parser, $frame, $attr = [] ) {
- you would basically do the same thing for lines 142 and 225. Kanto501 (talk) 14:39, 5 May 2023 (UTC)
- well... now I get this when trying to add tabs to a page:
- Warning: Attempt to read property "tabsData" on array in /mediawiki/extensions/Tabs/includes/Tabs.php on line 228
- Warning: Trying to access array offset on value of type null in /mediawiki/extensions/Tabs/includes/Tabs.php on line 228
- Warning: Attempt to read property "tabsData" on array in /mediawiki/extensions/Tabs/includes/Tabs.php on line 229
- Warning: Trying to access array offset on value of type null in /mediawiki/extensions/Tabs/includes/Tabs.php on line 229
- I could not figure this out. I wonder if it is related to mediawiki 1.39.1 and using python version 8.0.28 which is my setup? Kanto501 (talk) 14:51, 5 May 2023 (UTC)
- python ? PHP you mean? :-)
- I have exactly the same problem with :
- MediaWiki : 1.39.3
- PHP: 8.2.7 (fpm-fcgi)
- OS : Fedora 38
- Warn :
- Warning: Attempt to read property "tabsData" on array in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 228
- Warning: Trying to access array offset on value of type null in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 228
- Warning: Attempt to read property "tabsData" on array in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 229
- Warning: Trying to access array offset on value of type null in /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php on line 229
- Internal error :
- [ZJGtbOzlGDYpFErl95X7PQAAAEE] /wiki/index.php?title=test Error: Attempt to modify property "tabsData" on array
- Backtrace:
- from /usr/share/mediawiki/extensions/Tabs/includes/Tabs.php(232)
- #0 /usr/share/mediawiki/includes/parser/Parser.php(4023): Tabs->renderTabs()
- #1 /usr/share/mediawiki/includes/parser/PPFrame_Hash.php(353): Parser->extensionSubstitution()
- #2 /usr/share/mediawiki/includes/parser/Parser.php(2955): PPFrame_Hash->expand()
- #3 /usr/share/mediawiki/includes/parser/Parser.php(1610): Parser->replaceVariables()
- #4 /usr/share/mediawiki/includes/parser/Parser.php(724): Parser->internalParse()
- #5 /usr/share/mediawiki/includes/content/WikitextContentHandler.php(301): Parser->parse()
- #6 /usr/share/mediawiki/includes/content/ContentHandler.php(1720): WikitextContentHandler->fillParserOutput()
- #7 /usr/share/mediawiki/includes/content/Renderer/ContentRenderer.php(47): ContentHandler->getParserOutput()
- #8 /usr/share/mediawiki/includes/Revision/RenderedRevision.php(265): MediaWiki\Content\Renderer\ContentRenderer->getParserOutput()
- #9 /usr/share/mediawiki/includes/Revision/RenderedRevision.php(237): MediaWiki\Revision\RenderedRevision->getSlotParserOutputUncached()
- #10 /usr/share/mediawiki/includes/Revision/RevisionRenderer.php(221): MediaWiki\Revision\RenderedRevision->getSlotParserOutput()
- #11 /usr/share/mediawiki/includes/Revision/RevisionRenderer.php(158): MediaWiki\Revision\RevisionRenderer->combineSlotOutput()
- #12 [internal function]: MediaWiki\Revision\RevisionRenderer->MediaWiki\Revision\{closure}()
- #13 /usr/share/mediawiki/includes/Revision/RenderedRevision.php(199): call_user_func()
- #14 /usr/share/mediawiki/includes/poolcounter/PoolWorkArticleView.php(91): MediaWiki\Revision\RenderedRevision->getRevisionParserOutput()
- #15 /usr/share/mediawiki/includes/poolcounter/PoolWorkArticleViewCurrent.php(97): PoolWorkArticleView->renderRevision()
- #16 /usr/share/mediawiki/includes/poolcounter/PoolCounterWork.php(162): PoolWorkArticleViewCurrent->doWork()
- #17 /usr/share/mediawiki/includes/page/ParserOutputAccess.php(299): PoolCounterWork->execute()
- #18 /usr/share/mediawiki/includes/page/Article.php(713): MediaWiki\Page\ParserOutputAccess->getParserOutput()
- #19 /usr/share/mediawiki/includes/page/Article.php(528): Article->generateContentOutput()
- #20 /usr/share/mediawiki/includes/actions/ViewAction.php(78): Article->view()
- #21 /usr/share/mediawiki/includes/MediaWiki.php(542): ViewAction->show()
- #22 /usr/share/mediawiki/includes/MediaWiki.php(322): MediaWiki->performAction()
- #23 /usr/share/mediawiki/includes/MediaWiki.php(904): MediaWiki->performRequest()
- #24 /usr/share/mediawiki/includes/MediaWiki.php(562): MediaWiki->main()
- #25 /usr/share/mediawiki/index.php(50): MediaWiki->run()
- #26 /usr/share/mediawiki/index.php(46): wfIndexMain()
- #27 {main} Xhan (talk) 13:54, 20 June 2023 (UTC)
Collapsed Tabs Affecting Redirects
I've recently noticed an issue where if a collapsed tab is above a heading that a Redirect page points to, that redirect goes too far down the page. Is there a solution to this problem? 107.15.19.120 (talk) 14:17, 29 March 2024 (UTC)
Deprecated in MediaWiki 1.42
Deprecated: Use of MediaWiki\Parser\Parser::$tabsData was deprecated in MediaWiki 1.42. Called from Tabs::init in /var/www/html/extensions/Tabs/includes/Tabs.php at line 35 P1ayer (talk) 13:45, 9 July 2024 (UTC)
- I've found a workaround for this:
- https://github.com/gbeine/mediawiki-extensions-Tabs/commit/2311b879cd86b2eb5424e0e06194e7cea98f7f74
- It works for me, but I cannot give any guarantee that it covers all use cases.
- Unlike this patch, there seems to be no need to patch the Parser class:
- https://phabricator.wikimedia.org/rMW9bc428fe849bec872143e6d61a0d906f3e90d4f1 Gbeine (talk) 09:25, 28 July 2024 (UTC)