Modulo:Banderola ti salaknib/dok

Manipud iti Wikipedia, ti nawaya nga ensiklopedia

Daytoy a madulo ket agpartuat kadagiti banderola ken dagiti ikono ti kandado a maikabil iti ngato dagiti nasalakniban a panid.

Panagusar[urnosen ti taudan]

Kaaduan kadagiti agar-aramat ket saan a nasken dagus nga agusar iti daytoy a modulo. Para iti pananginaon kadagiti plantilia ti salaknib kadagiti panid, mabalin nga usaren ti plantilia ti {{pp}} , wenno nalaklaka kaniamon nga usaren ti maysa kadagiti naisangayan a plantilia ti salaknib iti tabla dita baba.

Dagiti plantilia ti salaknib
Modulo:Banderola ti salaknib Panagurnos Panagiyalis Dagiti di pay maibanag a panagbaliw
Sapasap: {{pp}}
{{pp-nasalakniban}} {{pp-iyalis}} {{pp-pc1}} {{pp-pc2}}
WP:BST: {{pp-bst}} N/A N/A
Suppiat: {{pp-suppiat}} {{pp-iyalis-suppiat}} N/A
Nausar iti Umuna a Panid: {{pp-umuna-a-panid}} N/A N/A
Am-ammirisen iti Opisina: {{pp-opisina}} {{pp-isaad-manen}} {{pp-opisina-dmca}}
Tirtiris a pakabilangan: {{pp-tirtiris}} N/A N/A
Adu a pannakabuybuya a plantilia ken modulo: {{pp-plantilia}} N/A N/A
Tungtungan ti agar-aramat iti naserran nga agar-aramat: {{pp-tungtungan-agar-aramat}} N/A N/A
Bandalismo: {{pp-bandalismo}} {{pp-iyalis-bandalismo}} N/A
Napaut a termino: {{pp-semi-agnanayon}} {{pp-iyalis-agnanayon}} N/A
Pakaammo ti tungtungan a panid: {{permanente a nasalakniban}}
{{temporario a nasalakniban}}
N/A N/A

Manipud ti wikitext[urnosen ti taudan]

{{#invoke:Banderola ti salaknib|main
| 1        = rason
| small    = wen/saan
| action   = tignay
| expiry   = panagpaso
| date     = petsa ti salaknib
| user     = nagan ti agar-aramat
| section  = nagan ti paset ti tungtungan a panid
| category = saan
}}

Ti sintaksis ti #invoke ket mabalin a mausar iti panagpartuat kadagiti plantilia ti salaknib a naisangsangayan ngem ti {{pp}}. Kas pagarigan, mabalin ti agpartuat ti plantilia ti salaknib a kankanayon nga agiparang iti ikono ti kandado babaen ti panagusar ti kodigo ti {{#invoke:Banderola ti salaknib|main|small=yes}}. Dagiti panid a mangtawag iti plantilia ket mabalindanto pay ti agusar kadagiti argumento, kasla ti action ken expiry. Nupay kasta, daytoy ket mabalin laeng iti maysa nga agpang a kauneg; ti panid a mangtawag iti plantilia a mangtawag manen ti sabali aplantilia nga aglaon ti kodigo dita ngato ket saanto nga automatiko a mapakabaelan nga agusar kadagiti parametro a kas ti action ken expiry.

Manipud ti Lua[urnosen ti taudan]

Umuna nga ikarga ti modulo.

local mProtectionBanner = require('Modulo:Banderola ti salaknib')

Kalpasanna mabalinmonton ti agpartuat kadagiti banderola ti salaknib babaen ti panagusar ti annong ti _main .

mProtectionBanner._main(args, cfg, titleObj)

Ti args ket tabla dagiti argumento a maipasa iti modulo. Para kadagiti mabalin a tekla ken dagiti pateg para iti daytoy a tabla, kitaen ti paset dagiti parametro. Ti panagdumaduma ti cfg ken titleObj ket naikeddeng laeng para iti panagsubok; ti cfg ket manginagan ti naiduma a tabla ti konpigurasion ti tabla a mausar imbes a ti Modulo:Banderola ti salaknib/pannakaaramid, ken titleObj manginagan ti mw.title object a mausar imbes a ti agdama a titulo. args, ti cfg ken titleObj ket pagpilian amin dagitoy.

Dagiti parametro[urnosen ti taudan]

Amin dagiti parametro ket pagpilian.

  • 1 - ti rason a nakasalakniban ti panid. No maisaad, daytoy ket nasken a maysa kadagiti pateg a nailista iti tabla dagiti rason.
  • small - no maisaad iti "yes", "y", "1","true", "wen", ken "w" mapataud ti ikono ti kandado imbes a ti banderola ti napno a salaknib.
  • action - ti tignay ti salaknib. Nasken a maysa kadagiti "edit" (fpara iti normal a salaknib), "move" (para iti salaknib ti panagiyalis) wenno "autoreview" (para kadagiti di pay maibanag a panagbaliw). Ti kasisigud a pateg key edit".
  • expiry - the expiry date of the protection. This can be a date (for temporary protection), or one of the strings "indef", "indefinite", "indefinitely", or "infinite" (for indefinite protection). If this is a date, it must be valid input to the second parameter of the #time parser function.
  • date - the protection date. This must be valid input to the second parameter of the #time parser function. This argument has an effect for reasons that use the PROTECTIONDATE parameter in their configuration. As of July 2014, those were the "office" and "reset" reasons.
  • user - the username of the user to generate links for. As of July 2014, this only has an effect when the "usertalk" reason is specified.
  • section - the section name of the protected page's talk page where discussion is taking place. This works for most, but not all, values of reason.
  • category - dagiti kategoria ket mapasardeng no maisaad daytoy iti "no", "n", "0", "false", "saan", ken "s" .

Dagiti rason[urnosen ti taudan]

The following table contains the available reasons, plus the actions for which they are available.

Rason Tignay Dekripsion
blp edit Para kadagiti panid a mangiragpat ti panagtungpal iti annuroten dagiti biograpia ti sibibiag a tattao .
dispute edit Para kadagiti panid a nasalakniban gapu kadagiti suppiat ti panagurnos.
dmca edit Para kadagiti panid a nasalakniban babaen ti Pundasion ti Wikimedia gapu kadagiti kiddaw ti panagikkat iti Digital Millennium Copyright Act.
mainpage edit Para kadagiti panid a nasalakniban gapu ta naiparang iti Umuna a Panid.
office edit Para kadagiti panid a nasalakniban babaen ti Pundasion ti Wikimedia.
reset edit Para kadagiti panid a nasalakniban babaen ti Pundasion ti Wikimedia ken "naisaad manen" iti bersion nga awan unay linaon.
sock edit Para kadagiti panid a nasalakniban gapu iti tirtiris a pakabilangan.
template edit Para kadagiti nariesgo unay a plantilia ken dagiti modulo ti Lua.
usertalk edit Para kadagiti panid a nasalakniban kadagiti makagulo a panagurnos babaen ti naisangayan nga agar-aramat.
vandalism edit Para kadagiti panid a nasalakniban kadagiti bandalismo.
dispute move Para kadagiti panid a nasalakniban kadagiti panagiyalis ti panid gapu ti suppiat iti titulo ti panid.
vandalism move Para kadagiti panid a nasalakniban kadagiti bandalismo ti panagiyalis iti panid.

Dagiti biddut[urnosen ti taudan]

Below is a list of some of the common errors that this module can produce, and how to fix them.

Imbalido a panagpaso[urnosen ti taudan]

Error: invalid expiry ("abc")

This error is produced if you supply an |expiry= parameter value that is not recognised as a valid date by the #time parser function. If in doubt, you can just use a date in the format "dd Month YYYY", e.g. "22 Marso 2024". To see a full range of valid inputs, see the #time documentation (only the first parameter, the format string, may be specified).

Imbalido a petsa ti salaknib[urnosen ti taudan]

Biddut: imbalido a petsa ti salaknib ("abc")

This error is produced if you supply an |date= parameter value that is not recognised as a valid date by the #time parser function. If in doubt, you can just use a date in the format "dd Month YYYY", e.g. "22 Marso 2024". To see a full range of valid inputs, see the #time documentation (only the first parameter, the format string, may be specified).

Imbalido a tignay[urnosen ti taudan]

Error: invalid action ("abc")

This error is produced if you specify an invalid protection action. There are only three valid actions: edit (the default, for normal protection), move (for move-protection), and autoreview (for pending changes). This should only be possible if you are using a template that supports manually specifying the protection action, such as {{pp}}, or if you are using #invoke directly. If this is not the case, please leave a message on Module talk:Protection banner.

Reasons cannot contain the pipe character[urnosen ti taudan]

Error: reasons cannot contain the pipe character ("|")

This error is produced if you specify a reason using the |1= parameter that includes a pipe character ("|"). Please check that you are not entering the {{!}} template into this parameter by mistake. The pipe character is disallowed as the module uses it internally. A list of valid reasons can be seen in the reasons section.

Other errors[urnosen ti taudan]

If you see an error other than the ones above, it is likely to either be a bug in the module or mistake in the configuration. Please post a message about it at Module talk:Protection banner.

Technical details[urnosen ti taudan]

This module uses configuration data from Modulo:Banderola ti salaknib/pannakaaramid. Most of the module's behaviour can be configured there, making it easily portable across different wikis and different languages.

General test cases for the module can be found at Module:Protection banner/testcases, and test cases specific to enwiki's config can be found at Module:Protection banner/config/testcases.

Bug reports and feature requests should be made on the module's talk page.