વિભાગ:Asbox: આવૃત્તિઓ વચ્ચેનો તફાવત

Content deleted Content added
નાનું નાનો કે અત્યંત નાનો લેખ - જે તે ઢાંચા માટે રાખ્યો.
શ્રેણી એરર માટે ફિક્સ
 
લીટી ૧૦:
 
Both templates had significant contributions from numerous others listed in the revision history tab of their respective pages.
 
Localized by User:KartikMistry and User:CptViraj
--]]
local WRAPPER_TEMPLATE, args = 'Template:Asbox'
Line ૩૬ ⟶ ૩૮:
or a table of strings and/or tables containing parts. (See below)
]]
local attention, catTag, catKey = Buffer'Stub message templates needing attention', '[[Categoryશ્રેણી:%s]]', '%s|%s%s'
local function category(cat)
for _, v in ipairs((tostring(cat) == cat or cat.t) and {cat} or cat) do
Line ૮૫ ⟶ ૮૭:
for k, v in ipairs(stubCats) do
--Get category names and, if called by p.templatepage, the optional sort key
local tsort, cat = args['tempsort' .. v], mw.ustring.gsublower(args['category' .. v], '[^%w%p%s]', '')--remove all hidden unicode chars
--remove all hidden unicode chars is replaced by code to change category name in lower case because it was removing Matraas in Devnagari letters and we don't have to use Uppercase letters in Roman script
--Do not place template in main category if |tempsort = 'no'. However, DO place articles of that template in the main category.
table.insert(stubCats.v,
Line ૯૭ ⟶ ૧૦૦:
--Check category existance only if on the template page (i.e. stub documentation)
if page then
if not mw.title.new('Categoryશ્રેણી:' .. cat).exists then
code = code or mw.html.create'code':wikitext'|category'
table.insert(stubCats.missing, tostring(mw.clone(code):wikitext(v)))
Line ૧૮૧ ⟶ ૧૮૪:
:_'. It uses {{[[Template:Asbox|asbox]]}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.\n=== Usage ===\nTyping '
:_(mw.html.create'code'
:wikitext('{{', page.text == 'Stubસ્ટબ' and 'stubStub' or page.text, '}}')
)
:_' produces the message shown at the beginning, and adds the article to the following categor'
Line ૨૭૦ ⟶ ૨૭૩:
:tag'small':wikitext(
'Demo categories: ',
(category{done = true}:gsub('(%[%[)(Categoryશ્રેણી:)([^|%]]-)(%|)', '%1%2%3|%2%3%4'):gsub('(%[%[)(Category:)', '%1:%2'))
):done()
:wikitext(p.demo == 'doc' and p.demodoc or nil)