PHPackages                             mediawiki/aform - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. mediawiki/aform

ActiveMediawiki-extension[Utility &amp; Helpers](/categories/utility)

mediawiki/aform
===============

Convenient parser function for setting up form markup in MediaWiki

0.2.1(2y ago)1237GPL-3.0+PHPPHP &gt;=5.3.0

Since Jan 15Pushed 3w ago2 watchersCompare

[ Source](https://github.com/SimilisTools/mediawiki-aform)[ Packagist](https://packagist.org/packages/mediawiki/aform)[ Docs](https://github.com/SimilisTools/mediawiki-aform)[ RSS](/packages/mediawiki-aform/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

Aform
=====

[](#aform)

MediaWiki parser hook extension that provides parser functions for generating HTML form markup.

[![Total Downloads](https://camo.githubusercontent.com/211d51a745dffe2f2ecae1f5ab4528442177f93816057279c15b0f2369a5583e/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f61666f726d2f642f746f74616c2e706e67)](https://packagist.org/packages/mediawiki/aform)

Installation
------------

[](#installation)

1. Copy the extension directory to `extensions/Aform/`.
2. Add to `LocalSettings.php`: ```
    wfLoadExtension( 'Aform' );
    ```

Requires PHP ≥ 7.2 and MediaWiki with `wfLoadExtension` support.

Parser Functions
----------------

[](#parser-functions)

### `#aform` — open a form

[](#aform--open-a-form)

```
{{#aform: action=PageName | method=get }}

```

ParameterDescription`action`Wiki page name (converted to URL automatically) or absolute URL (`https://`, `http://`, `ftp://`)`method``get` or `post`common attrs`class`, `id`, `style`, `rel`, `itemprop`, `content`, `data-*`### `#aformend` — close the form

[](#aformend--close-the-form)

```
{{#aformend:}}

```

### `#ainput` — single input field

[](#ainput--single-input-field)

```
{{#ainput: type=text | name=q | value=default | size=20 }}

```

ParameterDescription`type`Input type (`text`, `hidden`, `submit`, `checkbox`, etc.)`name`Field name`value`Field value`size`Field width`readonly`, `disabled`, `checked`, `alt`Standard HTML attributescommon attrs`class`, `id`, `style`, `rel`, `itemprop`, `content`, `data-*`### `#ainput_multi` — multiple hidden inputs from a list

[](#ainput_multi--multiple-hidden-inputs-from-a-list)

```
{{#ainput_multi: type=hidden | list=field1=value1&field2=value2 }}

```

The `list` parameter is an `&`-separated list of `name=value` pairs. Each pair generates one `` element. Other attributes (`type`, `size`, `readonly`, `disabled`, `checked`, `alt`, common attrs) are applied to all generated inputs.

### `#aselect` — select dropdown

[](#aselect--select-dropdown)

```
{{#aselect: name=animal | values=Dog,Cat,Mouse | selected=Dog }}

```

ParameterDescription`name`Field name (use `name=field[]` for multi-select)`values`Comma-separated option values`names`Comma-separated display labels (parallel to `values`; defaults to value if omitted)`selected`Comma-separated values to pre-select`sep`Custom separator character instead of `,``size`Visible row count`multiple`Set to `multiple` to allow multiple selectionscommon attrs`class`, `id`, `style`, `rel`, `itemprop`, `content`, `data-*`### `#alabel` — label element

[](#alabel--label-element)

```
{{#alabel: My Label | for=fieldid | class=form-label }}

```

The first positional argument is the label text. Supports common attrs (`class`, `id`, `style`, `rel`, `itemprop`, `content`, `data-*`).

Example
-------

[](#example)

```
{{#aform: action={{FULLPAGENAME}} | method=get }}

{{#alabel: Animal | for=animal-select }}

{{#aselect: name=animal[] | multiple=multiple | values=Dog,Cat,Mouse | selected=Dog }}

{{#ainput: type=text | size=4 | name=offset }}

{{#ainput_multi: type=hidden | list=text=House&size=100 }}

{{#aformend:}}

```

Development
-----------

[](#development)

```
composer test   # lint (parallel-lint + minus-x)
composer fix    # fix file permissions/line endings
```

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance62

Regular maintenance activity

Popularity16

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3206 days

Total

2

Last Release

980d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5218ca0754245ef120fb4ebc1c520616cb8339e5e4f81301e4906893859d5404?d=identicon)[toniher](/maintainers/toniher)

---

Top Contributors

[![toniher](https://avatars.githubusercontent.com/u/535539?v=4)](https://github.com/toniher "toniher (22 commits)")

---

Tags

mediawikiform

### Embed Badge

![Health badge](/badges/mediawiki-aform/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-aform/health.svg)](https://phpackages.com/packages/mediawiki-aform)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3376.6k](/packages/starcitizentools-citizen-skin)[mediawiki/chameleon-skin

A highly flexible MediaWiki skin using Bootstrap 5

12585.7k2](/packages/mediawiki-chameleon-skin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19251.4k3](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19228.0k3](/packages/altis-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
