Extension:AJAXPoll/pl

Category:FDL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
AJAXPoll
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Rozszerzenie parsera Category:Parser extensions/pl
Opis Allows AJAX-based polls with <poll> tag
Autor(zy)
Ostatnia wersja 2.3.0 (2020-02-24)
MediaWiki 1.43.1+Category:Extensions with manual MediaWiki version
Tabele ajaxpoll_info
ajaxpoll_vote
Licencja GNU Free Documentation License
Pobieranie Category:Extensions in Wikimedia version control/pl
Przykład Any ShoutWiki site
Quarterly downloads 9 (Ranked 87th)
Przetłumacz rozszerzenie AJAXPoll jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd
Category:All extensions/plCategory:Extensions not in ExtensionJson

The AJAXPoll extension allows one or more AJAX-based polls on MediaWiki pages with <poll> tag.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie AJAXPoll w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AJAXPoll
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'AJAXPoll' );
    
  • Uruchom skrypt aktualizujący, który automatycznie stworzy potrzebne tabele dla tego rozszerzenia.  Configure at your convenience.
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Konfiguracja

# if you want to restrict the poll
# use the following code lines after calling the AJAXPoll extension
# to restrict to user group (example)

# The 'ajaxpoll-view-results-before-vote' group permission allows the specified
# group members to view poll results even without having voted
# but only if the high-level group permission 'ajaxpoll-vote' allows to view
# results in general.
#
# This 'ajaxpoll-view-results-before-vote' can be overwritten with the specific
# per-poll setting "show-results-before-voting" which takes precedence over the
# group permission.
#
# permission 'ajaxpoll-view-results' >>
# >> per-poll setting "show-results-before-voting" (if present)
# >> permission 'ajaxpoll-view-results-before-vote'

# anons
# default: anons cannot vote and will never see results
$wgGroupPermissions['*']['ajaxpoll-vote'] = false;
$wgGroupPermissions['*']['ajaxpoll-view-results'] = false;
$wgGroupPermissions['*']['ajaxpoll-view-results-before-vote'] = false;

# users
# default: users can vote and can see poll results - when they have voted
$wgGroupPermissions['user']['ajaxpoll-vote'] = true;
$wgGroupPermissions['user']['ajaxpoll-view-results'] = true;

If you want to disable the automatic tracking category then set the text of system message "MediaWiki:Ajaxpoll-tracking-category" in your wiki to "-" (minus).

Użycie

Syntax

<poll>
Question
Choice 1
Choice 2
Choice 3
Choice 4
</poll>

Example

<poll>
Do you like this poll ?
Yes, it is awesome.
Yes.
No, I do not like polls.
I have no idea, what this means.
</poll>

If you want this, you can allow or deny the result-viewing before voting per-poll by adding the show-results-before-voting parameter in the opening tag:

<poll show-results-before-voting>
<poll show-results-before-voting=1>
<poll show-results-before-voting=0>

If the first line after <poll> is "STATS", then some statistics about the wiki and its polls will be displayed. These statistics are not localizable and this whole feature will probably be removed (or at least refactored, but probably removed) in the future.

Category:Social tools/pl Category:Poll extensions/pl Category:Ajax extensions/pl Category:Extensions by ShoutWiki/pl Category:Extensions by Fandom/pl
Category:Ajax extensions/pl Category:All extensions/pl Category:Extensions by Fandom/pl Category:Extensions by ShoutWiki/pl Category:Extensions in Wikimedia version control/pl Category:Extensions included in Canasta/pl Category:Extensions included in Miraheze/pl Category:Extensions included in WikiForge/pl Category:Extensions not in ExtensionJson Category:Extensions with manual MediaWiki version Category:FDL licensed extensions/pl Category:Parser extensions/pl Category:Poll extensions/pl Category:Social tools/pl Category:Stable extensions/pl