Skip to content

Latest commit

 

History

History
70 lines (56 loc) · 2.11 KB

File metadata and controls

70 lines (56 loc) · 2.11 KB

TabberTransclude

TabberTransclude is a fork of the TabberNeue extension, which adds a new parser tag to work with transcluded pages.

Requirements

Installation

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.

Usage (classic)

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>

Parser functions and conditionals

<tabber>
Tab1 = {{{1|}}}
|-|
Tab2 = {{{2|}}}
</tabber>

Becomes:

{{#tag:tabber|
Tab1={{{1|}}}
{{!}}-{{!}}
Tab2={{{2|}}}
}}

Transclusion

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>