MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=block

(main | block)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Φραγή χρήστη

Parameters:
user

Όνομα χρήστη, διεύθυνση IP ή εύρος διευθύνσεων IP που θέλετε να επιβάλετε φραγή.

Τύπος: χρήστης, κατά οτιδήποτε από όνομα χρήστη, διεύθυνση IP, Εύρος IP και user ID (π.χ. «#12345»)
userid
Deprecated.

Specify user=#ID instead.

Type: integer
expiry

Ώρα λήξης. Μπορεί να είναι σχετική (π.χ. σε 5 μήνες ή σε 2 εβδομάδες) ή απόλυτη (π.χ. 2014-09-18T12:34:56Z). Αν οριστεί σε άπειρη, απεριόριστη, ή ποτέ, ο αποκλεισμός δεν θα λήξει ποτέ.

Default: never
reason

Λόγος φραγής.

Default: (empty)
anononly

Αποκλείστε ανώνυμους χρήστες μόνο (δηλ. απενεργοποιήστε ανώνυμες επεξεργασίες για αυτή τη διεύθυνση IP).

Type: boolean (details)
nocreate

Αποτροπή δημιουργίας λογαριασμού.

Type: boolean (details)
autoblock

Αποκλείστε αυτόματα την τελευταία χρησιμοποιημένη διεύθυνση IP και κάθε συνακόλουθη διεύθυνση IP από την οποία γίνεται προσπάθεια σύνδεσης.

Type: boolean (details)
noemail

Να αποτρέψει το χρήστη από την αποστολή e-mail μέσω του wiki. (Απαιτεί το δικαίωμα blockemail).

Type: boolean (details)
hidename

Κρύψε το όνομα χρήστη από το ημερολόγιο φραγών. (Απαιτείται το δικαίωμα hideuser).

Type: boolean (details)
allowusertalk

Allow the user to edit their own talk page (depends on $wgBlockAllowsUTEdit).

Type: boolean (details)
reblock

Αν ο χρήστης είναι ήδη αποκλεισμένος, αντικαταστήστε την υπάρχουσα φραγή.

Type: boolean (details)
watchuser

Παρακολούθηση του χρήστη ή της διεύθυνσης IP του χρήστη και των σελίδων συζήτησής του.

Type: boolean (details)
tags

Change tags to apply to the entry in the block log.

Values (separate with | or alternative):
partial

Block user from specific pages or namespaces rather than the entire site.

Type: boolean (details)
pagerestrictions

List of titles to block the user from editing. Only applies when partial is set to true.

Separate values with | or alternative.
Maximum number of values is 10.
namespacerestrictions

List of namespace IDs to block the user from editing. Only applies when partial is set to true.

Values (separate with | or alternative): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 828, 829, 2300, 2301, 2302, 2303
To specify all values, use *.
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
Examples:
Φραγή διεύθυνσης IP 192.0.2.5 για τρεις μέρες με το λόγο, Πρώτη απεργία.
api.php?action=block&user=192.0.2.5&expiry=3%20days&reason=First%20strike&token=123ABC [open in sandbox]
Block user Vandal indefinitely with a reason, and prevent new account creation and email sending.
api.php?action=block&user=Vandal&expiry=never&reason=Vandalism&nocreate=&autoblock=&noemail=&token=123ABC [open in sandbox]