Export translations
Jump to navigation
Jump to search
Settings
Group
Abuse filter test
Category test
Category:Babel - Users by language
Category:Discord files
Category:Navigation templates
Category:Open proxies blocked on Test Wiki
Category:Test Wiki abuse filter administrators
Category:Test Wiki administrators
Category:Test Wiki bureaucrats
Category:Test Wiki interface administrators
Category:Test Wiki non-steward suppressors
Category:Test Wiki policies
Category:Test Wiki stewards
Category:Test Wiki user groups
Content model test
Main Page
Move test
Page language test
Patrol test
Protection test
Redirection test
Revert test
Review test
Revision and suppression test
Template test
Template:Abuse filter warning
Template:Administrator granted
Template:Administrator required
Template:Archives/doc
Template:Bot
Template:Bureaucrat granted
Template:Bureaucrat required
Template:Comment
Template:Done
Template:Information page
Template:Interface administrator granted
Template:List of test pages
Template:Not done
Template:On hold
Template:Partly done
Template:Policy
Template:Site policy
Template:Thank you
Template:User groups
Test page
Test wiki user groups
Test Wiki:About
Test Wiki:Abuse filter
Test Wiki:Administrator school
Test Wiki:Administrators
Test Wiki:Administrators' newsletter
Test Wiki:All
Test Wiki:Autochecked users
Test Wiki:Autoconfirmed users
Test Wiki:Autopatrolled users
Test Wiki:Babel
Test Wiki:Blocks and bans
Test Wiki:Bots
Test Wiki:Bureaucrat policy
Test Wiki:Bureaucrats
Test Wiki:Chat moderators
Test Wiki:CheckUser
Test Wiki:Confirmed users
Test Wiki:Copyrights
Test Wiki:Discord
Test Wiki:Election administrators
Test Wiki:Inactivity policy
Test Wiki:Interface administrators
Test Wiki:Interwiki administrators
Test Wiki:No open proxies
Test Wiki:Patrollers
Test Wiki:Policies
Test Wiki:Privacy policy
Test Wiki:Push subscription managers
Test Wiki:Request an account
Test Wiki:Reviewers
Test Wiki:Revision deletion
Test Wiki:Server
Test Wiki:Steward actions
Test Wiki:Stewards
Test Wiki:Suppressors
Test Wiki:System administrators
Test Wiki:Translation administrators
Test Wiki:Username policy
Test Wiki:Users
Test Wiki:Users blocked from chat
User:BZPN
User:BZPN/PagePreparation
User:BZPN/translation test
User:BZPN/translation test 2
User:Chqaz/sandbox
User:Chqaz/sandbox2
User:Chqaz/test
User:Chqaz/Translate test
User:Chqaz/Translate test/tm
User:DodoMan
User:EPIC
User:Justarandomamerican
User:Maintenance script
User:Mario1257
User:NguoiDungKhongDinhDanh
User:Tailsultimatefan3891
User:Tailsultimatefan3891/Draft
User:Tailsultimatefan3891/Draft/testcases
User:Tailsultimatefan3891/Wiki proposals/Old
VisualEditor test
Language
aa - Qafár af
aae - Arbërisht
ab - аԥсшәа
abs - bahasa ambon
ace - Acèh
acf - Kwéyòl Sent Lisi
acm - عراقي
ady - адыгабзэ
ady-cyrl - адыгабзэ
aeb - تونسي / Tûnsî
aeb-arab - تونسي
aeb-latn - Tûnsî
af - Afrikaans
aln - Gegë
alt - алтай тил
am - አማርኛ
ami - Pangcah
an - aragonés
ang - Ænglisc
ann - Obolo
anp - अंगिका
apc - شامي
ar - العربية
arc - ܐܪܡܝܐ
arn - mapudungun
arq - جازايرية
ary - الدارجة
arz - مصرى
as - অসমীয়া
ase - American sign language
ast - asturianu
atj - Atikamekw
av - авар
avk - Kotava
awa - अवधी
ay - Aymar aru
az - azərbaycanca
azb - تۆرکجه
ba - башҡортса
ban - Basa Bali
ban-bali - ᬩᬲᬩᬮᬶ
bar - Boarisch
bbc - Batak Toba
bbc-latn - Batak Toba
bcc - جهلسری بلوچی
bci - wawle
bcl - Bikol Central
bdr - Bajau Sama
be - беларуская
be-tarask - беларуская (тарашкевіца)
bew - Betawi
bg - български
bgc - हरियाणवी
bgn - روچ کپتین بلوچی
bh - भोजपुरी
bho - भोजपुरी
bi - Bislama
bjn - Banjar
blk - ပအိုဝ်ႏဘာႏသာႏ
bm - bamanankan
bn - বাংলা
bo - བོད་ཡིག
bpy - বিষ্ণুপ্রিয়া মণিপুরী
bqi - بختیاری
br - brezhoneg
brh - Bráhuí
bs - bosanski
btm - Batak Mandailing
bto - Iriga Bicolano
bug - Basa Ugi
bxr - буряад
ca - català
cbk-zam - Chavacano de Zamboanga
ccp - 𑄌𑄋𑄴𑄟𑄳𑄦
cdo - 閩東語 / Mìng-dĕ̤ng-ngṳ̄
ce - нохчийн
ceb - Cebuano
ch - Chamoru
chn - chinuk wawa
cho - Chahta anumpa
chr - ᏣᎳᎩ
chy - Tsetsêhestâhese
ckb - کوردی
co - corsu
cps - Capiceño
cpx - 莆仙語 / Pó-sing-gṳ̂
cpx-hans - 莆仙语(简体)
cpx-hant - 莆仙語(繁體)
cpx-latn - Pó-sing-gṳ̂ (Báⁿ-uā-ci̍)
cr - Nēhiyawēwin / ᓀᐦᐃᔭᐍᐏᐣ
crh - qırımtatarca
crh-cyrl - къырымтатарджа (Кирилл)
crh-latn - qırımtatarca (Latin)
crh-ro - tatarşa
cs - čeština
csb - kaszëbsczi
cu - словѣньскъ / ⰔⰎⰑⰂⰡⰐⰠⰔⰍⰟ
cv - чӑвашла
cy - Cymraeg
da - dansk
dag - dagbanli
de - Deutsch
de-at - Österreichisches Deutsch
de-ch - Schweizer Hochdeutsch
de-formal - Deutsch (Sie-Form)
dga - Dagaare
din - Thuɔŋjäŋ
diq - Zazaki
dsb - dolnoserbski
dtp - Kadazandusun
dty - डोटेली
dua - Duálá
dv - ދިވެހިބަސް
dz - ཇོང་ཁ
ee - eʋegbe
efi - Efịk
egl - Emiliàn
el - Ελληνικά
eml - emiliàn e rumagnòl
en - English
en-ca - Canadian English
en-gb - British English
eo - Esperanto
es - español
es-419 - español de América Latina
es-formal - español (formal)
et - eesti
eu - euskara
ext - estremeñu
fa - فارسی
fat - mfantse
ff - Fulfulde
fi - suomi
fit - meänkieli
fj - Na Vosa Vakaviti
fo - føroyskt
fon - fɔ̀ngbè
fr - français
frc - français cadien
frp - arpetan
frr - Nordfriisk
fur - furlan
fy - Frysk
ga - Gaeilge
gaa - Ga
gag - Gagauz
gan - 贛語
gan-hans - 赣语(简体)
gan-hant - 贛語(繁體)
gcf - kréyòl Gwadloup
gcr - kriyòl gwiyannen
gd - Gàidhlig
gl - galego
gld - на̄ни
glk - گیلکی
gn - Avañe'ẽ
gom - गोंयची कोंकणी / Gõychi Konknni
gom-deva - गोंयची कोंकणी
gom-latn - Gõychi Konknni
gor - Bahasa Hulontalo
got - 𐌲𐌿𐍄𐌹𐍃𐌺
gpe - Ghanaian Pidgin
grc - Ἀρχαία ἑλληνικὴ
gsw - Alemannisch
gu - ગુજરાતી
guc - wayuunaiki
gur - farefare
guw - gungbe
gv - Gaelg
ha - Hausa
hak - 客家語 / Hak-kâ-ngî
hak-hans - 客家语(简体)
hak-hant - 客家語(繁體)
hak-latn - Hak-kâ-ngî (Pha̍k-fa-sṳ)
haw - Hawaiʻi
he - עברית
hi - हिन्दी
hif - Fiji Hindi
hif-latn - Fiji Hindi
hil - Ilonggo
hno - ہندکو
ho - Hiri Motu
hr - hrvatski
hrx - Hunsrik
hsb - hornjoserbsce
hsn - 湘語
ht - Kreyòl ayisyen
hu - magyar
hu-formal - magyar (formal)
hy - հայերեն
hyw - Արեւմտահայերէն
hz - Otsiherero
ia - interlingua
iba - Jaku Iban
ibb - ibibio
id - Bahasa Indonesia
ie - Interlingue
ig - Igbo
igl - Igala
ii - ꆇꉙ
ik - Iñupiatun
ike-cans - ᐃᓄᒃᑎᑐᑦ
ike-latn - inuktitut
ilo - Ilokano
inh - гӀалгӀай
io - Ido
is - íslenska
isv-cyrl - меджусловјанскы
isv-latn - medžuslovjansky
it - italiano
iu - ᐃᓄᒃᑎᑐᑦ / inuktitut
ja - 日本語
jam - Patois
jbo - la .lojban.
jut - jysk
jv - Jawa
ka - ქართული
kaa - Qaraqalpaqsha
kab - Taqbaylit
kai - Karai-karai
kbd - адыгэбзэ
kbd-cyrl - адыгэбзэ
kbp - Kabɩyɛ
kcg - Tyap
kea - kabuverdianu
kg - Kongo
kge - Kumoring
khw - کھوار
ki - Gĩkũyũ
kiu - Kırmancki
kj - Kwanyama
kjh - хакас
kjp - ဖၠုံလိက်
kk - қазақша
kk-arab - قازاقشا (تٴوتە)
kk-cn - قازاقشا (جۇنگو)
kk-cyrl - қазақша (кирил)
kk-kz - қазақша (Қазақстан)
kk-latn - qazaqşa (latın)
kk-tr - qazaqşa (Türkïya)
kl - kalaallisut
km - ភាសាខ្មែរ
kn - ಕನ್ನಡ
knc - Yerwa Kanuri
ko - 한국어
ko-kp - 조선말
koi - перем коми
kr - kanuri
krc - къарачай-малкъар
kri - Krio
krj - Kinaray-a
krl - karjal
ks - कॉशुर / کٲشُر
ks-arab - کٲشُر
ks-deva - कॉशुर
ksh - Ripoarisch
ksw - စှီၤ
ku - kurdî
ku-arab - کوردی (عەرەبی)
ku-latn - kurdî (latînî)
kum - къумукъ
kus - Kʋsaal
kv - коми
kw - kernowek
ky - кыргызча
la - Latina
lad - Ladino
lb - Lëtzebuergesch
lbe - лакку
lez - лезги
lfn - Lingua Franca Nova
lg - Luganda
li - Limburgs
lij - Ligure
liv - Līvõ kēļ
lki - لەکی
lld - Ladin
lmo - lombard
ln - lingála
lo - ລາວ
loz - Silozi
lrc - لۊری شومالی
lt - lietuvių
ltg - latgaļu
lua - ciluba
lus - Mizo ţawng
luz - لئری دوٙمینی
lv - latviešu
lzh - 文言
lzz - Lazuri
mad - Madhurâ
mag - मगही
mai - मैथिली
map-bms - Basa Banyumasan
mdf - мокшень
mg - Malagasy
mh - Ebon
mhr - олык марий
mi - Māori
min - Minangkabau
mk - македонски
ml - മലയാളം
mn - монгол
mnc - manju gisun
mnc-latn - manju gisun
mnc-mong - ᠮᠠᠨᠵᡠ ᡤᡳᠰᡠᠨ
mni - ꯃꯤꯇꯩ ꯂꯣꯟ
mnw - ဘာသာမန်
mo - молдовеняскэ
mos - moore
mr - मराठी
mrh - Mara
mrj - кырык мары
ms - Bahasa Melayu
ms-arab - بهاس ملايو
mt - Malti
mui - Baso Palembang
mus - Mvskoke
mwl - Mirandés
my - မြန်မာဘာသာ
myv - эрзянь
mzn - مازِرونی
na - Dorerin Naoero
nah - Nāhuatl
nan - 閩南語 / Bân-lâm-gú
nan-hant - 閩南語(傳統漢字)
nan-latn-pehoeji - Bân-lâm-gú (Pe̍h-ōe-jī)
nan-latn-tailo - Bân-lâm-gú (Tâi-lô)
nap - Napulitano
nb - norsk bokmål
nds - Plattdüütsch
nds-nl - Nedersaksies
ne - नेपाली
new - नेपाल भाषा
ng - Oshiwambo
nia - Li Niha
nit - కొలామి
niu - Niuē
nl - Nederlands
nl-informal - Nederlands (informeel)
nmz - nawdm
nn - norsk nynorsk
no - norsk
nod - ᨣᩤᩴᨾᩮᩬᩥᨦ
nog - ногайша
nov - Novial
nqo - ߒߞߏ
nr - isiNdebele seSewula
nrm - Nouormand
nso - Sesotho sa Leboa
nup - Nupe
nv - Diné bizaad
ny - Chi-Chewa
nyn - runyankore
nyo - Orunyoro
nys - Nyunga
oc - occitan
ojb - Ojibwemowin
olo - livvinkarjala
om - Oromoo
or - ଓଡ଼ିଆ
os - ирон
pa - ਪੰਜਾਬੀ
pag - Pangasinan
pam - Kapampangan
pap - Papiamentu
pcd - Picard
pcm - Naijá
pdc - Deitsch
pdt - Plautdietsch
pfl - Pälzisch
pi - पालि
pih - Norfuk / Pitkern
pl - polski
pms - Piemontèis
pnb - پنجابی
pnt - Ποντιακά
prg - prūsiskan
ps - پښتو
pt - português
pt-br - português do Brasil
pwn - pinayuanan
qu - Runa Simi
qug - Runa shimi
rgn - Rumagnôl
rif - Tarifit
rki - ရခိုင်
rm - rumantsch
rmc - romaňi čhib
rmy - romani čhib
rn - ikirundi
ro - română
roa-tara - tarandíne
rsk - руски
ru - русский
rue - русиньскый
rup - armãneashti
ruq - Vlăheşte
ruq-cyrl - Влахесте
ruq-latn - Vlăheşte
rut - мыхаӀбишды
rw - Ikinyarwanda
ryu - うちなーぐち
sa - संस्कृतम्
sah - саха тыла
sat - ᱥᱟᱱᱛᱟᱲᱤ
sc - sardu
scn - sicilianu
sco - Scots
sd - سنڌي
sdc - Sassaresu
sdh - کوردی خوارگ
se - davvisámegiella
se-fi - davvisámegiella (Suoma bealde)
se-no - davvisámegiella (Norgga bealde)
se-se - davvisámegiella (Ruoŧa bealde)
sei - Cmique Itom
ses - Koyraboro Senni
sg - Sängö
sgs - žemaitėška
sh - srpskohrvatski / српскохрватски
sh-cyrl - српскохрватски (ћирилица)
sh-latn - srpskohrvatski (latinica)
shi - Taclḥit
shi-latn - Taclḥit
shi-tfng - ⵜⴰⵛⵍⵃⵉⵜ
shn - ၽႃႇသႃႇတႆး
shy - tacawit
shy-latn - tacawit
si - සිංහල
simple - Simple English
sjd - кӣллт са̄мь кӣлл
sje - bidumsámegiella
sk - slovenčina
skr - سرائیکی
skr-arab - سرائیکی
sl - slovenščina
sli - Schläsch
sm - Gagana Samoa
sma - åarjelsaemien
smn - anarâškielâ
sms - nuõrttsääʹmǩiõll
sn - chiShona
so - Soomaaliga
sq - shqip
sr - српски / srpski
sr-ec - српски (ћирилица)
sr-el - srpski (latinica)
srn - Sranantongo
sro - sardu campidanesu
ss - SiSwati
st - Sesotho
stq - Seeltersk
sty - себертатар
su - Sunda
sv - svenska
sw - Kiswahili
syl - ꠍꠤꠟꠐꠤ
szl - ślůnski
szy - Sakizaya
ta - தமிழ்
tay - Tayal
tcy - ತುಳು
tdd - ᥖᥭᥰ ᥖᥬᥲ ᥑᥨᥒᥰ
te - తెలుగు
tet - tetun
tg - тоҷикӣ
tg-cyrl - тоҷикӣ
tg-latn - tojikī
th - ไทย
ti - ትግርኛ
tig - ትግሬ
tk - Türkmençe
tl - Tagalog
tly - tolışi
tly-cyrl - толыши
tn - Setswana
to - lea faka-Tonga
tok - toki pona
tpi - Tok Pisin
tr - Türkçe
tru - Ṫuroyo
trv - Seediq
ts - Xitsonga
tt - татарча / tatarça
tt-cyrl - татарча
tt-latn - tatarça
ttj - Orutooro
tum - chiTumbuka
tw - Twi
ty - reo tahiti
tyv - тыва дыл
tzm - ⵜⴰⵎⴰⵣⵉⵖⵜ
udm - удмурт
ug - ئۇيغۇرچە / Uyghurche
ug-arab - ئۇيغۇرچە
ug-latn - Uyghurche
uk - українська
ur - اردو
uz - oʻzbekcha / ўзбекча
uz-cyrl - ўзбекча
uz-latn - oʻzbekcha
ve - Tshivenda
vec - vèneto
vep - vepsän kel’
vi - Tiếng Việt
vls - West-Vlams
vmf - Mainfränkisch
vmw - emakhuwa
vo - Volapük
vot - Vaďďa
vro - võro
wa - walon
wal - wolaytta
war - Winaray
wls - Fakaʻuvea
wo - Wolof
wuu - 吴语
wuu-hans - 吴语(简体)
wuu-hant - 吳語(正體)
xal - хальмг
xh - isiXhosa
xmf - მარგალური
xsy - saisiyat
yi - ייִדיש
yo - Yorùbá
yrl - Nhẽẽgatú
yue - 粵語
yue-hans - 粵语(简体)
yue-hant - 粵語(繁體)
za - Vahcuengh
zea - Zeêuws
zgh - ⵜⴰⵎⴰⵣⵉⵖⵜ ⵜⴰⵏⴰⵡⴰⵢⵜ
zgh-latn - tamaziɣt tanawayt
zh - 中文
zh-cn - 中文(中国大陆)
zh-hans - 中文(简体)
zh-hant - 中文(繁體)
zh-hk - 中文(香港)
zh-mo - 中文(澳門)
zh-my - 中文(马来西亚)
zh-sg - 中文(新加坡)
zh-tw - 中文(臺灣)
zu - isiZulu
Format
Export for off-line translation
Export in native format
Export in CSV format
Fetch
<languages /> {{Extension | status = stable | image = | type = notify | hook1 = MediaWikiServices | author = Aleksi Postari, Lens0021 | description = <Translate>Provides FormattedRCFeed and RCFeedFormatter subclasses for Discord</Translate> | version = | update = | compatibility policy = rel | mediawiki = >= 1.35.0 | php = >= 7.3 | license = MIT | download = {{WikimediaDownload|DiscordRCFeed}} | needs-updatephp = no }} <div lang="en" dir="ltr" class="mw-content-ltr"> '''DiscordRCFeed''' extension provides the [[Manual:RCFeedFormatter.php|Discord]] versions of [[Manual:RCFeedFormatter.php|FormattedRCFeed]] and [[Manual:RCFeedFormatter.php|RCFeedFormatter]] subclasses which can be used in {{ll|Manual:$wgRCFeeds|$wgRCFeeds}}. </div> __TOC__ <div lang="en" dir="ltr" class="mw-content-ltr"> == Requirements == </div> * <span lang="en" dir="ltr" class="mw-content-ltr">Setting a feed requires the [https://www.php.net/sockets sockets PHP extension]. If the extension is not enabled, actions like edits, moves, etc may work, but the action may not get logged in recent changes at all. See {{ll|Manual:$wgRCFeeds}} for details.</span> * <span lang="en" dir="ltr" class="mw-content-ltr">Apache should have NE (NoEscape) flag on to prevent issues in URLs. By default you should have this enabled.</span> <div lang="en" dir="ltr" class="mw-content-ltr"> == Installation == </div> {{ExtensionInstall | custom-steps0 = * <span lang="en" dir="ltr" class="mw-content-ltr">Create a new Discord Webhook for your channel. You can create and manage webhooks for your channel by clicking the settings icon next to channel name in the Discord app. Read more from here</span>: <tvar name="4">https://support.discord.com/hc/articles/228383668</tvar> * <span lang="en" dir="ltr" class="mw-content-ltr">After setting up the Webhook you will get a Webhook URL. Copy that URL as you will need it in the following steps.</span> | registration = required | localsettings = $wgRCFeeds['discord'] = [ // Your Discord webhook URL here. 'url' => 'https://discord.com/api/webhooks/xx/xxxx', ]; }} <div lang="en" dir="ltr" class="mw-content-ltr"> == Additional options == </div> <div lang="en" dir="ltr" class="mw-content-ltr"> You can set the element that has the following key for the <syntaxhighlight lang="php" inline>$wgRCFeeds['discord']</syntaxhighlight>: </div> {| class="wikitable" style="clear: both;" ! <span lang="en" dir="ltr" class="mw-content-ltr">Name</span> || <span lang="en" dir="ltr" class="mw-content-ltr">Possible value</span> || <span lang="en" dir="ltr" class="mw-content-ltr">Description</span> || <span lang="en" dir="ltr" class="mw-content-ltr">Default</span> |- ! colspan="4" |<span lang="en" dir="ltr" class="mw-content-ltr">Display options</span> |- | <syntaxhighlight lang="php" inline>'style'</syntaxhighlight> | <syntaxhighlight lang="php" inline>'structure'</syntaxhighlight>, <syntaxhighlight lang="php" inline>'embed'</syntaxhighlight> or <syntaxhighlight lang="php" inline>'inline'</syntaxhighlight> | <span lang="en" dir="ltr" class="mw-content-ltr">Determine how the feed is shown.</span> <gallery mode="slideshow"> File:Screenshot of DiscordRCFeed inline style.png|<span lang="en" dir="ltr" class="mw-content-ltr">The 'inline' style changes.</span> </gallery> | <syntaxhighlight lang="php" inline>'structure'</syntaxhighlight> |- |<syntaxhighlight lang="php" inline="">'user_tools'</syntaxhighlight> | rowspan="2" |<span lang="en" dir="ltr" class="mw-content-ltr">See [[#Controlling Page Tools and User Tools|below]]</span> | rowspan="2" |<span lang="en" dir="ltr" class="mw-content-ltr">Controlling which tools to be included displaying the feed. See [[#Controlling Page Tools and User Tools]] below for details.</span> | rowspan="2" |<span lang="en" dir="ltr" class="mw-content-ltr">defined in [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/DiscordRCFeed/+/refs/heads/master/includes/Constants.php code]</span> |- |<syntaxhighlight lang="php" inline="">'page_tools'</syntaxhighlight> |- ! colspan="4" |<span lang="en" dir="ltr" class="mw-content-ltr">Ignoring changes</span> |- | <syntaxhighlight lang="php" inline>'omit_bots'</syntaxhighlight> | rowspan="6" | <syntaxhighlight lang="php" inline>true</syntaxhighlight> or <syntaxhighlight lang="php" inline>false</syntaxhighlight> | <span lang="en" dir="ltr" class="mw-content-ltr">Whether to skip bot edits. Same as described on [[Manual:$wgRCFeeds]]</span>. | rowspan="6" | <syntaxhighlight lang="php" inline>false</syntaxhighlight> |- | <syntaxhighlight lang="php" inline>'omit_anon'</syntaxhighlight> | <span lang="en" dir="ltr" class="mw-content-ltr">Whether to skip anon edits. Same as described on [[Manual:$wgRCFeeds]]</span>. |- | <syntaxhighlight lang="php" inline>'omit_user'</syntaxhighlight> | <span lang="en" dir="ltr" class="mw-content-ltr">Whether to skip registered users. Same as described on [[Manual:$wgRCFeeds]]</span>. |- | <syntaxhighlight lang="php" inline>'omit_minor'</syntaxhighlight> | <span lang="en" dir="ltr" class="mw-content-ltr">Whether to skip minor edits. Same as described on [[Manual:$wgRCFeeds]]</span>. |- | <syntaxhighlight lang="php" inline>'omit_patrolled'</syntaxhighlight> | <span lang="en" dir="ltr" class="mw-content-ltr">Whether to skip patrolled edits. Same as described on [[Manual:$wgRCFeeds]]</span>. |- |<syntaxhighlight lang="php" inline="">'omit_talk'</syntaxhighlight> |<span lang="en" dir="ltr" class="mw-content-ltr">Whether to skip changes on talk pages</span>. |- | <syntaxhighlight lang="php" inline="">'omit_namespaces'</syntaxhighlight> | rowspan="5" | <span lang="en" dir="ltr" class="mw-content-ltr">See [[#Filtering Notifications|below]]</span> | rowspan="5" | <span lang="en" dir="ltr" class="mw-content-ltr">Lists for changes to be ignored by the feed. See [[#Filtering Notifications]] below for details.</span> | rowspan="2" | <syntaxhighlight lang="php" inline="">[]</syntaxhighlight> |- | <syntaxhighlight lang="php" inline>'omit_types'</syntaxhighlight> |- | <syntaxhighlight lang="php" inline>'omit_log_types'</syntaxhighlight> |<syntaxhighlight lang="php" inline="">['patrol']</syntaxhighlight> |- | <syntaxhighlight lang="php" inline>'omit_log_actions'</syntaxhighlight> | rowspan="2" |<syntaxhighlight lang="php" inline="">[]</syntaxhighlight> |- |<syntaxhighlight lang="php" inline="">'omit_content_models'</syntaxhighlight> |- ! colspan="4" |<span lang="en" dir="ltr" class="mw-content-ltr">Scoping changes</span> |- |<syntaxhighlight lang="php" inline="">'only_talk'</syntaxhighlight> |<syntaxhighlight lang="php" inline="">true</syntaxhighlight> or <syntaxhighlight lang="php" inline="">false</syntaxhighlight> |<span lang="en" dir="ltr" class="mw-content-ltr">If this is <syntaxhighlight lang="php" inline="">true</syntaxhighlight>, only changes on talk pages would be displayed as all other changes are ignored</span>. |<syntaxhighlight lang="php" inline="">false</syntaxhighlight> |- |<syntaxhighlight lang="php" inline="">'only_namespaces'</syntaxhighlight> | rowspan="5" |<div lang="en" dir="ltr" class="mw-content-ltr"> See [[#Filtering Notifications|below]] | rowspan="5" |If not empty, only changes that match the given condition(s) are sent. See [[#Filtering Notifications]] below for details. </div> | rowspan="5" |<syntaxhighlight lang="php" inline="">[]</syntaxhighlight> |- |<syntaxhighlight lang="php" inline="">'only_types'</syntaxhighlight> |- |<syntaxhighlight lang="php" inline="">'only_log_types'</syntaxhighlight> |- |<syntaxhighlight lang="php" inline="">'only_log_actions'</syntaxhighlight> |- |<syntaxhighlight lang="php" inline="">'only_content_models'</syntaxhighlight> |- ! colspan="4" |Other |- | <syntaxhighlight lang="php" inline>'request_replace'</syntaxhighlight> | <span lang="en" dir="ltr" class="mw-content-ltr">See [[#Webhook Request Overriding|below]]</span> | <span lang="en" dir="ltr" class="mw-content-ltr">An array which used to override the post data of the webhook request. See [[#Webhook Request Overriding]] below for details</span>. | <syntaxhighlight lang="php" inline>[]</syntaxhighlight> |} <div lang="en" dir="ltr" class="mw-content-ltr"> === Filtering Notifications === </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <syntaxhighlight lang="php" inline>$wgRCFeeds['discord']['omit_namespaces']</syntaxhighlight> is a list that contains namespaces should be omitted. </div> <div lang="en" dir="ltr" class="mw-content-ltr"> <syntaxhighlight lang="php"> // Disabling notifications from user talk page <tvar name="21">$wgRCFeeds['discord']['omit_namespaces'] = [ NS_USER_TALK ]; </div> <div lang="en" dir="ltr" class="mw-content-ltr"> //</tvar> Disabling notifications from talk pages. $wgRCFeeds['discord']['omit_namespaces'] = [ NS_TALK, NS_USER_TALK, NS_PROJECT_TALK, NS_FILE_TALK, NS_MEDIAWIKI_TALK, NS_TEMPLATE_TALK, NS_HELP_TALK, NS_CATEGORY_TALK, NS_MODULE_TALK, ]; </syntaxhighlight> </div> <div lang="en" dir="ltr" class="mw-content-ltr"> The others are similar. </div> * <syntaxhighlight lang="php" inline>'omit_types'</syntaxhighlight> can contain <syntaxhighlight lang="php" inline>RC_EDIT</syntaxhighlight>, <syntaxhighlight lang="php" inline>RC_NEW</syntaxhighlight>, <syntaxhighlight lang="php" inline>RC_LOG</syntaxhighlight> and <syntaxhighlight lang="php" inline>RC_EXTERNAL</syntaxhighlight>. ([https://codesearch.wmcloud.org/search/?q=%5Edefine%5C(%20%27RC_&i=nope see more]) Note that <syntaxhighlight lang="php" inline>RC_CATEGORIZE</syntaxhighlight> is always omitted by the same cause of [[phab:T127360]]. * <syntaxhighlight lang="php" inline>'omit_log_types'</syntaxhighlight> can contain<syntaxhighlight lang="php" inline>'move'</syntaxhighlight>,<syntaxhighlight lang="php" inline>'protect'</syntaxhighlight>, <syntaxhighlight lang="php" inline>'delete'</syntaxhighlight>, <syntaxhighlight lang="php" inline>'block'</syntaxhighlight>, <syntaxhighlight lang="php" inline>'upload'</syntaxhighlight>... * <syntaxhighlight lang="php" inline>'omit_log_actions'</syntaxhighlight> can contain<syntaxhighlight lang="php" inline>'move/move-noredirect'</syntaxhighlight>, <syntaxhighlight lang="php" inline>'block/block'</syntaxhighlight>, <syntaxhighlight lang="php" inline>'block/unblock'</syntaxhighlight>... ([https://codesearch.wmcloud.org/deployed/?q=%5E%5Cs*%22logentry-.%2B-.%2B%22%3A&i=nope&files=qqq.json see more]) *<syntaxhighlight lang="php" inline="">'omit_content_models'</syntaxhighlight> can contain<syntaxhighlight lang="php" inline="">CONTENT_MODEL_WIKITEXT</syntaxhighlight>, <syntaxhighlight lang="php" inline="">CONTENT_MODEL_JAVASCRIPT</syntaxhighlight>, <syntaxhighlight lang="php" inline="">CONTENT_MODEL_CSS</syntaxhighlight>... ([https://codesearch.wmcloud.org/search/?q=%5Edefine%5C(%20%27CONTENT_MODEL_&i=nope see more]) The next example shows how to disable the new user notification. <syntaxhighlight lang="php"> $wgRCFeeds['discord']['omit_log_types'] = [ 'newusers', ]; </syntaxhighlight> === Controlling Page Tools and User Tools === Page tools and user tools are tools shown after page or user link. {| class="wikitable" ! Option || Description || Default |- | <syntaxhighlight lang="php" inline>'user_tools'</syntaxhighlight> | If this is <syntaxhighlight lang="php" inline>false</syntaxhighlight>, user links of the feed would not get additional tool links. | <nowiki>(talk | contribs)</nowiki> |- | <syntaxhighlight lang="php" inline>'page_tools'</syntaxhighlight> | If this is <syntaxhighlight lang="php" inline>false</syntaxhighlight>, page links of the feed would not get additional tool links. | <nowiki>(hist | diff)</nowiki> |} <syntaxhighlight lang="php"> // Remove page tools $wgRCFeeds['discord']['page_tools'] = false; // Redefine user tools $wgRCFeeds['discord']['user_tools'] = [ [ 'target' => 'special', 'special' => 'Block', 'text' => 'IP Block' ], [ 'target' => 'talk', 'text' => 'Discussion' ], [ 'target' => 'special', 'special' => 'Contributions', // message would be shown if 'msg' is given. 'msg' => 'contribslink' ], ]; </syntaxhighlight> The full default values can be found in [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/DiscordRCFeed/+/refs/heads/master/includes/Constants.php includes/Constants.php]. === Webhook Request Overriding === <syntaxhighlight lang="php" inline>$wgRCFeeds['discord']['request_replace']</syntaxhighlight> is an associative array which used to override the post data of the webhook request. You can set username or avatar using this instead of setting in Discord. Visit https://discord.com/developers/docs/resources/webhook#execute-webhook-jsonform-params for all available parameters. <syntaxhighlight lang="php"> $wgRCFeeds['discord']['request_replace'] = [ 'username' => 'Captain Hook', 'avatar_url' => 'https://upload.wikimedia.org/wikipedia/commons/7/79/MediaWiki-48px.png' ]; </syntaxhighlight> Next example shows how to reuse your icon set in [[Manual:$wgLogos|$wgLogos]]. <syntaxhighlight lang="php"> $wgRCFeeds['discord']['request_replace'] = [ 'avatar_url' => "$wgCanonicalServer/${wgLogos['icon']}", ]; </syntaxhighlight> === Registering Multiple Webhooks === You can register multiple webhooks with separate settings. Only the important part is that all keys of the feeds you want to must start with <syntaxhighlight lang="php" inline>'discord'</syntaxhighlight>, for example, <syntaxhighlight lang="php" inline="">'discord'</syntaxhighlight>, <syntaxhighlight lang="php" inline="">'discord-second'</syntaxhighlight>, <syntaxhighlight lang="php" inline="">'discord2'</syntaxhighlight> and <syntaxhighlight lang="php" inline="">'discord_copy'</syntaxhighlight> are valid keys. <syntaxhighlight lang="php"> wfLoadExtension( 'DiscordRCFeed' ); // Divide anonymous and registered users. $wgRCFeeds = [ 'discord' => [ 'url' => 'https://discord.com/api/webhooks/aaa/xxxx', 'omit_user' = true, ], 'discord_registered' => [ 'url' => 'https://discord.com/api/webhooks/bbb/xxxx', 'omit_anon' = true, ], ]; </syntaxhighlight> == Configuration Examples == === Splitting changes on talk pages from others === <syntaxhighlight lang="php"> $wgRCFeeds = [ 'discord_content' => [ 'url' => 'https://discord.com/api/webhooks/aaa/xxxx', 'omit_talk' => true, ], 'discord_talk' => [ 'url' => 'https://discord.com/api/webhooks/bbb/xxxx', 'only_talk' => true, ], ]; </syntaxhighlight> Note that this is not suitable for wiki where [[Structured Discussions]] is enabled because a page on <syntaxhighlight lang="php" inline>NS_TOPIC</syntaxhighlight> is not considered as a talk page by <syntaxhighlight lang="php" inline>Title::isTalkPage()</syntaxhighlight>. In that case, filtering by namespace is only the solution:<syntaxhighlight lang="php"> $wgRCFeeds['discord'] = [ 'url' => 'https://discord.com/api/webhooks/aaa/xxxx', 'omit_namespaces' => [ NS_TALK, NS_USER_TALK, NS_PROJECT_TALK, NS_FILE_TALK, NS_MEDIAWIKI_TALK, NS_TEMPLATE_TALK, NS_HELP_TALK, NS_CATEGORY_TALK, 829, // NS_MODULE_TALK, if Scribunto is installed 2600, // NS_TOPIC // could be longer ], ]; $wgRCFeeds['discord_talk'] = [ 'url' => 'https://discord.com/api/webhooks/bbb/xxxx', 'only_namespaces' => $wgRCFeeds['discord']['omit_namespaces'], ]; </syntaxhighlight> === Reusing a feed setting for multiple servers === <syntaxhighlight lang="php"> // Define the source. $wgRCFeeds['discord1'] = [ 'url' => 'https://discord.com/api/webhooks/aaa/xxxx', 'omit_bots' => true, 'omit_minor' => true, 'omit_nemespaces' => [ NS_PROJECT, NS_TEMPLATE, NS_MODULE, NS_USER, ], 'only_types' => [ RC_EDIT, RC_NEW ], ]; // Reuse the same configuration. $wgRCFeeds['discord2'] = $wgRCFeeds['discord1']; $wgRCFeeds['discord2']['url'] = 'https://discord.com/api/webhooks/bbb/xxxx', // Reuse but with some tweak. $wgRCFeeds['discord3'] = $wgRCFeeds['discord1']; $wgRCFeeds['discord3']['url'] = 'https://discord.com/api/webhooks/ccc/xxxx', $wgRCFeeds['discord3']['omit_minor'] = false; unset( $wgRCFeeds['discord3']['only_types'] ); </syntaxhighlight> === JavaScript Changes Only === <syntaxhighlight lang="php"> $wgRCFeeds = [ 'discord' => [ 'url' => 'https://discord.com/api/webhooks/xxx/xxxx', 'only_content_models' => CONTENT_MODEL_JAVASCRIPT, ], ]; </syntaxhighlight> == Notes == * Basically, DiscordRCFeed is a fork of [[Extension:DiscordNotifications|DiscordNotifications]], but heavily modified. * The basic usage of [[Manual:$wgRCFeeds|$wgRCFeeds]] is like below:<syntaxhighlight lang="php">$wgRCFeeds['discord'] = [ 'formatter' => 'MediaWiki\Extension\DiscordRCFeed\DiscordRCFeedFormatter', 'url' => 'https://discord.com/api/webhooks/xxx/xxxx', ]; </syntaxhighlight>But because the <syntaxhighlight lang="php" inline>'formatter'</syntaxhighlight> value is too long for the end-users, DiscordRCFeed automatically uses <syntaxhighlight lang="php" inline>'MediaWiki\Extension\DiscordRCFeed\DiscordRCFeedFormatter'</syntaxhighlight> as its default formatter, if the value is omitted and the key of RCFeed is starts with <syntaxhighlight lang="php" inline>'discord'</syntaxhighlight>. == See also == * {{ll|Extension:DiscordNotifications}} * {{ll|Extension:Discord}} {{FemiwikiExtensionFooter}} [[Category:Discord extensions{{#translation:}}]] [[Category:Extensions with StructuredDiscussions support{{#translation:}}]]
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK
Navigation menu
Personal tools
English
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Translate
English
Views
Language statistics
Message group statistics
Export
More
Search
Navigation
Main page
Request permissions
Policies
Test pages
Random page
Community
About
Community portal
Discord
Phabricator
Recent changes
Logs
Tools
Special pages
Printable version
Online users in chat