Module:Toolbar
- Ænglisc
- Аԥсшәа
- العربية
- অসমীয়া
- Azərbaycanca
- تۆرکجه
- Basa Bali
- বাংলা
- भोजपुरी
- Bikol Central
- Bosanski
- Cebuano
- Chi-Chewa
- Dansk
- Ελληνικά
- فارسی
- Føroyskt
- Fulfulde
- ગુજરાતી
- गोंयची कोंकणी / Gõychi Konknni
- 한국어
- हिन्दी
- Ilokano
- Bahasa Indonesia
- Íslenska
- Jawa
- ಕನ್ನಡ
- ქართული
- Қазақша
- Ikirundi
- Kurdî
- Latviešu
- मैथिली
- മലയാളം
- मराठी
- مصرى
- Bahasa Melayu
- Мокшень
- Монгол
- မြန်မာဘာသာ
- 日本語
- ଓଡ଼ିଆ
- Oʻzbekcha / ўзбекча
- ပအိုဝ်ႏဘာႏသာႏ
- پښتو
- Polski
- Português
- Qaraqalpaqsha
- Scots
- Shqip
- සිංහල
- Simple English
- سنڌي
- Slovenščina
- کوردی
- Српски / srpski
- Srpskohrvatski / српскохрватски
- Tagalog
- தமிழ்
- Taclḥit
- တႆး
- ไทย
- Türkçe
- Türkmençe
- Тыва дыл
- Українська
- اردو
- Tiếng Việt
- 文言
- Yorùbá
- 粵語
- 中文
- Batak Toba
- Betawi
- Kumoring
- ꠍꠤꠟꠐꠤ
Appearance
From Wikipedia, the free encyclopedia
[画像:Warning] This Lua module is used in system messages, and on approximately 1,460,000 pages, or roughly 2% of all pages.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.
Changes to it can cause immediate changes to the Wikipedia user interface.
To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them.
This module is rated as ready for general use. It has reached a mature state, is considered relatively stable and bug-free, and may be used wherever appropriate. It can be mentioned on help pages and other Wikipedia resources as an option for new users. To minimise server load and avoid disruptive output, improvements should be developed through sandbox testing rather than repeated trial-and-error editing.
Page protected This module is currently protected from editing.
See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected.
See the protection policy and protection log for more details. Please discuss any changes on the talk page; you may submit an edit request to ask an administrator to make an edit if it is uncontroversial or supported by consensus. You may also request that this page be unprotected.
This module depends on the following other modules:
This module implements {{toolbar }}. Please see the template page for documentation.
See also
- {{toolbar }}, {{toolbar/sandbox }}, /testcases
The above documentation is transcluded from Module:Toolbar/doc. (edit | history)
Editors can experiment in this module's sandbox (edit | diff) and testcases (edit | run) pages.
Subpages of this module.
Editors can experiment in this module's sandbox (edit | diff) and testcases (edit | run) pages.
Subpages of this module.
-- This module implements {{toolbar}}. localmArguments-- Lazily initialise [[Module:Arguments]] localmTableTools=require('Module:TableTools') localyesno=require('Module:Yesno') localp={} functionp.main(frame) mArguments=require('Module:Arguments') localargs=mArguments.getArgs(frame) returnp._main(args) end functionp._main(args) localtoolbarItems=p.makeToolbarItems(args) ifnottoolbarItemsthen -- Return the blank string if no arguments were specified, rather than -- returning empty brackets. return'' elseifyesno(args.span)==falsethen returnstring.format( '(%s)', toolbarItems ) else returnstring.format( '<span class="plainlinks%s"%s>(%s)</span>', type(args.class)=='string'and' '..args.classor'', type(args.style)=='string'andstring.format(' style="%s"',args.style)or'', toolbarItems ) end end functionp.makeToolbarItems(args) localnums=mTableTools.numKeys(args) localsep=(args.separatoror'pipe')..'-separator' sep=mw.message.new(sep):plain() localret={} fori,vinipairs(nums)do ret[#ret+1]=mw.ustring.gsub(args[v],"%[%[::+(.-)%]%]","[[:%1]]") end if#ret>0then returntable.concat(ret,sep) else returnnil end end returnp