Extension:VoteNY/de-formal
![]() Release status: stable |
|
---|---|
![]() |
|
Implementation | Parser extension , Hook , Tag |
Description | JavaScript-based voting with the <vote> tag |
Author(s) |
|
Latest version | 3.2 (2021-11-24) |
Compatibility policy | Master maintains backward compatibility. |
MediaWiki | 1.39+ |
Database changes | Yes |
Tables | Vote |
License | GNU General Public License 2.0 or later |
Download | |
Quarterly downloads | 28 (Ranked 144th) |
Translate the VoteNY extension if it is available at translatewiki.net | |
Issues | Open tasks · Report a bug |
The VoteNY a.k.a Vote extension adds the <vote>
parser hook tag to allow voting on articles where the tag is present.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
VoteNY
im Ordnerextensions/
ablegen. - Folgenden Code am Ende Ihrer
LocalSettings.php
hinzufügen:wfLoadExtension( 'VoteNY' );
- Führen Sie das Aktualisierungsskript aus, welches automatisch die notwendigen Datenbanktabellen erstellt, die diese Erweiterung braucht.
Done – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Konfiguration
This extension adds one new user right, voteny
, which is required in order to vote.
By default, anonymous users do not have this right and thus they cannot vote but registered users can.
To allow anonymous users to vote, add the following to your LocalSettings.php:
$wgGroupPermissions['*']['voteny'] = true;
Usage
Tags
<vote />
outputs a green square voting box.
<vote type=1 />
outputs five voting stars.
Magic words
{{NUMBEROFVOTES}}
: Returns the entire number of votes on the wiki.{{NUMBEROFVOTESPAGE}}
: Returns the number of votes on the current page.{{NUMBEROFVOTESPAGE:<page>}}
: Returns the number of votes on the given page.
The magic word {{NUMBEROFVOTES}}
can be used to display the number of votes in the database; this number is cached (in memcached ) for 24 hours, so it's not totally up-to-date.
Special page
The special page Special:TopRatings displays the highest rated pages on the wiki.
It supports filtering by category and namespace and its output can be embedded on wiki pages, so {{Special:TopRatings/Adventure Games/0/10}}
will show 10 ratings where the pages are in the "Adventure Games" category and the pages are in the main (0) namespace.
Internationalization
Message | Englisch | Description |
---|---|---|
voteny-link | Vote | |
voteny-unvote-link | unvote | Displayed to the user after their vote has been successfully added. |
voteny-community-score | community score: $1 | "community score" is the average score of the page in question |
voteny-ratings | {{PLURAL:$1|one rating|$1 ratings}} | $1 is the number of ratings, if said number is greater than 1. |
voteny-remove | remove | |
voteny-gave-this | you gave this a $1 | $1 is the score you gave to the page, for example 5 or 3.50. |
voteny-votes | {{PLURAL:$1|one vote|$1 votes}} | $1 is the number of votes. |
topratings | Top Ratings | Title of Special:TopRatings, will be shown on the listing of special pages at Special:SpecialPages and on Special:TopRating itself. |
topratings-no-pages | No top rated pages. | Shown on Special:TopRatings if there are absolutely no pages that have been rated yet (as is the case usually right after installing the extension). |
right-voteny | Vote pages | Displayed on Special:ListGroupRights. |
Siehe auch
- RatePage - Allows for voting and voting contests
![]() | This extension is included in the following packages and/or wiki farms: This is not an authoritative list. Some wiki farms/hosts may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |
- Stable extensions/de-formal
- Parser extensions/de-formal
- Hook extensions/de-formal
- Tag extensions/de-formal
- GPL licensed extensions/de-formal
- Extensions in Wikimedia version control/de-formal
- LoadExtensionSchemaUpdates extensions/de-formal
- MagicWordwgVariableIDs extensions/de-formal
- ParserFirstCallInit extensions/de-formal
- ParserGetVariableValueSwitch extensions/de-formal
- RenameUserSQL extensions/de-formal
- All extensions/de-formal
- Social tools/de-formal
- Extensions included in Canasta/de-formal
- Extensions included in Miraheze/de-formal
- Extensions included in MyWikis/de-formal
- Extensions included in WikiForge/de-formal
- Poll extensions/de-formal
- Rating extensions/de-formal