Extension:ArticleRatings/cs

Category:GPL licensed extensions/cs
Příručka k rozšířením MediaWiki
ArticleRatings
Stav rozšíření: stabilníCategory:Stable extensions/cs
Implementace Značka Category:Tag extensions/cs, Speciální stránka Category:Special page extensions/cs
Popis Přidává komplexní rozhraní pro hodnocení stránek.
Autoři Adam Carter
Nejnovější verze 2.6
MediaWiki >= 1.39.0
Změny v databázi Ano
Tabulky ratings
Licence GNU General Public License 2.0 nebo novější
Stáhnout Category:Extensions in Wikimedia version control/cs
README
Příklad Brickimedia
  • $wgAREUseInitialRatings
  • $wgARENamespaces
<rating />
Čtvrtletní stahování 1 (Ranked 95th)
Přeložte rozšíření ArticleRatings, používá-li lokalizaci z translatewiki.net
Problémy Otevřené úkoly · Nahlásit chybu
Category:All extensions/cs

Rozšíření ArticleRatings přidává rozhraní pro stránky s hodnocením. Privilegovaní uživatelé (ti s uživatelským právem change-rating, standardně členové skupiny reviewers) uvidí odkaz v nástrojové sadě u podporovaných vzhledů a budou moci pomocí rozhraní na adrese Special:ChangeRating změnit hodnocení stránek.

This extension was developed for Brickimedia, and is not as portable as it could be.

Instalace

  • Stáhněte soubor/y a vložte je do adresáře pojmenovaného ArticleRatings ve vaší složce extensions/.
    Vývojáři a přispěvatelé kódu by si místo toho měli nainstalovat rozšíření from Git pomocí:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/ArticleRatings
  • Na konec vašeho souboru LocalSettings.php přidejte následující kód:
    wfLoadExtension( 'ArticleRatings' );
    
    Konfigurace rozhraní MediaWiki:Are-ratings na wiki. Více informací viz níže uvedený #Messages. Toto není volitelné!
  • Yes Dokončeno – Přejděte na stránku Special:Version vaší wiki a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.

Uživatelská práva

  • change-rating – new user right allows user to change the ratings of pages.

Značky - tagy

<rating /> přidá hodnocení stránky k další stránce. <rating /> on its own will add the rating of the page it is on, and <rating page="title" /> will give the rating of title.

Special pages

  • Special:ChangeRating – interface for changing pages' ratings.
  • Special:MassRatings – interface for getting the ratings of many pages at once.

Messages

  • MediaWiki:Are-ratings – JSON file giving the name, codename (has to be 2 characters long), image, and link, for each rating. Should be an array of objects, in PHP-valid JSON. See Brickipedia for an example. The codename is just a 2 character string used by the software to identify the ratings, it doesn't matter what it is, as long as each rating's is different. Whichever rating comes first will be the default rating (the one used before the rating has been changed)

Variables

  • $wgARENamespaces = $wgContentNamespaces; - Array of namespace numbers/constants that are allowed to have ratings on them.
  • $wgAREUseInitialRatings = false; - If true, the ratings tag has an init-rating parameter that wil set the initial rating to the codename supplied, not the default. Not recommended for production use, but can be used as a workaround to allow bots to use the extension.
Category:Extensions by Brickimedia/cs Category:Rating extensions/cs
Category:All extensions/cs Category:ArticleDeleteComplete extensions/cs Category:Extensions by Brickimedia/cs Category:Extensions in Wikimedia version control/cs Category:Extensions included in Miraheze/cs Category:Extensions included in WikiForge/cs Category:Extensions which add rights/cs Category:GPL licensed extensions/cs Category:LoadExtensionSchemaUpdates extensions/cs Category:ParserFirstCallInit extensions/cs Category:Rating extensions/cs Category:SidebarBeforeOutput extensions/cs Category:Special page extensions/cs Category:Stable extensions/cs Category:Tag extensions/cs Category:TitleMove extensions/cs