alistair3149
7b1c319e24
feat: allow tab name to be parsed
...
This is an experimental config and can lead to performance issue and unexpected behavior.
Closes : #35
2024-04-24 15:13:08 -04:00
paladox
a6c61af08d
fix: Argument #1 ($input) must be of type string, null given ( #112 )
2024-01-03 15:00:55 -05:00
paladox
9a795f2a74
fix: PHP Notice: Uninitialized string offset: 0 ( #108 )
2023-11-05 18:10:02 -05:00
H. C. Kruse
7f75899995
feat: add support for nested tabbers in Codex ( #95 )
...
* refactor: Apply some code cleanup
* feat: WIP dynamic nested tabber in codex
* feat: Make deeply nested tabbers work
* doc: fix comment position
---------
Co-authored-by: alistair3149 <alistair3149@users.noreply.github.com>
2023-07-11 22:06:57 -04:00
alistair3149
a3212b6c2b
feat: wrap tab content in <p> if there are no HTML elements
2023-07-05 23:07:57 -04:00
alistair3149
c06f0e7e74
refactor: rename TabberNeueEnableLegacyMode to TabberNeueUseCodex
2023-07-05 23:00:32 -04:00
alistair3149
cd63b6c10f
refactor: remove noscript message
...
Tabber already shows content without JS, and noscript handling is a bit tricky in MW
2023-07-05 18:32:18 -04:00
alistair3149
0fbfefcb87
fix: avoid using noscript as it is disallowed by VE
2023-07-05 18:03:00 -04:00
alistair3149
89e90af034
feat: add experimental support of Codex
...
It can be enabled by setting `$wgTabberNeueEnableLegacyMode` to `true`.
It is the first implementation and a WIP with numerous caveats:
- Nested Tabber does not work
- Tabber Transclue does not work
2023-07-05 17:26:33 -04:00
alistair3149
874738db2a
feat: add langauge converter support
...
This should allow MW apply langauge conversion to tab title
2023-02-16 14:10:46 -05:00
alistair3149
365777eae3
feat: improve noscript support
...
1. Allow other tabs to be shown
2. Put noscript message in warning box
2023-02-16 14:02:04 -05:00
alistair3149
7b61ca663e
feat(core): use data-title instead of title attribute for tab panel
...
Title attribute produces a tooltip over the whole tab panel.
That is not ideal and the a11y need is already fulfilled by aria-label.
2022-11-02 19:55:46 -04:00
alistair3149
831eeee16c
refactor: use proper extension namespaces
2022-06-29 17:22:14 -04:00
ArdWar
9535181261
perf: revert back to recursiveTagParse() ( #27 )
...
* fix unnecessary whitespace trim on tab content
* use recursiveTagParse() to lessen unstrip size
2022-06-05 15:13:24 -04:00
alistair3149
1f4436843f
feat: improve loading behavior before module is added
...
* Add skeleton screen to avoid layout shift
* Hide other sections before the module is loaded to avoid layout shift
* Add noscript message
* Header container is now saved in parser instead of being generated.
If you have any issues with the script, try clearing out the parser cache
or do an empty edit.
2022-05-06 17:53:52 -04:00
alistair3149
8fdead811e
feat: add tracking categories for pages using Tabber
...
Pages with tabber/tabbertransclude tag will have a tracking category called Category:Pages using Tabber/TabberTransclude parser tag. To hide the category, put the __HIDDENCAT__ magic word on the category page
2022-05-06 13:09:03 -04:00
alistair3149
558581c893
refactor: rename parserHook result variable
2022-04-20 15:32:19 -04:00
alistair3149
0b690a2744
refactor: standardize parserHook and render across parser tags
2022-04-20 15:23:45 -04:00
alistair3149
1fc2451a12
refactor: separate parser tags into their own classes
2022-04-20 13:50:38 -04:00