PHPackages                             mediawiki/smw-parent - 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/smw-parent

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

mediawiki/smw-parent
====================

0.2.0(9y ago)046GPL-3.0+PHPPHP &gt;=5.3.0

Since Feb 5Pushed 4y ago3 watchersCompare

[ Source](https://github.com/ProteoWiki/SMWParent)[ Packagist](https://packagist.org/packages/mediawiki/smw-parent)[ Docs](https://github.com/ProteoWiki/SMWParent)[ RSS](/packages/mediawiki-smw-parent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

SMWParent
=========

[](#smwparent)

[![DOI](https://camo.githubusercontent.com/abcf07193dd47819af27caac417e580150043c2ab10bf8241317f2ddc51f44cf/68747470733a2f2f7a656e6f646f2e6f72672f62616467652f32343436343236312e737667)](https://zenodo.org/badge/latestdoi/24464261)

Extension for printing out ancestors, descendants and relationship trees of pages interconnected with Semantic MediaWiki properties.

Functions
---------

[](#functions)

- {{#SMWParent:}} Show the parent / ancestor pages
- {{#SMWChildren:}} Show the children / descendant pages

### Usage

[](#usage)

- {{#SMWParent:FULLPAGENAME|PARENT\_TYPE/PARENT\_LEVEL|link}}

Params:

- If FULLPAGENAME is skipped, current page is used
- PARENT\_TYPE to retrieve, or alternately up to which level PARENT\_LEVEL to reach
- If input is 'link', resulting pages are shown as links instead of as text.

API
---

[](#api)

An API endpoint is available. action=smwparent.

- retrieve: 3 possible methods (parent, children, tree)
- title: fullpage title of page in the wiki
- type: the type of pages to be retrieved (according to a given properties)
- link\_properties: properties used for linking between pages
- type\_properties: properties used for defining the types. If 'Categories', MediaWiki categories are also used.
- print\_properties: properties to be printed and appended to the nodes.

Parameters and default values
-----------------------------

[](#parameters-and-default-values)

You can override these values by modifying LocalSettings.php below extension requirement.

$wgSMWParentlimit = 100; // Limit of pages to transverse

$wgSMWParentTypeProperty = array("Is\_Type"); // Defines the SMW Property that assigns a particular type to a page

$wgSMWParentdefault = "Request"; // Default type of a page

$wgSMWChildrendefault = "File"; // Default type of a file

$wgSMWParentProps = array('Comes\_from\_Process', 'Comes\_from\_Sample', 'Has\_Request'); // Properties that provide de glueing between the different pages.

$wgSMWParentPrintProps = array('Start', 'End'); // Properties associated to an object which are printed

TODO
----

[](#todo)

- Better handling of SMW property types
- Refactor some functions and variables
- Adding JSONScript tests following Semantic MediaWiki model

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 99% 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 ~371 days

Total

3

Last Release

3377d 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 (96 commits)")[![lucacozzuto](https://avatars.githubusercontent.com/u/15979197?v=4)](https://github.com/lucacozzuto "lucacozzuto (1 commits)")

---

Tags

mediawikiSMWSemantic MediaWiki

### Embed Badge

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

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

###  Alternatives

[mediawiki/semantic-cite

A Semantic MediaWiki extension to manage citation resources.

2310.2k1](/packages/mediawiki-semantic-cite)[mediawiki/semantic-media-wiki

An extension to MediaWiki that lets you store and query structured data within wiki pages

586361.8k33](/packages/mediawiki-semantic-media-wiki)[mediawiki/semantic-extra-special-properties

Provides extra special properties for Semantic MediaWiki

3074.6k1](/packages/mediawiki-semantic-extra-special-properties)[mediawiki/semantic-scribunto

A Semantic Mediawiki extension to natively support the Scribunto extension

2967.5k](/packages/mediawiki-semantic-scribunto)[mediawiki/maps

Adds various mapping features to MediaWiki

84145.0k3](/packages/mediawiki-maps)[mediawiki/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)

PHPackages © 2026

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