Extension:PollNY/de

From Linux Web Expert

The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
MediaWiki-Erweiterungen
PollNY
Freigabestatus: stabil
Einbindung Spezialseite
Beschreibung Advanced polling system that uses special pages and allows embedding polls to wiki pages
Autor(en) Aaron Wright, David Pean, Jack Phoenix
MediaWiki 1.39+
Lizenz Keine Lizenz angegeben
Herunterladen
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Übersetze die PollNY-Erweiterung, wenn sie auf translatewiki.net verfügbar ist
Probleme Offene Aufgaben · Einen Fehler melden

The PollNY extension defines a new namespace for polls (NS_POLL, the namespace number is 300 by default) and 6 new special pages for poll creation/administration.

Polls can be embedded on normal wiki pages with the ‎<pollembed> tag. Syntax is: <pollembed title="Name of the poll" />

Special:AdminPoll can be used by users with 'polladmin' rights to view all polls and administer them, Special:CreatePoll is used to create new polls, Special:RandomPoll takes you to a randomly chosen poll, Special:UpdatePoll is like action=edit for polls and Special:ViewPoll can be used by all users to view available polls.

These new special pages (except for Special:UpdatePoll) will show up on Special:SpecialPages in the "Polls" section.

See Help:Extension:PollNY for more information on how to use this extension.

Abhängigkeiten

  • New database tables: poll_choice, poll_question and poll_user_vote

Installation

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/PollNY/de</tvar>|Download]] and move the extracted <tvar name=name>PollNY/de</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/PollNY%2Fde
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'PollNY/de' );
    
  • <translate> Run the [[<tvar name=update>Special:MyLanguage/Manual:Update.php</tvar>|update script]] which will automatically create the necessary database tables that this extension needs.</translate>
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Benutzerrechte

This extension adds one new user right, polladmin, which allows accessing Special:AdminPoll to administer polls created through Special:CreatePoll. By default sysops have this user right.

User points

  • $wgUserStatsPointValues['poll_vote']set this to something to give out points for answering existing polls.

Parameter

  • $wgPollDisplay['comments']whether to display comments on poll pages or not. Defaults to false. Benötigt die Erweiterung:Comments -Erweiterung.
  • $wgCreatePollThresholdsfor example 'edits' => 5 if you want to require users to have at least 5 edits before they can create new polls. Defaults to an empty array (no restrictions).