Jump to content

Extension:Decorations

From mediawiki.org
MediaWiki extensions manual
Decorations
Release status: stable
Implementation Special page
Description Keeps track of decorations in a special page
Author(s) Josef Martiňák
Latest version 1.1.1 (2021-06-23)
Compatibility policy Master maintains backward compatibility.
MediaWiki >= 1.36.0
Database changes No
  • $wgdecorationsHome
  • $wgdecorationsList
Licence MIT License
Download
Example WikiSkripta (special page, decorations available)

The Decorations extension provides a special page "Special:Decorations" that displays uses of a given set of images (deemed decorations) in a table. It allows to keep track of barnstar-style awards that users add to other users' talk pages, that this extension searches automatically. It also looks in the Thread: namespace.

Installation

[edit]
  • Download and place the file(s) in a directory called Decorations in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Decorations' );
    
  • Configure as necessary.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit]
$wgdecorationsHome
Wiki page listing available wiki decorations. Default: "WikiSkripta:Vyznamenání".
$wgdecorationsList
List of decoration images (filename, title, description). Default:
[
		["Wiki4lístek.png", "WikiČtyřlístek", "Vyznamenání udílené obvykle za zvláštní či dlouhodobý přínos WikiSkriptům."],
		["WikiSlunicko.png", "WikiSluníčko", "Spíše než o vyznamenání se jedná o pozdrav a vyjádření podpory v další činnosti. V praxi lze udělit uživateli prostě proto, že jste si na něj vzpoměli, a chcete mu třeba popřát hezký den."],
		["Kava.png", "Řád černé kávy", "Jedná se o ocenění noční práce redaktora/uživatele. Prostě, když uvidíte někoho editovat ve 2 hodiny ráno, proč ho neocenit za toto nasazení?"],
		["Řád_bílého_jednorožce2.png", "Řád bílého jednorožce", "Jedná se o ocenění výjimečného přínosu redaktora/uživatele. Když v úžasu stanete nad prací kolegy/ně, neváhejte jim udělením tohoto ocenění sdělit, že vás to ohromilo."]
	]