PHPackages                             mediawiki/semantic-cite - 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/semantic-cite

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

mediawiki/semantic-cite
=======================

A Semantic MediaWiki extension to manage citation resources.

4.0.0(2mo ago)2310.2k14[16 issues](https://github.com/SemanticMediaWiki/SemanticCite/issues)[2 PRs](https://github.com/SemanticMediaWiki/SemanticCite/pulls)1GPL-2.0-or-laterPHPPHP &gt;=8.1CI failing

Since Nov 29Pushed 2mo ago14 watchersCompare

[ Source](https://github.com/SemanticMediaWiki/SemanticCite)[ Packagist](https://packagist.org/packages/mediawiki/semantic-cite)[ Docs](https://semantic-mediawiki.org/wiki/Extension:Semantic_Cite)[ RSS](/packages/mediawiki-semantic-cite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (17)Used By (1)

Semantic Cite
=============

[](#semantic-cite)

[![CI](https://github.com/SemanticMediaWiki/SemanticCite/actions/workflows/ci.yml/badge.svg)](https://github.com/SemanticMediaWiki/SemanticCite/actions/workflows/ci.yml)[![Code Coverage](https://camo.githubusercontent.com/1a55392962faf78952c5bff9592d3f92deb1868f50c043ccf660b3700bd88a4e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53656d616e7469634d6564696157696b692f53656d616e746963436974652f6261646765732f636f7665726167652e706e673f733d66333530316564653062636339383832346161353135303165623336343765636637313231386330)](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticCite/)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/02c14f4e88e0b6c6c59d23aee07269ec10d4d8014d12f842d3b1db51ffc2fb96/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53656d616e7469634d6564696157696b692f53656d616e746963436974652f6261646765732f7175616c6974792d73636f72652e706e673f733d64396161633765363865363535346639356230613839363038636263333639383534323964383139)](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticCite/)[![Latest Stable Version](https://camo.githubusercontent.com/139eec7cf2a39528a9bfd57fadb01872a56d60bbdfec4f9af40711f145753ef5/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f73656d616e7469632d636974652f76657273696f6e2e706e67)](https://packagist.org/packages/mediawiki/semantic-cite)[![Packagist download count](https://camo.githubusercontent.com/a7685a343353ad985b1a4e22503eac703972e28fbfc7cb410df9bc104fe29888/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f73656d616e7469632d636974652f642f746f74616c2e706e67)](https://packagist.org/packages/mediawiki/semantic-cite)

Semantic Cite (a.k.a. SCI) is a [Semantic Mediawiki](https://github.com/SemanticMediaWiki/SemanticMediaWiki) extension that provides a simple way of organizing citation resources with the help of semantic annotations.

It can be used to centralize the management of citation resources and foster the reuse of references stored within a wiki. Supported features include:

- Self-added and customizable reference list
- Individual property annotation and text formatting rules
- In-text reference tooltip
- Bibtex record import support
- Metadata retrieval from selected providers (PubMed, CrossRef etc.)

Several short [videos](https://www.youtube.com/playlist?list=PLIJ9eX-UsA5eI_YFdn6HeO2Dcta4CrPzX) demonstrate "How Semantic Cite can be used or is expected to work".

Requirements
------------

[](#requirements)

- PHP 8.1 or later
- MediaWiki 1.43 or later
- [Semantic MediaWiki](https://github.com/SemanticMediaWiki/SemanticMediaWiki) 4.0 or later

Semantic Cite **does not require** nor uses any part of extension [Cite](https://github.com/wikimedia/mediawiki-extensions-Cite) (or `` tags) as a means to declare a citation resource.

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

[](#installation)

The recommended way to install Semantic Cite is using [Composer](http://getcomposer.org) with [MediaWiki's built-in support for Composer](https://www.mediawiki.org/wiki/Composer).

Note that the required extension Semantic MediaWiki must be installed first according to the installation instructions provided.

### Step 1

[](#step-1)

Change to the base directory of your MediaWiki installation. If you do not have a "composer.local.json" file yet, create one and add the following content to it:

```
{
	"require": {
		"mediawiki/semantic-cite": "~4.0"
	}
}

```

If you already have a "composer.local.json" file add the following line to the end of the "require" section in your file:

```
"mediawiki/semantic-cite": "~4.0"

```

Remember to add a comma to the end of the preceding line in this section.

### Step 2

[](#step-2)

Run the following command in your shell:

```
php composer.phar update --no-dev

```

Note: if you have Git installed on your system, add the `--prefer-source` flag to the above command.

### Step 3

[](#step-3)

Add the following line to the end of your "LocalSettings.php" file:

```
wfLoadExtension( 'SemanticCite' );

```

### Step 4

[](#step-4)

Run the **maintenance script ["update.php"](https://www.mediawiki.org/wiki/Manual:Update.php)** to ensure that property tables are properly initialized.

Usage
-----

[](#usage)

[![scite-sneak](https://cloud.githubusercontent.com/assets/1245473/8370671/7d8bfeac-1bcb-11e5-9007-79a3d39f70ce.png)](https://cloud.githubusercontent.com/assets/1245473/8370671/7d8bfeac-1bcb-11e5-9007-79a3d39f70ce.png)

A citation resource collects all structured data of a citation under one unique key that can be accessed throughout the wiki and is created and managed by the `#scite` parser function.

Citation resources (those created by `#scite`) can be added to a source page or any other wiki page ,each being identifiable by a citation key.

```
{{#scite:Byrne 2008
 |type=journal
 |author=Byrne, A
 |year=2008
 |title=Web 2.0 strategies in libraries and information services
 |journal=The Australian Library Journal
 |volume=57
 |number=4
 |pages=365-376
}}

```

The above shows an example for a citation resource to be created by the `#scite` parser. More information about `#scite` can be found [here](https://github.com/SemanticMediaWiki/SemanticCite/blob/master/docs/04-scite.md).

### In-text citation

[](#in-text-citation)

A resource can be cited using the `Citation reference` (or its alias `CiteRef`) property for an in-text annotation in form of `Lorem ipsum [[CiteRef::Byrne 2008]] ...` to appear as `Lorem ipsum``[1]`` ...`.

A reference list is automatically added to the content as soon as a `Citation reference` annotation is added to a page. The magic word `__NOREFERENCELIST__` can be used to suppress a reference list from showing on an individual page, while `#referencelist` can be used to position the list differently.

More information about in-text citations and references can be found [here](https://github.com/SemanticMediaWiki/SemanticCite/blob/master/docs/06-references.md) together with a description about the usage of the [`#referencelist`](https://github.com/SemanticMediaWiki/SemanticCite/blob/master/docs/05-referencelist.md) parser function.

For questions about Semantic Cite and [`Cite`](https://github.com/wikimedia/mediawiki-extensions-Cite), see the comments [section](https://github.com/SemanticMediaWiki/SemanticCite/blob/master/docs/08-faq.md).

### Metadata search

[](#metadata-search)

`Special:FindCitableMetadata` is provided as a user interface to search, find, and map metadata with the `#scite` parser to conveniently integrate authority data from sources like PubMed or CrossRef.

For more information, please read the search [section](https://github.com/SemanticMediaWiki/SemanticCite/blob/master/docs/07-metadata-search.md).

Configuration
-------------

[](#configuration)

To change default settings, or add property mapping, add text formatting rules, please read the [configuration](https://github.com/SemanticMediaWiki/SemanticCite/blob/master/docs/00-configuration.md) document.

Contribution and support
------------------------

[](#contribution-and-support)

If you want to contribute work to the project, please subscribe to the developers' mailing list and have a look at the contribution guideline.

- [File an issue](https://github.com/SemanticMediaWiki/SemanticCite/issues)
- [Submit a pull request](https://github.com/SemanticMediaWiki/SemanticCite/pulls)
- Ask a question on [the mailing list](https://www.semantic-mediawiki.org/wiki/Mailing_list)

Tests
-----

[](#tests)

This extension provides unit and integration tests that are run by a [continuous integration platform](https://travis-ci.org/SemanticMediaWiki/SemanticCite)but can also be executed using `composer phpunit` from the extension base directory.

License
-------

[](#license)

[GNU General Public License, version 2 or later](https://www.gnu.org/copyleft/gpl.html).

###  Health Score

57

—

FairBetter than 98% of packages

Maintenance73

Regular maintenance activity

Popularity34

Limited adoption so far

Community27

Small or concentrated contributor base

Maturity80

Battle-tested with a long release history

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~375 days

Recently: every ~678 days

Total

11

Last Release

66d ago

Major Versions

1.3.0 → 2.0.02018-10-06

2.1.1 → 3.0.02024-02-25

3.0.0 → 4.0.02026-03-13

PHP version history (6 changes)1.0.0PHP &gt;=5.3.0

1.3.0PHP &gt;=5.5.0

2.0.0PHP &gt;=5.6.0

2.1.0PHP &gt;=7.0

3.0.0PHP &gt;=7.4

4.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/372f9bc1233d5518b9522cb681210a8de2765a3a9bbde20138f6ad5332a411ca?d=identicon)[mwjames](/maintainers/mwjames)

---

Top Contributors

[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (194 commits)")[![mwjames](https://avatars.githubusercontent.com/u/1245473?v=4)](https://github.com/mwjames "mwjames (143 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (42 commits)")[![Nikerabbit](https://avatars.githubusercontent.com/u/1109395?v=4)](https://github.com/Nikerabbit "Nikerabbit (13 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (12 commits)")[![paladox](https://avatars.githubusercontent.com/u/5727000?v=4)](https://github.com/paladox "paladox (11 commits)")[![kizule](https://avatars.githubusercontent.com/u/28963303?v=4)](https://github.com/kizule "kizule (5 commits)")[![anome2002](https://avatars.githubusercontent.com/u/126911875?v=4)](https://github.com/anome2002 "anome2002 (4 commits)")[![thomas-topway-it](https://avatars.githubusercontent.com/u/46287689?v=4)](https://github.com/thomas-topway-it "thomas-topway-it (4 commits)")[![jaideraf](https://avatars.githubusercontent.com/u/3636594?v=4)](https://github.com/jaideraf "jaideraf (3 commits)")[![siebrand](https://avatars.githubusercontent.com/u/210297?v=4)](https://github.com/siebrand "siebrand (2 commits)")[![krabina](https://avatars.githubusercontent.com/u/4318745?v=4)](https://github.com/krabina "krabina (2 commits)")[![zuzak](https://avatars.githubusercontent.com/u/817054?v=4)](https://github.com/zuzak "zuzak (1 commits)")[![gesinn-it-gea](https://avatars.githubusercontent.com/u/10398316?v=4)](https://github.com/gesinn-it-gea "gesinn-it-gea (1 commits)")[![yaronkoren](https://avatars.githubusercontent.com/u/1278687?v=4)](https://github.com/yaronkoren "yaronkoren (1 commits)")

---

Tags

citationmediawikimwscisemanticsemantic-mediawikismwmediawikiwikicitationSMWSemantic MediaWiki

### Embed Badge

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

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

###  Alternatives

[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/semantic-glossary

A terminology markup extension with a Semantic MediaWiki back-end

1352.4k](/packages/mediawiki-semantic-glossary)[mediawiki/semantic-result-formats

Provides additional result formats for queries using Semantic MediaWiki

51180.7k1](/packages/mediawiki-semantic-result-formats)[mediawiki/chameleon-skin

A highly flexible MediaWiki skin using Bootstrap 4

12481.8k2](/packages/mediawiki-chameleon-skin)

PHPackages © 2026

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