Extension:VoteNY/pl
VoteNY Status wydania: stabilne |
|
---|---|
File:VoteNY.png | |
Realizacja | Rozszerzenie parsera , Hak , Znaczniki |
Opis | JavaScript-based voting with the <vote> tag |
Autor(zy) |
|
Ostatnia wersja | 3.2 (2021-11-24) |
Polityka zgodności | Master maintains backward compatibility. |
MediaWiki | 1.39+ |
Tabele | Vote |
Licencja | Nie określono |
Pobieranie | |
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'). |
Przetłumacz rozszerzenie VoteNY jeżeli jest dostępne na translatewiki.net | |
Problemy | Otwarte zadania · Zgłoś błąd |
The VoteNY a.k.a Vote extension adds the <vote>
parser hook tag to allow voting on articles where the tag is present.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/VoteNY/pl</tvar>|Download]] and move the extracted <tvar name=name>
VoteNY/pl
</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/VoteNY%2Fpl - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'VoteNY/pl' );
- <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>
Configuration
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 | English | 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. |
Zobacz też
- RatePage - Allows for voting and voting contests
File:OOjs UI icon information-progressive.svg | <translate> This extension is included in the following wiki farms/hosts and/or packages:</translate>
<translate> This is not an authoritative list.</translate> <translate> Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here.</translate> <translate> Always check with your wiki farms/hosts or bundle to confirm.</translate> |
- Pages with script errors
- Pages with broken file links
- Stable extensions/pl
- Parser extensions/pl
- Hook extensions/pl
- Tag extensions/pl
- Extensions with manual MediaWiki version
- Extensions with no license specified/pl
- Extensions in Wikimedia version control/pl
- All extensions/pl
- Extensions not in ExtensionJson
- Social tools/pl
- Poll extensions/pl
- Rating extensions/pl