Extension:Tabber
|
|
WARNING: the code or configuration described here poses a major security risk.
Problem: Vulnerable to Cross-site scripting attacks, because it passes user input directly to the browser. This may lead to user accounts being hijacked, among other things. The problem (or at least the one i found) is with the php part of the code, not the js its based on. |
|
Tabber Release status: experimental |
|
|---|---|
| Description | Create pages with "Tabs" |
| Author(s) | Eric Fortin (Kenyu73Talk) |
| Last version | 1.2 - 10/17/2011 |
| License | GPL |
| Download | Download snapshot Subversion [Help] |
|
Check usage (experimental) |
|
This allows the author to create tabs within a page. The tabs can contain any valid wiki data (links, images, templates, etc).
- dedicated CSS file for easy customization
- dedicated Javascript file
Based off the javascript code from barelyfitz.com
Contents |
[edit] Usage
Tabs are created as follows: <tabName>=<tabBody>
Tabs are 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>
[edit] Multiple word tabs
Add between words. Example:
<tabber> multiple word tab=Some neat text here </tabber>
[edit] Parser functions and conditionals
<tabber>
Tab1 = {{{1|}}}
|-|
Tab2 = {{{2|}}}
</tabber>
Becomes:
{{#tag:tabber|
Tab1={{{1|}}}
{{!}}-{{!}}
Tab2={{{2|}}}
}}
[edit] Installation
There are three files in the zip file:
- Tabber.css
- Tabber.js
- Tabber.php
Move these three files in the tabber folder to the extensions folder.
Add the following to LocalSettings.php:
require_once ( "$IP/extensions/Tabber/Tabber.php" );
[edit] See Also
Current MediaWiki Projects
Extension:Calendar (Kenyu73) -- wikipage calendar
Extension:MW Calendar -- database calendar
Extension:LaunchExternal
Extension:Presentation
Extension:Tabber
Extension:Menu