Module:Reply to
- Аԥсшәа
- Afrikaans
- Алтай тил
- Pangcah
- العربية
- الدارجة
- مصرى
- Azərbaycanca
- تۆرکجه
- Basa Bali
- Беларуская (тарашкевіца)
- Betawi
- भोजपुरी
- Banjar
- ပအိုဝ်ႏဘာႏသာႏ
- বাংলা
- Brezhoneg
- Bosanski
- Cebuano
- کوردی
- Dansk
- Dagbanli
- English
- فارسی
- Na Vosa Vakaviti
- Frysk
- Gaeilge
- Galego
- گیلکی
- Avañe'ẽ
- ગુજરાતી
- Hausa
- हिन्दी
- Հայերեն
- Bahasa Indonesia
- Ilokano
- ГӀалгӀай
- Íslenska
- 日本語
- Jawa
- Qaraqalpaqsha
- Kumoring
- 한국어
- Lietuvių
- Мокшень
- Македонски
- ဘာသာမန်
- मराठी
- Bahasa Melayu
- မြန်မာဘာသာ
- नेपाली
- Li Niha
- ଓଡ଼ିଆ
- ਪੰਜਾਬੀ
- Português
- Runa Simi
- Ikirundi
- Руски
- Русский
- Scots
- سنڌي
- Davvisámegiella
- တႆး
- Simple English
- Slovenščina
- Shqip
- Српски / srpski
- Sunda
- Kiswahili
- தமிழ்
- Tetun
- ไทย
- Türkmençe
- Türkçe
- Українська
- اردو
- Oʻzbekcha / ўзбекча
- Vèneto
- Tiếng Việt
- Winaray
- 文言
- 中文
Appearance
From Meta, a Wikimedia project coordination wiki
TNT This module should use Module:TNT for localisation.
This module is subject to page protection. It is a highly visible module in use by a very large number of pages, or is substituted very frequently. Because vandalism or mistakes would affect many pages, and even trivial editing might cause substantial load on the servers, it is protected from editing.
Implements {{reply to}}.
Usage
{{#invoke:Reply to|replyto}}
The above documentation is transcluded from Module:Reply to/doc. (edit | history)
Editors can experiment in this module’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this module.
Editors can experiment in this module’s sandbox (create | mirror) and testcases (create) pages.
Please add categories to the /doc subpage. Subpages of this module.
localp={} localhtmlerror=require('Module:Error').error functionp.replyto(frame) localorigArgs=frame:getParent().args localargs={} localmaxArg=0 fork,vinpairs(origArgs)do iftype(k)=='number'then ifv:match('%S')then ifk>maxArgthenmaxArg=kend localtitle=mw.title.new(v) ifnottitlethen returnhtmlerror{'Error in [[Template:Reply to]]: Input contains forbidden characters.'} end args[k]=title.baseText end else args[k]=v end end ifmaxArg==0then ifframe.args.examplethenargs[1]=frame.args.exampleelsereturnhtmlerror{'Error in [[Template:Reply to]]: Username not given.'}end end ifmaxArg>(tonumber(frame.args.max)or50)then returnhtmlerror{'Error in [[Template:Reply to]]: More than '..tostring(frame.args.maxor50)..' names specified.'} else localoutStr='<span class="template-ping">'..(args['prefix']or'@')..'[[:User:'..args[1]..'|'..((args['label1']orargs['label'])orargs[1])..']]' fori=2,maxArgdo if((maxArg>2)or((maxArg==2)and(args['c']=='')))thenoutStr=outStr..","end ifi==maxArgthenoutStr=outStr.." "..(args['c']or"and")end outStr=outStr.." [[:User:"..args[i].."|"..(args['label'..tostring(i)]orargs[i]).."]]" end outStr=outStr..(args['p']or":").."</span>" returnoutStr end end returnp