TabberTransclude is a fork of the TabberNeue extension, which adds a new parser tag to work with transcluded pages.
- MediaWiki 1.35 or later
You can get the extension via Git (specifying TabberTransclude as the destination directory):
git clone https://github.com/ciencia/mediawiki-extensions-TabberTransclude.git TabberTransclude
Or download it as zip archive.
In either case, the "TabberTransclude" extension should end up in the "extensions" directory of your MediaWiki installation. If you got the zip archive, you will need to put it into a directory called TabberTransclude.
TabberTransclude uses the exact same syntax as Tabber and TabberNeue.
Tabs are created with tabName=tabBody
, and separated by |-|
.
<tabber>
tab1=Some neat text here
|-|
tab2=
[http://www.google.com Google]<br/>
[http://www.cnn.com Cnn]<br/>
|-|
tab3={{Template:SomeTemplate}}
</tabber>
<tabber>
Tab1 = {{{1|}}}
|-|
Tab2 = {{{2|}}}
</tabber>
Becomes:
{{#tag:tabber|
Tab1={{{1|}}}
{{!}}-{{!}}
Tab2={{{2|}}}
}}
With the transclusion mode, the syntax is different, and it's more similar to <gallery>
syntax.
The contents of the page of the first tab will be transcluded. Other tabs will be transcluded on-demand with AJAX, performing a request to the MediaWiki api. Once requested, they won't be fetched again until the page is reloaded.
Tabs are created with pageName|tabName
, and separated by a new line.
<tabbertransclude>
My page 1|First tab
A second page|Second tab
Another tab
</tabbertransclude>