Bu modül şu Lua modülünü kullanıyor: |
Kullanım
Modül:Ayrı girişler is inspired by Modül:Ayrı girişler and serves as a templating front-end to mw.text.listToText
. It takes of positional parameters and pieces them together with |separator=
. |conjunction=
can be optionally defined if a different separator is desired between the last and second last items. Leading and trailing whitespace is stripped; if the |separator=
should contain spaces, use the HTML escape code  
. Separated entries does not raise any errors by design.
{{#invoke:Ayrı girişler|main|separator=...}}
-- This module takes positional parameters as input and concatenates them with -- an optional separator. The final separator (the "conjunction") can be -- specified independently, enabling natural-language lists like -- "foo, bar, baz and qux". The starting parameter can also be specified. local compressSparseArray = require('Modül:TableTools').compressSparseArray local p = {} function p._main(args) local separator = args.separator -- Decode (convert to Unicode) HTML escape sequences, such as " " for space. and mw.text.decode(args.separator) or '' local conjunction = args.conjunction and mw.text.decode(args.conjunction) or separator -- Discard values before the starting parameter. local start = tonumber(args.start) if start then for i = 1, start - 1 do args[i] = nil end end -- Discard named parameters. local values = compressSparseArray(args) return mw.text.listToText(values, separator, conjunction) end local function makeInvokeFunction(separator, conjunction, first) return function (frame) local args = require('Module:Arguments').getArgs(frame) args.separator = separator or args.separator args.conjunction = conjunction or args.conjunction args.first = first or args.first return p._main(args) end end p.main = makeInvokeFunction() p.br = makeInvokeFunction('<br />') p.comma = makeInvokeFunction(mw.message.new('comma-separator'):plain()) return p
wikipedia, wiki, viki, vikipedia, oku, kitap, kütüphane, kütübhane, ara, ara bul, bul, herşey, ne arasanız burada,hikayeler, makale, kitaplar, öğren, wiki, bilgi, tarih, yukle, izle, telefon için, turk, türk, türkçe, turkce, nasıl yapılır, ne demek, nasıl, yapmak, yapılır, indir, ücretsiz, ücretsiz indir, bedava, bedava indir, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, resim, müzik, şarkı, film, film, oyun, oyunlar, mobil, cep telefonu, telefon, android, ios, apple, samsung, iphone, xiomi, xiaomi, redmi, honor, oppo, nokia, sonya, mi, pc, web, computer, bilgisayar
Modul belgelemesi gor degistir gecmis temizle Bu modul su Lua modulunu kullaniyor Modul TableToolsKullanim Modul Ayri girisler is inspired by Modul Ayri girisler and serves as a templating front end to mw text listToText It takes of positional parameters and pieces them together with separator conjunction can be optionally defined if a different separator is desired between the last and second last items Leading and trailing whitespace is stripped if the separator should contain spaces use the HTML escape code amp 32 Separated entries does not raise any errors by design invoke Ayri girisler main separator Yukaridaki belgeleme icerigi Modul Ayri girisler belge sayfasindan yansitilmaktadir degistir gecmis Kullanicilar denemelerini bu sablonun deneme tahtasi olustur yansitma ve test senaryosu olustur sayfalarinda yapabilirler Lutfen kategorileri belge alt sayfasina ekleyin Bu modul ile ilgili alt sayfalar icin buraya tiklayiniz This module takes positional parameters as input and concatenates them with an optional separator The final separator the conjunction can be specified independently enabling natural language lists like foo bar baz and qux The starting parameter can also be specified local compressSparseArray require Modul TableTools compressSparseArray local p function p main args local separator args separator Decode convert to Unicode HTML escape sequences such as amp 32 for space and mw text decode args separator or local conjunction args conjunction and mw text decode args conjunction or separator Discard values before the starting parameter local start tonumber args start if start then for i 1 start 1 do args i nil end end Discard named parameters local values compressSparseArray args return mw text listToText values separator conjunction end local function makeInvokeFunction separator conjunction first return function frame local args require Module Arguments getArgs frame args separator separator or args separator args conjunction conjunction or args conjunction args first first or args first return p main args end end p main makeInvokeFunction p br makeInvokeFunction lt br gt p comma makeInvokeFunction mw message new comma separator plain return p