AjaxLoader

From Wiki4Intranet
Revision as of 17:21, 1 June 2016 by VitaliyFilippov (Talk | contribs) (Created page with "{{Extension4info |name=AjaxLoader |description en=Allows to make parts of wikipages AJAX-loadable. |description ru=Позволяет делать динамически за...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

AjaxLoader is a MediaWiki extension.

Status for Mediawiki4Intranet distribution:

  • Inclusion date: 2016-06-01
  • Included version: newest available
  • Improvement status: Created by MediaWiki4Intranet project

Usage

This extension adds two parser functions.

First is {{#request: parameter name}} which disables parser cache for the page and returns the raw value of a request parameter.

Second is {{#ajax: open text | close text | text after open/close link | page title | request parameters in URL form (a=b&c=d...) }} which inserts an initially collapsed ajax-loadable panel.

Example: {{#ajax: ► | ▼ | Title | CategoryPageList | category=SomeCategory }} or {{#ajax: Show details | Hide details | | CategoryPageList | category=SomeCategory }}.

Installation

As usual, add require_once into your LocalSettings.php.