وِکیٖپیٖڈیا kswiki https://ks.wikipedia.org/wiki/%D8%A7%D9%8E%DB%81%D9%8E%D9%85_%D8%B5%D9%8E%D9%81%DB%81%D9%95 MediaWiki 1.47.0-wmf.23 first-letter میڈیا خاص کَتھ رُکُن رُکُن کَتھ وِکیٖپیٖڈیا وِکیٖپیٖڈیا کَتھ فَیِل فَیِل کَتھ میٖڈیاوِکی میٖڈیاوِکی کَتھ فرما فرما کَتھ مَدَتھ مَدَتھ کَتھ زٲژ زٲژ کَتھ TimedText TimedText talk Module Module talk Event Event talk فرما:Documentation subpage 10 6641 153723 151908 2026-10-09T18:55:36Z 511KeV 8268 /* */ 153723 wikitext text/x-wiki <includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = [[File:Edit-copy green.svg|40px|alt=icon]] | text = {{strong|یہِ چھُ اَکھ [[وِکیٖپیٖڈیا:فرما دَستاویز|دَستاویز بَچہٕ صَفہٕ]]}} {{terminate sentence|{{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}}} خٲطرٕ<br />It may contain usage information, [[Wikipedia:Categorization|categories]] and other content that is not part of the original {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} صَفہٕ|article}}}}}}}}. }} }}<!-- -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!-- --><includeonly>__EXPECTED_UNCONNECTED_PAGE__</includeonly><!-- -->{{#if:{{{nocat|}}}{{{inhibit|}}}|<!--(don't categorize)--> |<includeonly><!-- -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}} | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | [[Category:Documentation subpages without corresponding pages]] }}<!-- --></includeonly> }}<!-- (completing initial #ifeq: at start of template:) --><includeonly> | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--> }}<!-- --></includeonly><noinclude>{{Documentation}}</noinclude> 47m69jfhuamcn0ga2uljvhjdgvzwuso 153724 153723 2026-10-09T18:58:55Z 511KeV 8268 /* */ 153724 wikitext text/x-wiki <includeonly><!-- -->{{#ifeq:{{lc:{{SUBPAGENAME}}}} |{{{override|doc}}} | <!--(this template has been transcluded on a /doc or /{{{override}}} page)--> </includeonly><!-- -->{{#ifeq:{{{doc-notice|show}}} |show | {{Mbox | type = notice | style = margin-bottom:1.0em; | image = [[File:Edit-copy green.svg|40px|alt=icon]] | text = {{strong|یہِ چھُ اَکھ [[وِکیٖپیٖڈیا:فرما دَستاویز|دَستاویز بَچہٕ صَفہٕ]]}} {{terminate sentence|{{{1|[[:{{SUBJECTSPACE}}:{{BASEPAGENAME}}]]}}}}} خٲطرٕ<br />اَتھ مَنٛز ہیٚکہِ اِستِمالٕچ معلوماتھ، [[وپ:زٲژ|زٲژ]] یا باقٕے مواد ٲسِتھ یُس نہٕ {{#if:{{{text2|}}} |{{{text2}}} |{{#if:{{{text1|}}} |{{{text1}}} |{{#ifeq:{{SUBJECTSPACE}} |{{ns:User}} |{{lc:{{SUBJECTSPACE}}}} template page |{{#if:{{SUBJECTSPACE}} |{{lc:{{SUBJECTSPACE}}}} صَفُک|article}}}}}}}} حِصہٕ چھُ. }} }}<!-- -->{{DEFAULTSORT:{{{defaultsort|{{PAGENAME}}}}}}}<!-- --><includeonly>__EXPECTED_UNCONNECTED_PAGE__</includeonly><!-- -->{{#if:{{{nocat|}}}{{{inhibit|}}}|<!--(don't categorize)--> |<includeonly><!-- -->{{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}} | [[Category:{{#switch:{{SUBJECTSPACE}} |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | [[Category:Documentation subpages without corresponding pages]] }}<!-- --></includeonly> }}<!-- (completing initial #ifeq: at start of template:) --><includeonly> | <!--(this template has not been transcluded on a /doc or /{{{override}}} page)--> }}<!-- --></includeonly><noinclude>{{Documentation}}</noinclude> 312db55rzr5deix7351dk1qyri1qsia Module:Documentation 828 6655 153714 151886 2026-10-09T18:33:23Z 511KeV 8268 Test 153714 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} function envFuncs.docTitle() local docname = args[1] -- Respect an explicitly specified documentation page. if docname then return mw.title.new(docname) end -- First, try the standard /doc subpage. local docTitle = mw.title.new( env.docpageBase .. '/doc' ) if docTitle and docTitle.exists then return docTitle end -- If /doc does not exist, try the Kashmiri subpage. docTitle = mw.title.new( env.docpageBase .. '/دَستاویز' ) if docTitle and docTitle.exists then return docTitle end -- Default location when neither page exists. return mw.title.new( env.docpageBase .. '/doc' ) end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p jtqqmuchct95dygpqltzvx57dtof5ib 153715 153714 2026-10-09T18:35:24Z 511KeV 8268 [[Special:Contributions/511KeV|511KeV]] ([[User talk:511KeV|کَتھ]]) سٕنٛدِ طَرفہٕ کَرنہٕ آمٕژ [[Special:Diff/153714|153714]] تَبدیٖلی آی رَد کَرنہٕ 153715 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p bo74oekmmsj1xtpw7dlzkvkhc0k05g6 153725 153715 2026-10-09T19:04:55Z 511KeV 8268 153725 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'یہِ ہؠرِم [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p enfisia8mdeb2mi92rsn8i1gcywnbo4 153726 153725 2026-10-09T19:07:12Z 511KeV 8268 [[Special:Contributions/511KeV|511KeV]] ([[User talk:511KeV|کَتھ]]) سٕنٛدِ طَرفہٕ کَرنہٕ آمٕژ [[Special:Diff/153725|153725]] تَبدیٖلی آی رَد کَرنہٕ 153726 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p bo74oekmmsj1xtpw7dlzkvkhc0k05g6 153727 153726 2026-10-09T19:10:32Z 511KeV 8268 153727 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "اؠڈِٹر ہیٚکن ٹؠسٹ فرما کِس sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "اؠڈِٹر ہیٚکن ٹؠسٹ فرما کِس sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'اؠڈِٹر ہیٚکن ٹؠسٹ فرما کِس $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p syw61qmafeaajiwguww6pxoyzdnur7l 153728 153727 2026-10-09T19:12:25Z 511KeV 8268 [[Special:Contributions/511KeV|511KeV]] ([[User talk:511KeV|کَتھ]]) سٕنٛدِ طَرفہٕ کَرنہٕ آمٕژ [[Special:Diff/153727|153727]] تَبدیٖلی آی رَد کَرنہٕ 153728 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p bo74oekmmsj1xtpw7dlzkvkhc0k05g6 153729 153728 2026-10-09T19:13:45Z 511KeV 8268 ٹت 153729 Scribunto text/plain -- This module implements {{دستاویز}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs local messageBox = require('Module:Message box') -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('پیغام: ٹائپ ایرر در پیغام cfg.' .. cfgKey .. ' (' .. expectType .. ' انتظار جاری، ' .. type(msg) .. ' موصول ہو گیا)', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('پیغام: کوئی قدر برائے کلید $' .. match .. ' در متن cfg.' .. cfgKey .. ' نہیں ملی', 4) end local ret = ugsub(msg, '$([1-9][0-9]*)', getMessageVal) return ret end p.message = message local function makeWikilink(page, display) if display then return mw.ustring.format('[[%s|%s]]', page, display) else return mw.ustring.format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink bfb79lgw3c0dfmy3shyuaibdqzsmz6a 153730 153729 2026-10-09T19:14:30Z 511KeV 8268 [[Special:Contributions/511KeV|511KeV]] ([[User talk:511KeV|کَتھ]]) سٕنٛدِ طَرفہٕ کَرنہٕ آمٕژ [[Special:Diff/153729|153729]] تَبدیٖلی آی رَد کَرنہٕ 153730 Scribunto text/plain -- This module implements {{documentation}}. -- Get required modules. local getArgs = require('Module:Arguments').getArgs -- Get the config table. local cfg = mw.loadData('Module:Documentation/config') local p = {} -- Often-used functions. local ugsub = mw.ustring.gsub local format = mw.ustring.format ---------------------------------------------------------------------------- -- Helper functions -- -- These are defined as local functions, but are made available in the p -- table for testing purposes. ---------------------------------------------------------------------------- local function message(cfgKey, valArray, expectType) --[[ -- Gets a message from the cfg table and formats it if appropriate. -- The function raises an error if the value from the cfg table is not -- of the type expectType. The default type for expectType is 'string'. -- If the table valArray is present, strings such as $1, $2 etc. in the -- message are substituted with values from the table keys [1], [2] etc. -- For example, if the message "foo-message" had the value 'Foo $2 bar $1.', -- message('foo-message', {'baz', 'qux'}) would return "Foo qux bar baz." --]] local msg = cfg[cfgKey] expectType = expectType or 'string' if type(msg) ~= expectType then error('message: type error in message cfg.' .. cfgKey .. ' (' .. expectType .. ' expected, got ' .. type(msg) .. ')', 2) end if not valArray then return msg end local function getMessageVal(match) match = tonumber(match) return valArray[match] or error('message: no value found for key $' .. match .. ' in message cfg.' .. cfgKey, 4) end return ugsub(msg, '$([1-9][0-9]*)', getMessageVal) end p.message = message local function makeWikilink(page, display) if display then return format('[[%s|%s]]', page, display) else return format('[[%s]]', page) end end p.makeWikilink = makeWikilink local function makeCategoryLink(cat, sort) local catns = mw.site.namespaces[14].name return makeWikilink(catns .. ':' .. cat, sort) end p.makeCategoryLink = makeCategoryLink local function makeUrlLink(url, display) return format('[%s %s]', url, display) end p.makeUrlLink = makeUrlLink local function makeToolbar(...) local ret = {} local lim = select('#', ...) if lim < 1 then return nil end for i = 1, lim do ret[#ret + 1] = select(i, ...) end -- 'documentation-toolbar' return format( '<span class="%s">(%s)</span>', message('toolbar-class'), table.concat(ret, ' &#124; ') ) end p.makeToolbar = makeToolbar ---------------------------------------------------------------------------- -- Argument processing ---------------------------------------------------------------------------- local function makeInvokeFunc(funcName) return function (frame) local args = getArgs(frame, { valueFunc = function (key, value) if type(value) == 'string' then value = value:match('^%s*(.-)%s*$') -- Remove whitespace. if key == 'heading' or value ~= '' then return value else return nil end else return value end end }) return p[funcName](args) end end ---------------------------------------------------------------------------- -- Entry points ---------------------------------------------------------------------------- function p.nonexistent(frame) if mw.title.getCurrentTitle().subpageText == 'testcases' then return frame:expandTemplate{title = 'module test cases notice'} else return p.main(frame) end end p.main = makeInvokeFunc('_main') function p._main(args) --[[ -- This function defines logic flow for the module. -- @args - table of arguments passed by the user --]] local env = p.getEnvironment(args) local root = mw.html.create() root :wikitext(p._getModuleWikitext(args, env)) :wikitext(p.protectionTemplate(env)) :wikitext(p.sandboxNotice(args, env)) :tag('div') -- 'documentation-container' :addClass(message('container')) :attr('role', 'complementary') :attr('aria-labelledby', args.heading ~= '' and 'documentation-heading' or nil) :attr('aria-label', args.heading == '' and 'Documentation' or nil) :newline() :tag('div') -- 'documentation' :addClass(message('main-div-classes')) :newline() :wikitext(p._startBox(args, env)) :wikitext(p._content(args, env)) :tag('div') -- 'documentation-clear' :addClass(message('clear')) :done() :newline() :done() :wikitext(p._endBox(args, env)) :done() :wikitext(p.addTrackingCategories(env)) -- 'Module:Documentation/styles.css' return mw.getCurrentFrame():extensionTag ( 'templatestyles', '', {src=cfg['templatestyles'] }) .. tostring(root) end ---------------------------------------------------------------------------- -- Environment settings ---------------------------------------------------------------------------- function p.getEnvironment(args) --[[ -- Returns a table with information about the environment, including title -- objects and other namespace- or path-related data. -- @args - table of arguments passed by the user -- -- Title objects include: -- env.title - the page we are making documentation for (usually the current title) -- env.templateTitle - the template (or module, file, etc.) -- env.docTitle - the /doc subpage. -- env.sandboxTitle - the /sandbox subpage. -- env.testcasesTitle - the /testcases subpage. -- -- Data includes: -- env.protectionLevels - the protection levels table of the title object. -- env.subjectSpace - the number of the title's subject namespace. -- env.docSpace - the number of the namespace the title puts its documentation in. -- env.docpageBase - the text of the base page of the /doc, /sandbox and /testcases pages, with namespace. -- env.compareUrl - URL of the Special:ComparePages page comparing the sandbox with the template. -- -- All table lookups are passed through pcall so that errors are caught. If an error occurs, the value -- returned will be nil. --]] local env, envFuncs = {}, {} -- Set up the metatable. If triggered we call the corresponding function in the envFuncs table. The value -- returned by that function is memoized in the env table so that we don't call any of the functions -- more than once. (Nils won't be memoized.) setmetatable(env, { __index = function (t, key) local envFunc = envFuncs[key] if envFunc then local success, val = pcall(envFunc) if success then env[key] = val -- Memoise the value. return val end end return nil end }) function envFuncs.title() -- The title object for the current page, or a test page passed with args.page. local title local titleArg = args.page if titleArg then title = mw.title.new(titleArg) else title = mw.title.getCurrentTitle() end return title end function envFuncs.templateTitle() --[[ -- The template (or module, etc.) title object. -- Messages: -- 'sandbox-subpage' --> 'sandbox' -- 'testcases-subpage' --> 'testcases' --]] local subjectSpace = env.subjectSpace local title = env.title local subpage = title.subpageText if subpage == message('sandbox-subpage') or subpage == message('testcases-subpage') or (subpage == message('doc-subpage') and mw.title.getCurrentTitle().namespace == env.docSpace) then return mw.title.makeTitle(subjectSpace, title.baseText) else return mw.title.makeTitle(subjectSpace, title.text) end end function envFuncs.docTitle() --[[ -- Title object of the /doc subpage. -- Messages: -- 'doc-subpage' --> 'doc' --]] local title = env.title local docname = args[1] -- User-specified doc page. local docpage if docname then docpage = docname else docpage = env.docpageBase .. '/' .. message('doc-subpage') end return mw.title.new(docpage) end function envFuncs.sandboxTitle() --[[ -- Title object for the /sandbox subpage. -- Messages: -- 'sandbox-subpage' --> 'sandbox' --]] return mw.title.new(env.docpageBase .. '/' .. message('sandbox-subpage')) end function envFuncs.testcasesTitle() --[[ -- Title object for the /testcases subpage. -- Messages: -- 'testcases-subpage' --> 'testcases' --]] return mw.title.new(env.docpageBase .. '/' .. message('testcases-subpage')) end function envFuncs.protectionLevels() -- The protection levels table of the title object. return env.title.protectionLevels end function envFuncs.subjectSpace() -- The subject namespace number. return mw.site.namespaces[env.title.namespace].subject.id end function envFuncs.docSpace() -- The documentation namespace number. For most namespaces this is the -- same as the subject namespace. However, pages in the Article, File, -- MediaWiki or Category namespaces must have their /doc, /sandbox and -- /testcases pages in talk space. local subjectSpace = env.subjectSpace if subjectSpace == 0 or subjectSpace == 6 or subjectSpace == 8 or subjectSpace == 14 then return subjectSpace + 1 else return subjectSpace end end function envFuncs.docpageBase() -- The base page of the /doc, /sandbox, and /testcases subpages. -- For some namespaces this is the talk page, rather than the template page. local templateTitle = env.templateTitle local docSpace = env.docSpace local docSpaceText = mw.site.namespaces[docSpace].name -- Assemble the link. docSpace is never the main namespace, so we can hardcode the colon. return docSpaceText .. ':' .. templateTitle.text end function envFuncs.compareUrl() -- Diff link between the sandbox and the main template using [[Special:ComparePages]]. local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle if templateTitle.exists and sandboxTitle.exists then local compareUrl = mw.uri.canonicalUrl( 'Special:ComparePages', { page1 = templateTitle.prefixedText, page2 = sandboxTitle.prefixedText} ) return tostring(compareUrl) else return nil end end return env end ---------------------------------------------------------------------------- -- Auxiliary templates ---------------------------------------------------------------------------- p.getModuleWikitext = makeInvokeFunc('_getModuleWikitext') function p._getModuleWikitext(args, env) local currentTitle = mw.title.getCurrentTitle() if currentTitle.contentModel ~= 'Scribunto' then return end pcall(require, currentTitle.prefixedText) -- if it fails, we don't care local moduleWikitext = package.loaded["Module:Module wikitext"] if moduleWikitext then return moduleWikitext.main() end end function p.sandboxNotice(args, env) --[=[ -- Generates a sandbox notice for display above sandbox pages. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-notice-image' --> '[[File:Sandbox.svg|50px|alt=|link=]]' -- 'sandbox-notice-blurb' --> 'This is the $1 for $2.' -- 'sandbox-notice-diff-blurb' --> 'This is the $1 for $2 ($3).' -- 'sandbox-notice-pagetype-template' --> '[[Wikipedia:Template test cases|template sandbox]] page' -- 'sandbox-notice-pagetype-module' --> '[[Wikipedia:Template test cases|module sandbox]] page' -- 'sandbox-notice-pagetype-other' --> 'sandbox page' -- 'sandbox-notice-compare-link-display' --> 'diff' -- 'sandbox-notice-testcases-blurb' --> 'See also the companion subpage for $1.' -- 'sandbox-notice-testcases-link-display' --> 'test cases' -- 'sandbox-category' --> 'Template sandboxes' -- 'module-sandbox-category' --> 'Module sandboxes' -- 'other-sandbox-category' --> 'Sandboxes outside of template or module namespace' --]=] local title = env.title local sandboxTitle = env.sandboxTitle local templateTitle = env.templateTitle local subjectSpace = env.subjectSpace if not (subjectSpace and title and sandboxTitle and templateTitle and mw.title.equals(title, sandboxTitle)) then return nil end -- Build the table of arguments to pass to {{ombox}}. We need just two fields, "image" and "text". local omargs = {} omargs.image = message('sandbox-notice-image') -- Get the text. We start with the opening blurb, which is something like -- "This is the template sandbox for [[Template:Foo]] (diff)." local text = '__EXPECTUNUSEDTEMPLATE__' local pagetype, sandboxCat if subjectSpace == 10 then pagetype = message('sandbox-notice-pagetype-template') sandboxCat = message('sandbox-category') elseif subjectSpace == 828 then pagetype = message('sandbox-notice-pagetype-module') sandboxCat = message('module-sandbox-category') else pagetype = message('sandbox-notice-pagetype-other') sandboxCat = message('other-sandbox-category') end local templateLink = makeWikilink(templateTitle.prefixedText) local compareUrl = env.compareUrl if compareUrl then local compareDisplay = message('sandbox-notice-compare-link-display') local compareLink = makeUrlLink(compareUrl, compareDisplay) text = text .. message('sandbox-notice-diff-blurb', {pagetype, templateLink, compareLink}) else text = text .. message('sandbox-notice-blurb', {pagetype, templateLink}) end -- Get the test cases page blurb if the page exists. This is something like -- "See also the companion subpage for [[Template:Foo/testcases|test cases]]." local testcasesTitle = env.testcasesTitle if testcasesTitle and testcasesTitle.exists then if testcasesTitle.contentModel == "Scribunto" then local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesRunLinkDisplay = message('sandbox-notice-testcases-run-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-run-blurb', {testcasesLink, testcasesRunLink}) else local testcasesLinkDisplay = message('sandbox-notice-testcases-link-display') local testcasesLink = makeWikilink(testcasesTitle.prefixedText, testcasesLinkDisplay) text = text .. '<br />' .. message('sandbox-notice-testcases-blurb', {testcasesLink}) end end -- Add the sandbox to the sandbox category. omargs.text = text .. makeCategoryLink(sandboxCat) -- 'documentation-clear' return '<div class="' .. message('clear') .. '"></div>' .. require('Module:Message box').main('ombox', omargs) end function p.protectionTemplate(env) -- Generates the padlock icon in the top right. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'protection-template' --> 'pp-template' -- 'protection-template-args' --> {docusage = 'yes'} local protectionLevels = env.protectionLevels if not protectionLevels then return nil end local editProt = protectionLevels.edit and protectionLevels.edit[1] local moveProt = protectionLevels.move and protectionLevels.move[1] if editProt then -- The page is edit-protected. return require('Module:Protection banner')._main{ message('protection-reason-edit'), small = true } elseif moveProt and moveProt ~= 'autoconfirmed' then -- The page is move-protected but not edit-protected. Exclude move -- protection with the level "autoconfirmed", as this is equivalent to -- no move protection at all. return require('Module:Protection banner')._main{ action = 'move', small = true } else return nil end end ---------------------------------------------------------------------------- -- Start box ---------------------------------------------------------------------------- p.startBox = makeInvokeFunc('_startBox') function p._startBox(args, env) --[[ -- This function generates the start box. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- The actual work is done by p.makeStartBoxLinksData and p.renderStartBoxLinks which make -- the [view] [edit] [history] [purge] links, and by p.makeStartBoxData and p.renderStartBox -- which generate the box HTML. --]] env = env or p.getEnvironment(args) local links local content = args.content if not content or args[1] then -- No need to include the links if the documentation is on the template page itself. local linksData = p.makeStartBoxLinksData(args, env) if linksData then links = p.renderStartBoxLinks(linksData) end end -- Generate the start box html. local data = p.makeStartBoxData(args, env, links) if data then return p.renderStartBox(data) else -- User specified no heading. return nil end end function p.makeStartBoxLinksData(args, env) --[[ -- Does initial processing of data to make the [view] [edit] [history] [purge] links. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'view-link-display' --> 'view' -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'purge-link-display' --> 'purge' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'docpage-preload' --> 'Template:Documentation/preload' -- 'create-link-display' --> 'create' --]] local subjectSpace = env.subjectSpace local title = env.title local docTitle = env.docTitle if not title or not docTitle then return nil end if docTitle.isRedirect then docTitle = docTitle.redirectTarget end -- Create link if /doc doesn't exist. local preload = args.preload if not preload then if subjectSpace == 828 then -- Module namespace preload = message('module-preload') else preload = message('docpage-preload') end end return { title = title, docTitle = docTitle, -- View, display, edit, and purge links if /doc exists. viewLinkDisplay = message('view-link-display'), editLinkDisplay = message('edit-link-display'), historyLinkDisplay = message('history-link-display'), purgeLinkDisplay = message('purge-link-display'), preload = preload, createLinkDisplay = message('create-link-display') } end function p.renderStartBoxLinks(data) --[[ -- Generates the [view][edit][history][purge] or [create][purge] links from the data table. -- @data - a table of data generated by p.makeStartBoxLinksData --]] local docTitle = data.docTitle -- yes, we do intend to purge the template page on which the documentation appears local purgeLink = makeWikilink("Special:Purge/" .. data.title.prefixedText, data.purgeLinkDisplay) if docTitle.exists then local viewLink = makeWikilink(docTitle.prefixedText, data.viewLinkDisplay) local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, data.editLinkDisplay) local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, data.historyLinkDisplay) return viewLink .. editLink .. historyLink .. purgeLink else local createLink = makeUrlLink(docTitle:canonicalUrl{action = 'edit', preload = data.preload}, data.createLinkDisplay) return createLink .. purgeLink end return ret end function p.makeStartBoxData(args, env, links) --[=[ -- Does initial processing of data to pass to the start-box render function, p.renderStartBox. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- @links - a string containing the [view][edit][history][purge] links - could be nil if there's an error. -- -- Messages: -- 'documentation-icon-wikitext' --> '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- 'template-namespace-heading' --> 'Template documentation' -- 'module-namespace-heading' --> 'Module documentation' -- 'file-namespace-heading' --> 'Summary' -- 'other-namespaces-heading' --> 'Documentation' -- 'testcases-create-link-display' --> 'create' --]=] local subjectSpace = env.subjectSpace if not subjectSpace then -- Default to an "other namespaces" namespace, so that we get at least some output -- if an error occurs. subjectSpace = 2 end local data = {} -- Heading local heading = args.heading -- Blank values are not removed. if heading == '' then -- Don't display the start box if the heading arg is defined but blank. return nil end if heading then data.heading = heading elseif subjectSpace == 10 then -- Template namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('template-namespace-heading') elseif subjectSpace == 828 then -- Module namespace data.heading = message('documentation-icon-wikitext') .. ' ' .. message('module-namespace-heading') elseif subjectSpace == 6 then -- File namespace data.heading = message('file-namespace-heading') else data.heading = message('other-namespaces-heading') end -- Heading CSS local headingStyle = args['heading-style'] if headingStyle then data.headingStyleText = headingStyle else -- 'documentation-heading' data.headingClass = message('main-div-heading-class') end -- Data for the [view][edit][history][purge] or [create] links. if links then -- 'mw-editsection-like plainlinks' data.linksClass = message('start-box-link-classes') data.links = links end return data end function p.renderStartBox(data) -- Renders the start box html. -- @data - a table of data generated by p.makeStartBoxData. local sbox = mw.html.create('div') sbox -- 'documentation-startbox' :addClass(message('start-box-class')) :newline() :tag('span') :addClass(data.headingClass) :attr('id', 'documentation-heading') :cssText(data.headingStyleText) :wikitext(data.heading) local links = data.links if links then sbox:tag('span') :addClass(data.linksClass) :attr('id', data.linksId) :wikitext(links) end return tostring(sbox) end ---------------------------------------------------------------------------- -- Documentation content ---------------------------------------------------------------------------- p.content = makeInvokeFunc('_content') function p._content(args, env) -- Displays the documentation contents -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment env = env or p.getEnvironment(args) local docTitle = env.docTitle local content = args.content if not content and docTitle and docTitle.exists then content = args._content or mw.getCurrentFrame():expandTemplate{title = docTitle.prefixedText} end -- The line breaks below are necessary so that "=== Headings ===" at the start and end -- of docs are interpreted correctly. return '\n' .. (content or '') .. '\n' end p.contentTitle = makeInvokeFunc('_contentTitle') function p._contentTitle(args, env) env = env or p.getEnvironment(args) local docTitle = env.docTitle if not args.content and docTitle and docTitle.exists then return docTitle.prefixedText else return '' end end ---------------------------------------------------------------------------- -- End box ---------------------------------------------------------------------------- p.endBox = makeInvokeFunc('_endBox') function p._endBox(args, env) --[=[ -- This function generates the end box (also known as the link box). -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- --]=] -- Get environment data. env = env or p.getEnvironment(args) local subjectSpace = env.subjectSpace local docTitle = env.docTitle if not subjectSpace or not docTitle then return nil end -- Check whether we should output the end box at all. Add the end -- box by default if the documentation exists or if we are in the -- user, module or template namespaces. local linkBox = args['link box'] if linkBox == 'off' or not ( docTitle.exists or subjectSpace == 2 or subjectSpace == 828 or subjectSpace == 10 ) then return nil end -- Assemble the link box. local text = '' if linkBox then text = text .. linkBox else text = text .. (p.makeDocPageBlurb(args, env) or '') -- "This documentation is transcluded from [[Foo]]." if subjectSpace == 2 or subjectSpace == 10 or subjectSpace == 828 then -- We are in the user, template or module namespaces. -- Add sandbox and testcases links. -- "Editors can experiment in this template's sandbox and testcases pages." text = text .. (p.makeExperimentBlurb(args, env) or '') .. '<br />' if not args.content and not args[1] then -- "Please add categories to the /doc subpage." -- Don't show this message with inline docs or with an explicitly specified doc page, -- as then it is unclear where to add the categories. text = text .. (p.makeCategoriesBlurb(args, env) or '') end text = text .. ' ' .. (p.makeSubpagesBlurb(args, env) or '') --"Subpages of this template" end end local box = mw.html.create('div') -- 'documentation-metadata' box:attr('role', 'note') :addClass(message('end-box-class')) -- 'plainlinks' :addClass(message('end-box-plainlinks')) :wikitext(text) :done() return '\n' .. tostring(box) end function p.makeDocPageBlurb(args, env) --[=[ -- Makes the blurb "This documentation is transcluded from [[Template:Foo]] (edit, history)". -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'edit-link-display' --> 'edit' -- 'history-link-display' --> 'history' -- 'transcluded-from-blurb' --> -- 'The above [[Wikipedia:Template documentation|documentation]] -- is [[Help:Transclusion|transcluded]] from $1.' -- 'module-preload' --> 'Template:Documentation/preload-module-doc' -- 'create-link-display' --> 'create' -- 'create-module-doc-blurb' --> -- 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' --]=] local docTitle = env.docTitle if not docTitle then return nil end if docTitle.exists then -- /doc exists; link to it. local docLink = makeWikilink(docTitle.prefixedText) local editDisplay = message('edit-link-display') local editLink = makeWikilink("Special:EditPage/" .. docTitle.prefixedText, editDisplay) local historyDisplay = message('history-link-display') local historyLink = makeWikilink("Special:PageHistory/" .. docTitle.prefixedText, historyDisplay) return message('transcluded-from-blurb', {docLink}) .. ' ' .. makeToolbar(editLink, historyLink) .. '<br />' elseif env.subjectSpace == 828 then -- /doc does not exist; ask to create it. local createUrl = docTitle:canonicalUrl{action = 'edit', preload = message('module-preload')} local createDisplay = message('create-link-display') local createLink = makeUrlLink(createUrl, createDisplay) return message('create-module-doc-blurb', {createLink}) .. '<br />' end end function p.makeExperimentBlurb(args, env) --[[ -- Renders the text "Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- -- Messages: -- 'sandbox-link-display' --> 'sandbox' -- 'sandbox-edit-link-display' --> 'edit' -- 'compare-link-display' --> 'diff' -- 'module-sandbox-preload' --> 'Template:Documentation/preload-module-sandbox' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'sandbox-create-link-display' --> 'create' -- 'mirror-edit-summary' --> 'Create sandbox version of $1' -- 'mirror-link-display' --> 'mirror' -- 'mirror-link-preload' --> 'Template:Documentation/mirror' -- 'sandbox-link-display' --> 'sandbox' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display'--> 'edit' -- 'template-sandbox-preload' --> 'Template:Documentation/preload-sandbox' -- 'testcases-create-link-display' --> 'create' -- 'testcases-link-display' --> 'testcases' -- 'testcases-edit-link-display' --> 'edit' -- 'module-testcases-preload' --> 'Template:Documentation/preload-module-testcases' -- 'template-testcases-preload' --> 'Template:Documentation/preload-testcases' -- 'experiment-blurb-module' --> 'Editors can experiment in this module's $1 and $2 pages.' -- 'experiment-blurb-template' --> 'Editors can experiment in this template's $1 and $2 pages.' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle local sandboxTitle = env.sandboxTitle local testcasesTitle = env.testcasesTitle local templatePage = templateTitle.prefixedText if not subjectSpace or not templateTitle or not sandboxTitle or not testcasesTitle then return nil end -- Make links. local sandboxLinks, testcasesLinks if sandboxTitle.exists then local sandboxPage = sandboxTitle.prefixedText local sandboxDisplay = message('sandbox-link-display') local sandboxLink = makeWikilink(sandboxPage, sandboxDisplay) local sandboxEditDisplay = message('sandbox-edit-link-display') local sandboxEditLink = makeWikilink("Special:EditPage/" .. sandboxPage, sandboxEditDisplay) local compareUrl = env.compareUrl local compareLink if compareUrl then local compareDisplay = message('compare-link-display') compareLink = makeUrlLink(compareUrl, compareDisplay) end sandboxLinks = sandboxLink .. ' ' .. makeToolbar(sandboxEditLink, compareLink) else local sandboxPreload if subjectSpace == 828 then sandboxPreload = message('module-sandbox-preload') else sandboxPreload = message('template-sandbox-preload') end local sandboxCreateUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = sandboxPreload} local sandboxCreateDisplay = message('sandbox-create-link-display') local sandboxCreateLink = makeUrlLink(sandboxCreateUrl, sandboxCreateDisplay) local mirrorSummary = message('mirror-edit-summary', {makeWikilink(templatePage)}) local mirrorPreload = message('mirror-link-preload') local mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = mirrorPreload, summary = mirrorSummary} if subjectSpace == 828 then mirrorUrl = sandboxTitle:canonicalUrl{action = 'edit', preload = templateTitle.prefixedText, summary = mirrorSummary} end local mirrorDisplay = message('mirror-link-display') local mirrorLink = makeUrlLink(mirrorUrl, mirrorDisplay) sandboxLinks = message('sandbox-link-display') .. ' ' .. makeToolbar(sandboxCreateLink, mirrorLink) end if testcasesTitle.exists then local testcasesPage = testcasesTitle.prefixedText local testcasesDisplay = message('testcases-link-display') local testcasesLink = makeWikilink(testcasesPage, testcasesDisplay) local testcasesEditUrl = testcasesTitle:canonicalUrl{action = 'edit'} local testcasesEditDisplay = message('testcases-edit-link-display') local testcasesEditLink = makeWikilink("Special:EditPage/" .. testcasesPage, testcasesEditDisplay) -- for Modules, add testcases run link if exists if testcasesTitle.contentModel == "Scribunto" and testcasesTitle.talkPageTitle and testcasesTitle.talkPageTitle.exists then local testcasesRunLinkDisplay = message('testcases-run-link-display') local testcasesRunLink = makeWikilink(testcasesTitle.talkPageTitle.prefixedText, testcasesRunLinkDisplay) testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink, testcasesRunLink) else testcasesLinks = testcasesLink .. ' ' .. makeToolbar(testcasesEditLink) end else local testcasesPreload if subjectSpace == 828 then testcasesPreload = message('module-testcases-preload') else testcasesPreload = message('template-testcases-preload') end local testcasesCreateUrl = testcasesTitle:canonicalUrl{action = 'edit', preload = testcasesPreload} local testcasesCreateDisplay = message('testcases-create-link-display') local testcasesCreateLink = makeUrlLink(testcasesCreateUrl, testcasesCreateDisplay) testcasesLinks = message('testcases-link-display') .. ' ' .. makeToolbar(testcasesCreateLink) end local messageName if subjectSpace == 828 then messageName = 'experiment-blurb-module' else messageName = 'experiment-blurb-template' end return message(messageName, {sandboxLinks, testcasesLinks}) end function p.makeCategoriesBlurb(args, env) --[[ -- Generates the text "Please add categories to the /doc subpage." -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'doc-link-display' --> '/doc' -- 'add-categories-blurb' --> 'Please add categories to the $1 subpage.' --]] local docTitle = env.docTitle if not docTitle then return nil end local docPathLink = makeWikilink(docTitle.prefixedText, message('doc-link-display')) return message('add-categories-blurb', {docPathLink}) end function p.makeSubpagesBlurb(args, env) --[[ -- Generates the "Subpages of this template" link. -- @args - a table of arguments passed by the user -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'template-pagetype' --> 'template' -- 'module-pagetype' --> 'module' -- 'default-pagetype' --> 'page' -- 'subpages-link-display' --> 'Subpages of this $1' --]] local subjectSpace = env.subjectSpace local templateTitle = env.templateTitle if not subjectSpace or not templateTitle then return nil end local pagetype if subjectSpace == 10 then pagetype = message('template-pagetype') elseif subjectSpace == 828 then pagetype = message('module-pagetype') else pagetype = message('default-pagetype') end local subpagesLink = makeWikilink( 'Special:PrefixIndex/' .. templateTitle.prefixedText .. '/', message('subpages-link-display', {pagetype}) ) return message('subpages-blurb', {subpagesLink}) end ---------------------------------------------------------------------------- -- Tracking categories ---------------------------------------------------------------------------- function p.addTrackingCategories(env) --[[ -- Check if {{documentation}} is transcluded on a /doc or /testcases page. -- @env - environment table containing title objects, etc., generated with p.getEnvironment -- Messages: -- 'display-strange-usage-category' --> true -- 'doc-subpage' --> 'doc' -- 'testcases-subpage' --> 'testcases' -- 'strange-usage-category' --> 'Wikipedia pages with strange ((documentation)) usage' -- -- /testcases pages in the module namespace are not categorised, as they may have -- {{documentation}} transcluded automatically. --]] local title = env.title local subjectSpace = env.subjectSpace if not title or not subjectSpace then return nil end local subpage = title.subpageText if message('display-strange-usage-category', nil, 'boolean') and ( subpage == message('doc-subpage') or subjectSpace ~= 828 and subpage == message('testcases-subpage') ) then return makeCategoryLink(message('strange-usage-category')) end return '' end return p bo74oekmmsj1xtpw7dlzkvkhc0k05g6 Module:Documentation/config 828 6656 153716 151888 2026-10-09T18:39:03Z 511KeV 8268 153716 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'The above [[Wikipedia:Template documentation|documentation]] is [[Help:Transclusion|transcluded]] from $1.' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "Editors can experiment in this template's $1 and $2 pages." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'Add categories to the $1 subpage.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/دَستاویز' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Subpages of this $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'دَستاویز' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg 0rext90qcqyknt5927iati1n6m4ts9l 153731 153716 2026-10-09T19:17:30Z 511KeV 8268 153731 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'یہِ ہؠرِم [[Wikipedia:فرما دَستاویز|دَستاویز]] چھُ [[Help:Transclusion|شٲِل]] $1 پؠٹھٕ .' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "Editors can experiment in this template's $1 and $2 pages." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'Add categories to the $1 subpage.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/دَستاویز' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Subpages of this $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'دَستاویز' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg m77awar1jmq6hsjo3m9rvwznvvuhp0v 153732 153731 2026-10-09T19:23:44Z 511KeV 8268 153732 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'یہِ ہؠرِم [[Wikipedia:فرما دَستاویز|دَستاویز]] چھُ [[Help:Transclusion|شٲِل]] $1 پؠٹھٕ .' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "اؠڈِٹر ہیٚکن ٹؠسٹ ییمہ فرما کِس $1 یا $2 صَفَس پؠٹھ کٔرِتھ." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'Add categories to the $1 subpage.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/دَستاویز' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Subpages of this $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'دَستاویز' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg fodyrz61dkgzaggwkk5cejimofh9p44 153733 153732 2026-10-09T19:25:43Z 511KeV 8268 153733 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'یہِ ہؠرِم [[Wikipedia:فرما دَستاویز|دَستاویز]] چھُ [[Help:Transclusion|شٲِل]] $1 پؠٹھٕ .' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "اؠڈِٹر ہیٚکن ٹؠسٹ ییمہ فرما کِس $1 یا $2 صَفَس پؠٹھ کٔرِتھ." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'زٲژ چھِ $1 بَچہٕ صَفس پؠٹھ رَلاونؠ.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/دَستاویز' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'Subpages of this $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'دَستاویز' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg jc3ja7scf61ok8rh7cace7pnf3h5fz4 153734 153733 2026-10-09T19:28:14Z 511KeV 8268 153734 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'edit' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'یہِ ہؠرِم [[Wikipedia:فرما دَستاویز|دَستاویز]] چھُ [[Help:Transclusion|شٲِل]] $1 پؠٹھٕ .' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "اؠڈِٹر ہیٚکن ٹؠسٹ ییمہ فرما کِس $1 یا $2 صَفَس پؠٹھ کٔرِتھ." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'edit' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'create' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'edit' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'create' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'زٲژ چھِ $1 بَچہٕ صَفس پؠٹھ رَلاونؠ.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/دَستاویز' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'بَچہٕ صَفہٕ $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'دَستاویز' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg eq32srsx2rme41dznxdn6hymn3pkmtk 153735 153734 2026-10-09T19:31:09Z 511KeV 8268 153735 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'اؠڈِٹ' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'history' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'بَنٲوِو' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'یہِ ہؠرِم [[Wikipedia:فرما دَستاویز|دَستاویز]] چھُ [[Help:Transclusion|شٲِل]] $1 پؠٹھٕ .' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "اؠڈِٹر ہیٚکن ٹؠسٹ ییمہ فرما کِس $1 یا $2 صَفَس پؠٹھ کٔرِتھ." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'اؠڈِٹ' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'بَنٲوِو' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'mirror' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'اؠڈِٹ' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'بَنٲوِو' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'زٲژ چھِ $1 بَچہٕ صَفس پؠٹھ رَلاونؠ.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/دَستاویز' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'بَچہٕ صَفہٕ $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'دَستاویز' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg nsxdyoxwpqkimbh9p1q6ptc896hhhuy 153736 153735 2026-10-09T19:34:03Z 511KeV 8268 153736 Scribunto text/plain ---------------------------------------------------------------------------------------------------- -- -- Configuration for Module:Documentation -- -- Here you can set the values of the parameters and messages used in Module:Documentation to -- localise it to your wiki and your language. Unless specified otherwise, values given here -- should be string values. ---------------------------------------------------------------------------------------------------- local cfg = {} -- Do not edit this line. ---------------------------------------------------------------------------------------------------- -- Protection template configuration ---------------------------------------------------------------------------------------------------- -- cfg['protection-reason-edit'] -- The protection reason for edit-protected templates to pass to -- [[Module:Protection banner]]. cfg['protection-reason-edit'] = 'template' --[[ ---------------------------------------------------------------------------------------------------- -- Sandbox notice configuration -- -- On sandbox pages the module can display a template notifying users that the current page is a -- sandbox, and the location of test cases pages, etc. The module decides whether the page is a -- sandbox or not based on the value of cfg['sandbox-subpage']. The following settings configure the -- messages that the notices contains. ---------------------------------------------------------------------------------------------------- --]] -- cfg['sandbox-notice-image'] -- The image displayed in the sandbox notice. cfg['sandbox-notice-image'] = '[[File:Edit In Sandbox Icon - Color.svg|50px|alt=|link=]]' --[[ -- cfg['sandbox-notice-pagetype-template'] -- cfg['sandbox-notice-pagetype-module'] -- cfg['sandbox-notice-pagetype-other'] -- The page type of the sandbox page. The message that is displayed depends on the current subject -- namespace. This message is used in either cfg['sandbox-notice-blurb'] or -- cfg['sandbox-notice-diff-blurb']. --]] cfg['sandbox-notice-pagetype-template'] = '[[Wikipedia:Template test cases|template sandbox]] page' cfg['sandbox-notice-pagetype-module'] = '[[Wikipedia:Template test cases|module sandbox]] page' cfg['sandbox-notice-pagetype-other'] = 'sandbox page' --[[ -- cfg['sandbox-notice-blurb'] -- cfg['sandbox-notice-diff-blurb'] -- cfg['sandbox-notice-diff-display'] -- Either cfg['sandbox-notice-blurb'] or cfg['sandbox-notice-diff-blurb'] is the opening sentence -- of the sandbox notice. The latter has a diff link, but the former does not. $1 is the page -- type, which is either cfg['sandbox-notice-pagetype-template'], -- cfg['sandbox-notice-pagetype-module'] or cfg['sandbox-notice-pagetype-other'] depending what -- namespace we are in. $2 is a link to the main template page, and $3 is a diff link between -- the sandbox and the main template. The display value of the diff link is set by -- cfg['sandbox-notice-compare-link-display']. --]] cfg['sandbox-notice-blurb'] = 'This is the $1 for $2.' cfg['sandbox-notice-diff-blurb'] = 'This is the $1 for $2 ($3).' cfg['sandbox-notice-compare-link-display'] = 'diff' --[[ -- cfg['sandbox-notice-testcases-blurb'] -- cfg['sandbox-notice-testcases-link-display'] -- cfg['sandbox-notice-testcases-run-blurb'] -- cfg['sandbox-notice-testcases-run-link-display'] -- cfg['sandbox-notice-testcases-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit. $1 is a link to the test cases page. -- cfg['sandbox-notice-testcases-link-display'] is the display value for that link. -- cfg['sandbox-notice-testcases-run-blurb'] is a sentence notifying the user that there is a test cases page -- corresponding to this sandbox that they can edit, along with a link to run it. $1 is a link to the test -- cases page, and $2 is a link to the page to run it. -- cfg['sandbox-notice-testcases-run-link-display'] is the display value for the link to run the test -- cases. --]] cfg['sandbox-notice-testcases-blurb'] = 'See also the companion subpage for $1.' cfg['sandbox-notice-testcases-link-display'] = 'test cases' cfg['sandbox-notice-testcases-run-blurb'] = 'See also the companion subpage for $1 ($2).' cfg['sandbox-notice-testcases-run-link-display'] = 'run' -- cfg['sandbox-category'] - A category to add to all template sandboxes. -- cfg['module-sandbox-category'] - A category to add to all module sandboxes. -- cfg['module-sandbox-category'] - A category to add to all sandboxe not in templates or modules. cfg['sandbox-category'] = 'Template sandboxes' cfg['module-sandbox-category'] = 'Module sandboxes' cfg['other-sandbox-category'] = 'Sandboxes outside of template or module namespace' ---------------------------------------------------------------------------------------------------- -- Start box configuration ---------------------------------------------------------------------------------------------------- -- cfg['documentation-icon-wikitext'] -- The wikitext for the icon shown at the top of the template. cfg['documentation-icon-wikitext'] = '[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]]' -- cfg['template-namespace-heading'] -- The heading shown in the template namespace. cfg['template-namespace-heading'] = 'Template documentation' -- cfg['module-namespace-heading'] -- The heading shown in the module namespace. cfg['module-namespace-heading'] = 'Module documentation' -- cfg['file-namespace-heading'] -- The heading shown in the file namespace. cfg['file-namespace-heading'] = 'Summary' -- cfg['other-namespaces-heading'] -- The heading shown in other namespaces. cfg['other-namespaces-heading'] = 'Documentation' -- cfg['view-link-display'] -- The text to display for "view" links. cfg['view-link-display'] = 'view' -- cfg['edit-link-display'] -- The text to display for "edit" links. cfg['edit-link-display'] = 'اؠڈِٹ' -- cfg['history-link-display'] -- The text to display for "history" links. cfg['history-link-display'] = 'تَوٲیٖخ' -- cfg['purge-link-display'] -- The text to display for "purge" links. cfg['purge-link-display'] = 'purge' -- cfg['create-link-display'] -- The text to display for "create" links. cfg['create-link-display'] = 'بَنٲوِو' ---------------------------------------------------------------------------------------------------- -- Link box (end box) configuration ---------------------------------------------------------------------------------------------------- -- cfg['transcluded-from-blurb'] -- Notice displayed when the docs are transcluded from another page. $1 is a wikilink to that page. cfg['transcluded-from-blurb'] = 'یہِ ہؠرِم [[Wikipedia:فرما دَستاویز|دَستاویز]] چھُ [[Help:Transclusion|شٲمِل]] $1 پؠٹھٕ .' --[[ -- cfg['create-module-doc-blurb'] -- Notice displayed in the module namespace when the documentation subpage does not exist. -- $1 is a link to create the documentation page with the preload cfg['module-preload'] and the -- display cfg['create-link-display']. --]] cfg['create-module-doc-blurb'] = 'You might want to $1 a documentation page for this [[Wikipedia:Lua|Scribunto module]].' ---------------------------------------------------------------------------------------------------- -- Experiment blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['experiment-blurb-template'] -- cfg['experiment-blurb-module'] -- The experiment blurb is the text inviting editors to experiment in sandbox and test cases pages. -- It is only shown in the template and module namespaces. With the default English settings, it -- might look like this: -- -- Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. -- -- In this example, "sandbox", "edit", "diff", "testcases", and "edit" would all be links. -- -- There are two versions, cfg['experiment-blurb-template'] and cfg['experiment-blurb-module'], depending -- on what namespace we are in. -- -- Parameters: -- -- $1 is a link to the sandbox page. If the sandbox exists, it is in the following format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-edit-link-display'] | cfg['compare-link-display']) -- -- If the sandbox doesn't exist, it is in the format: -- -- cfg['sandbox-link-display'] (cfg['sandbox-create-link-display'] | cfg['mirror-link-display']) -- -- The link for cfg['sandbox-create-link-display'] link preloads the page with cfg['template-sandbox-preload'] -- or cfg['module-sandbox-preload'], depending on the current namespace. The link for cfg['mirror-link-display'] -- loads a default edit summary of cfg['mirror-edit-summary']. -- -- $2 is a link to the test cases page. If the test cases page exists, it is in the following format: -- -- cfg['testcases-link-display'] (cfg['testcases-edit-link-display'] | cfg['testcases-run-link-display']) -- -- If the test cases page doesn't exist, it is in the format: -- -- cfg['testcases-link-display'] (cfg['testcases-create-link-display']) -- -- If the test cases page doesn't exist, the link for cfg['testcases-create-link-display'] preloads the -- page with cfg['template-testcases-preload'] or cfg['module-testcases-preload'], depending on the current -- namespace. --]] cfg['experiment-blurb-template'] = "اؠڈِٹر ہیٚکن ٹؠسٹ ییمہ فرما کِس $1 یا $2 صَفَس پؠٹھ کٔرِتھ." cfg['experiment-blurb-module'] = "Editors can experiment in this module's $1 and $2 pages." ---------------------------------------------------------------------------------------------------- -- Sandbox link configuration ---------------------------------------------------------------------------------------------------- -- cfg['sandbox-subpage'] -- The name of the template subpage typically used for sandboxes. cfg['sandbox-subpage'] = 'sandbox' -- cfg['template-sandbox-preload'] -- Preload file for template sandbox pages. cfg['template-sandbox-preload'] = 'Template:Documentation/preload-sandbox' -- cfg['module-sandbox-preload'] -- Preload file for Lua module sandbox pages. cfg['module-sandbox-preload'] = 'Template:Documentation/preload-module-sandbox' -- cfg['sandbox-link-display'] -- The text to display for "sandbox" links. cfg['sandbox-link-display'] = 'sandbox' -- cfg['sandbox-edit-link-display'] -- The text to display for sandbox "edit" links. cfg['sandbox-edit-link-display'] = 'اؠڈِٹ' -- cfg['sandbox-create-link-display'] -- The text to display for sandbox "create" links. cfg['sandbox-create-link-display'] = 'بَنٲوِو' -- cfg['compare-link-display'] -- The text to display for "compare" links. cfg['compare-link-display'] = 'diff' -- cfg['mirror-edit-summary'] -- The default edit summary to use when a user clicks the "mirror" link. $1 is a wikilink to the -- template page. cfg['mirror-edit-summary'] = 'Create sandbox version of $1' -- cfg['mirror-link-display'] -- The text to display for "mirror" links. cfg['mirror-link-display'] = 'نَقٕل کٔرِو' -- cfg['mirror-link-preload'] -- The page to preload when a user clicks the "mirror" link. cfg['mirror-link-preload'] = 'Template:Documentation/mirror' ---------------------------------------------------------------------------------------------------- -- Test cases link configuration ---------------------------------------------------------------------------------------------------- -- cfg['testcases-subpage'] -- The name of the template subpage typically used for test cases. cfg['testcases-subpage'] = 'testcases' -- cfg['template-testcases-preload'] -- Preload file for template test cases pages. cfg['template-testcases-preload'] = 'Template:Documentation/preload-testcases' -- cfg['module-testcases-preload'] -- Preload file for Lua module test cases pages. cfg['module-testcases-preload'] = 'Template:Documentation/preload-module-testcases' -- cfg['testcases-link-display'] -- The text to display for "testcases" links. cfg['testcases-link-display'] = 'testcases' -- cfg['testcases-edit-link-display'] -- The text to display for test cases "edit" links. cfg['testcases-edit-link-display'] = 'اؠڈِٹ' -- cfg['testcases-run-link-display'] -- The text to display for test cases "run" links. cfg['testcases-run-link-display'] = 'run' -- cfg['testcases-create-link-display'] -- The text to display for test cases "create" links. cfg['testcases-create-link-display'] = 'بَنٲوِو' ---------------------------------------------------------------------------------------------------- -- Add categories blurb configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['add-categories-blurb'] -- Text to direct users to add categories to the /doc subpage. Not used if the "content" or -- "docname fed" arguments are set, as then it is not clear where to add the categories. $1 is a -- link to the /doc subpage with a display value of cfg['doc-link-display']. --]] cfg['add-categories-blurb'] = 'زٲژ چھِ $1 بَچہٕ صَفس پؠٹھ رَلاونؠ.' -- cfg['doc-link-display'] -- The text to display when linking to the /doc subpage. cfg['doc-link-display'] = '/دَستاویز' ---------------------------------------------------------------------------------------------------- -- Subpages link configuration ---------------------------------------------------------------------------------------------------- --[[ -- cfg['subpages-blurb'] -- The "Subpages of this template" blurb. $1 is a link to the main template's subpages with a -- display value of cfg['subpages-link-display']. In the English version this blurb is simply -- the link followed by a period, and the link display provides the actual text. --]] cfg['subpages-blurb'] = '$1.' --[[ -- cfg['subpages-link-display'] -- The text to display for the "subpages of this page" link. $1 is cfg['template-pagetype'], -- cfg['module-pagetype'] or cfg['default-pagetype'], depending on whether the current page is in -- the template namespace, the module namespace, or another namespace. --]] cfg['subpages-link-display'] = 'بَچہٕ صَفہٕ $1' -- cfg['template-pagetype'] -- The pagetype to display for template pages. cfg['template-pagetype'] = 'template' -- cfg['module-pagetype'] -- The pagetype to display for Lua module pages. cfg['module-pagetype'] = 'module' -- cfg['default-pagetype'] -- The pagetype to display for pages other than templates or Lua modules. cfg['default-pagetype'] = 'page' ---------------------------------------------------------------------------------------------------- -- Doc link configuration ---------------------------------------------------------------------------------------------------- -- cfg['doc-subpage'] -- The name of the subpage typically used for documentation pages. cfg['doc-subpage'] = 'دَستاویز' -- cfg['docpage-preload'] -- Preload file for template documentation pages in all namespaces. cfg['docpage-preload'] = 'Template:Documentation/preload' -- cfg['module-preload'] -- Preload file for Lua module documentation pages. cfg['module-preload'] = 'Template:Documentation/preload-module-doc' ---------------------------------------------------------------------------------------------------- -- HTML and CSS configuration ---------------------------------------------------------------------------------------------------- -- cfg['templatestyles'] -- The name of the TemplateStyles page where CSS is kept. -- Sandbox CSS will be at Module:Documentation/sandbox/styles.css when needed. cfg['templatestyles'] = 'Module:Documentation/styles.css' -- cfg['container'] -- Class which can be used to set flex or grid CSS on the -- two child divs documentation and documentation-metadata cfg['container'] = 'documentation-container' -- cfg['main-div-classes'] -- Classes added to the main HTML "div" tag. cfg['main-div-classes'] = 'documentation' -- cfg['main-div-heading-class'] -- Class for the main heading for templates and modules and assoc. talk spaces cfg['main-div-heading-class'] = 'documentation-heading' -- cfg['start-box-class'] -- Class for the start box cfg['start-box-class'] = 'documentation-startbox' -- cfg['start-box-link-classes'] -- Classes used for the [view][edit][history] or [create] links in the start box. -- mw-editsection-like is per [[Wikipedia:Village pump (technical)/Archive 117]] cfg['start-box-link-classes'] = 'mw-editsection-like plainlinks' -- cfg['end-box-class'] -- Class for the end box. cfg['end-box-class'] = 'documentation-metadata' -- cfg['end-box-plainlinks'] -- Plainlinks cfg['end-box-plainlinks'] = 'plainlinks' -- cfg['toolbar-class'] -- Class added for toolbar links. cfg['toolbar-class'] = 'documentation-toolbar' -- cfg['clear'] -- Just used to clear things. cfg['clear'] = 'documentation-clear' ---------------------------------------------------------------------------------------------------- -- Tracking category configuration ---------------------------------------------------------------------------------------------------- -- cfg['display-strange-usage-category'] -- Set to true to enable output of cfg['strange-usage-category'] if the module is used on a /doc subpage -- or a /testcases subpage. This should be a boolean value (either true or false). cfg['display-strange-usage-category'] = true -- cfg['strange-usage-category'] -- Category to output if cfg['display-strange-usage-category'] is set to true and the module is used on a -- /doc subpage or a /testcases subpage. cfg['strange-usage-category'] = 'Wikipedia pages with strange ((documentation)) usage' --[[ ---------------------------------------------------------------------------------------------------- -- End configuration -- -- Don't edit anything below this line. ---------------------------------------------------------------------------------------------------- --]] return cfg toskbtkn3jrns7cjhak2yrwwo5fzutw Module:High-use 828 6661 153713 153345 2026-10-09T18:20:07Z 511KeV 8268 153713 Scribunto text/plain local p = {} -- _fetch looks at the "demo" argument. local _fetch = require('Module:Transclusion_count').fetch local yesno = require('Module:Yesno') function p.num(frame, count) if count == nil then if yesno(frame.args['fetch']) == false then if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end else count = _fetch(frame) end end -- Build output string local return_value = "" if count == nil then if frame.args[1] == "risk" then return "a very large number of" else return "many" end else -- Use 2 significant figures for smaller numbers and 3 for larger ones local sigfig = 2 if count >= 10000 then sigfig = 3 end -- Prepare to round to appropriate number of sigfigs local f = math.floor(math.log10(count)) - sigfig + 1 -- Round and insert "approximately" or "+" when appropriate if (frame.args[2] == "yes") or (mw.ustring.sub(frame.args[1],-1) == "+") then -- Round down return_value = string.format("%s+", mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) ) * (10^(f))) ) else -- Round to nearest return_value = string.format("لگہٕ بگہٕ&#x20;%s", mw.getContentLanguage():formatNum(math.floor( (count / 10^(f)) + 0.5) * (10^(f))) ) end -- Insert percentage of pages if that is likely to be >= 1% and when |no-percent= not set to yes if count and count > 2500 and not yesno (frame:getParent().args['no-percent']) then local percent = math.floor( ( (count/frame:callParserFunction('NUMBEROFPAGES', 'R') ) * 100) + 0.5) if percent >= 1 then return_value = string.format("%s&#x20;صَفن یا تمام صفن ہند %s%% پؠٹھ", return_value, percent) end end end return return_value end -- Actions if there is a large (greater than or equal to 10000) transclusion count function p.risk(frame) if frame.args[1] == "risk" then return "risk" else local count = _fetch(frame) if count and count >= 10000 then return "risk" end end return "" end function p.text(frame, count) -- Only show the information about how this template gets updated if someone -- is actually editing the page and maybe trying to update the count. local bot_text = (frame:preprocess("{{REVISIONID}}") == "") and "\n\n----\n'''Preview message''': Transclusion count updated automatically ([[Template:High-use/doc#Technical details|see documentation]])." or '' if count == nil then if yesno(frame.args['fetch']) == false then if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end else count = _fetch(frame) end end local title = mw.title.getCurrentTitle() if title.subpageText == "doc" or title.subpageText == "sandbox" then title = title.basePageTitle end local systemMessages = frame.args['system'] if frame.args['system'] == '' then systemMessages = nil end -- This retrieves the project URL automatically to simplify localiation. local templateCount = ('بییہ [https://linkcount.toolforge.org/index.php?project=%s&page=%s %s]'):format( mw.title.getCurrentTitle():fullUrl():gsub('//(.-)/.*', '%1'), mw.uri.encode(title.fullText), p.num(frame, count)) local used_on_text = "'''یہِ " .. (mw.title.getCurrentTitle().namespace == 828 and "Lua module" or "فرما") .. ' چھُ اِستِمال '; if systemMessages then used_on_text = used_on_text .. systemMessages .. ((count and count > 2000) and ("''', تہِ " .. templateCount) or ("'''")) else used_on_text = used_on_text .. templateCount .. "'''" end local sandbox_text = ("%s کِس [[%s/سینڈ بکس|/سیند بکس]] یا [[%s/ٹؠسٹ|/ٹؠسٹ]] بچہٕ صفسس، یا پننِس [[%s]]۔ "):format( (mw.title.getCurrentTitle().namespace == 828 and "ماڈیول" or "فرما"), title.fullText, title.fullText, mw.title.getCurrentTitle().namespace == 828 and "Module:Sandbox|module sandbox" or "Wikipedia:User pages#SUB|رُکن بَچہٕ صفس" ) local infoArg = frame.args["info"] ~= "" and frame.args["info"] if (systemMessages or frame.args[1] == "risk" or (count and count >= 10000) ) then local info = systemMessages and '.<br/>یہِ بَدلاونہٕ سٍتۍ ہیکہِ وِکیٖپیٖڈیاہَس مَنٛز بَدلاو گَژھِتھ۔' or '.' if infoArg then info = info .. "<br />" .. infoArg end sandbox_text = info .. '<br /> بٔڑؠ مسلہٕ نِش بچنہٕ خٲطرٕ' .. (count and count >= 10000 and ' تہٕ سرور لوڈ' or '') .. ', کانٛہہ تہِ تبدیلی گژھِ آزماونہٕ یِنۍ ' .. sandbox_text .. 'تُہی ہیکِو یِم تبدیلیہٕ یِم تُہؠ ٹیسٹ کران چھِو یِم یَتھ پیجَس منٛز اَکی ساتہٕ شٲمِل کٔرِتھ۔ ' else sandbox_text = (infoArg and ('.<br />' .. infoArg .. ' C') or ' and c') .. 'تبدیلی یین نظرِ. تبدیلی کٔرِو ٹؠسٹ' .. sandbox_text end local discussion_text = systemMessages and 'مہربٲنی کٔرِتھ کٔرِو تبدیلین مُتلِق کتھ باتھ ' or 'تبدیلین پیٹھ کتھ کرنہٕ مُتعلِق سونچِو ' if frame.args["2"] and frame.args["2"] ~= "" and frame.args["2"] ~= "yes" then discussion_text = string.format("%sat [[%s]]", discussion_text, frame.args["2"]) else discussion_text = string.format("%s [[%s|بَحث صَفس]] پؠٹھ", discussion_text, title.talkPageTitle.fullText ) end return used_on_text .. sandbox_text .. discussion_text .. " لاگو کَرنہِ برونہہ." .. bot_text end function p.main(frame) local count = nil if yesno(frame.args['fetch']) == false then if (frame.args[1] or '') ~= '' then count = tonumber(frame.args[1]) end else count = _fetch(frame) end local image = "[[File:Ambox warning yellow.svg|40px|alt=Warning|link=]]" local type_param = "style" local epilogue = '' if frame.args['system'] and frame.args['system'] ~= '' then image = "[[File:Ambox important.svg|40px|alt=Warning|link=]]" type_param = "content" local nocat = frame:getParent().args['nocat'] or frame.args['nocat'] local categorise = (nocat == '' or not yesno(nocat)) if categorise and not mw.title.getCurrentTitle().isRedirect then epilogue = frame:preprocess('{{Sandbox other||{{#switch:{{#invoke:Effective protection level|{{#switch:{{NAMESPACE}}|File=upload|#default=edit}}|{{FULLPAGENAME}}}}|sysop|templateeditor|interfaceadmin=|#default=[[Category:Pages used in system messages needing protection]]}}}}') end elseif (frame.args[1] == "risk" or (count and count >= 10000)) then image = "[[File:Ambox warning orange.svg|40px|alt=Warning|link=]]" type_param = "content" end if frame.args["form"] == "editnotice" then return frame:expandTemplate{ title = 'editnotice', args = { ["image"] = image, ["text"] = p.text(frame, count), ["expiry"] = (frame.args["expiry"] or "") } } .. epilogue else return require('Module:Message box').main('ombox', { type = type_param, image = image, text = p.text(frame, count), expiry = (frame.args["expiry"] or "") }) .. epilogue end end return p icqk49hjq2o6e26ojg0vuiy1netu0pa فرما:)) 10 7248 153717 37740 2022-02-23T02:26:26Z en>Xaosflux 0 Changed protection settings for "[[Template:))]]": 100K+uses ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite)) 37739 wikitext text/x-wiki }}<noinclude> {{documentation}} </noinclude> fmm8htexq13hwrjrvzcsiy59gv65l36 153718 153717 2026-10-09T18:44:33Z 511KeV 8268 1 revision imported from [[:en:Template:))]]: Needed locally 37739 wikitext text/x-wiki }}<noinclude> {{documentation}} </noinclude> fmm8htexq13hwrjrvzcsiy59gv65l36 Module:Transclusion count/data/A 828 7403 153742 153683 2026-10-10T03:18:14Z Uhaas bot 8335 [[وپ:باٹ |باٹ]]: چھُ صَفہٕ اؠڈِٹ کَران۔ 153742 Scribunto text/plain return { ["A_note"] = 110, ["Abbr"] = 120, ["Accepted"] = 100, ["Added"] = 100, ["Administrator_note"] = 100, ["AfC_age_category"] = 440, ["AfC_date_category"] = 440, ["AfC_status/age"] = 440, ["AfC_status/backlog"] = 440, ["AfC_submission"] = 440, ["AfC_submission/helptools"] = 440, ["AfC_submission/pending"] = 440, ["AfC_submission/tools"] = 440, ["Age_in_years"] = 200, ["Agree"] = 100, ["Align"] = 250, ["Aligned_table"] = 120, ["Allow_wrap"] = 130, ["Already_declined"] = 100, ["Already_done"] = 100, ["Ambox"] = 2300, ["Anglicise_rank"] = 120, ["Approved"] = 110, ["Archive_now"] = 100, ["Audio"] = 140, ["Automated_tools"] = 440, ["Autp"] = 100, ["Await"] = 110, ["Awaiting"] = 100, ["Awaitingadmin"] = 100, ["Aye"] = 100, ["Module:AfC_submission_catcheck"] = 440, ["Module:Age"] = 2100, ["Module:Aligned_table"] = 130, ["Module:Arguments"] = 12000, ["Module:Autotaxobox"] = 130, } 8g8pxb1sdrgpfthls7digeh2e2m78y1 وِکیٖپیٖڈیا:رُکُن فِہرِست اؠڈِٹ تَعداد مُطٲبِق 4 14505 153712 153675 2026-10-09T18:00:58Z Nadeemulhaqmir-bot 9480 Updated List of Wikipedians 153712 wikitext text/x-wiki == List of Wikipedians by number of edits == <div style="direction:ltr"> {| class="wikitable" |- style="white-space:nowrap;" ! No. ! User ! Edit count |- | 1 | [[User: آیات محراج | آیات محراج]] | [[Special:Contributions/آیات محراج|38233]] |- | 2 | <small><sub><span style="color:grey;"> </span></sub></small>[[User:511KeV|<span style="font-family:sans-serif; color:#FF1100; text-shadow:.2em .2em .4em #AfAfB1;">'''511KeV'''</span>]] [[User_talk:511KeV|<sup> '' (کتھ باتھ)''</sup>]] | [[Special:Contributions/511KeV|21637]] |- | 3 | [[User:Nadeemulhaqmir-bot|<span style="font-weight: 700; font-family: cursive;color: #41bf14;text-shadow: -1px 1px 0px #030318;">Mir-Bot</span>🍁]][[User_talk:Nadeemulhaqmir-bot|<sup>Talk</sup>]] | [[Special:Contributions/Nadeemulhaqmir-bot|14873]] |- | 4 | [[User: Uhaas bot | Uhaas bot]] | [[Special:Contributions/Uhaas bot|11946]] |- | 5 | [[User: SakuraBot | SakuraBot]] | [[Special:Contributions/SakuraBot|3636]] |- | 6 | [[User: SieBot | SieBot]] | [[Special:Contributions/SieBot|2432]] |- | 7 | [[User: Xqbot | Xqbot]] | [[Special:Contributions/Xqbot|2374]] |- | 8 | [[User: Humzah Rouf Phumboo | Humzah Rouf Phumboo]] | [[Special:Contributions/Humzah Rouf Phumboo|2268]] |- | 9 | [[User: Koshur | Koshur]] | [[Special:Contributions/Koshur|2227]] |- | 10 | —[[User:InternetArchiveBot|'''<span style="color:darkgrey;font-family:Courier New">InternetArchiveBot</span>''']] <span style="color:green;font-family:Rockwell">([[:en:User talk:InternetArchiveBot|Report bug]])</span> | [[Special:Contributions/InternetArchiveBot|1917]] |- |} </div> s1bh937urr5bl61d2jtn4xhx059e1ur اَملوکھ 0 15430 153744 73733 2026-10-10T03:31:52Z Humzah Rouf Phu 12982 /* */ 153744 wikitext text/x-wiki {{حَوالہٕ وَرٲے}} {{مولوٗماتھ}} '''املوکھ''' ،'''تینٛدٕ'''، '''اَملوگ''' یا '''اَمبلوگ''' چھُ اَکھ قِسمُک مؠوٕ یا پرَٛسَو۔ {{نامُکَمَل مَضموٗن}} [[زٲژ:پرَٛسَو]] kc3urn3iydijd3mc521rf8dmip0k2xu 153745 153744 2026-10-10T03:32:15Z Humzah Rouf Phu 12982 [[تینٛدٕ]] صَفہٕ آو پَکناونہٕ [[اَملوکھ]] جاے، پَکناوَن وول صٲرف Humzah Rouf Phu 153744 wikitext text/x-wiki {{حَوالہٕ وَرٲے}} {{مولوٗماتھ}} '''املوکھ''' ،'''تینٛدٕ'''، '''اَملوگ''' یا '''اَمبلوگ''' چھُ اَکھ قِسمُک مؠوٕ یا پرَٛسَو۔ {{نامُکَمَل مَضموٗن}} [[زٲژ:پرَٛسَو]] kc3urn3iydijd3mc521rf8dmip0k2xu 153747 153745 2026-10-10T03:32:31Z Humzah Rouf Phu 12982 /* */ 153747 wikitext text/x-wiki {{حَوالہٕ وَرٲے}} {{مولوٗماتھ}} '''اَملوکھ''' ،'''تینٛدٕ'''، '''اَملوگ''' یا '''اَمبلوگ''' چھُ اَکھ قِسمُک مؠوٕ یا پرَٛسَو۔ {{نامُکَمَل مَضموٗن}} [[زٲژ:پرَٛسَو]] 5qxl9jbb0mbn2zbteeiw66msup85np8 اَملوگ 0 15432 153762 73586 2026-10-10T09:50:13Z EmausBot 1793 Fixing double redirect from [[تینٛدٕ]] to [[اَملوکھ]] 153762 wikitext text/x-wiki #REDIRECT [[اَملوکھ]] c24nd4vezuc0tkyqcjng7wmnwal3axt فرما:مولوٗماتھ/دَستاویز 10 15488 153737 74411 2026-10-09T19:35:02Z 511KeV 8268 /* */ 153737 wikitext text/x-wiki {{High use}} یہِ چھُ اَکھ فرما یۄس وِکی ڈیٹا پؠٹھ مولوٗماتھ چھِ اَنان. 1hrc6590416lwsgl6tc0z59ydrhnb6b رُکُن:Uhaas bot/last7 2 18970 153707 153705 2026-10-09T14:30:40Z Uhaas bot 8335 Updating recent articles 153707 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 09 October 2026 پؠٹھ۔</small> qzjy6psv7wpf5stnkc8v0etu8demhwm 153708 153707 2026-10-09T16:30:35Z Uhaas bot 8335 Updating recent articles 153708 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 09 October 2026 پؠٹھ۔</small> o2garz9hdp6u9njgzxrci309ud9cbcv 153709 153708 2026-10-09T17:30:38Z Uhaas bot 8335 Updating recent articles 153709 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 09 October 2026 پؠٹھ۔</small> qzjy6psv7wpf5stnkc8v0etu8demhwm 153738 153709 2026-10-09T20:30:40Z Uhaas bot 8335 Updating recent articles 153738 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 09 October 2026 پؠٹھ۔</small> o2garz9hdp6u9njgzxrci309ud9cbcv 153739 153738 2026-10-09T23:30:38Z Uhaas bot 8335 Updating recent articles 153739 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 09 October 2026 پؠٹھ۔</small> qzjy6psv7wpf5stnkc8v0etu8demhwm 153740 153739 2026-10-10T00:30:38Z Uhaas bot 8335 Updating recent articles 153740 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 10 October 2026 پؠٹھ۔</small> dls7lf44hoy29sycq869466v4aixhnd 153741 153740 2026-10-10T01:30:37Z Uhaas bot 8335 Updating recent articles 153741 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 10 October 2026 پؠٹھ۔</small> ktibz4s8afkretajx004kg4sy5362z9 153743 153741 2026-10-10T03:30:35Z Uhaas bot 8335 Updating recent articles 153743 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 10 October 2026 پؠٹھ۔</small> dls7lf44hoy29sycq869466v4aixhnd 153748 153743 2026-10-10T04:30:36Z Uhaas bot 8335 Updating recent articles 153748 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 10 October 2026 پؠٹھ۔</small> ktibz4s8afkretajx004kg4sy5362z9 153759 153748 2026-10-10T07:30:42Z Uhaas bot 8335 Updating recent articles 153759 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 10 October 2026 پؠٹھ۔</small> dls7lf44hoy29sycq869466v4aixhnd 153764 153759 2026-10-10T10:30:49Z Uhaas bot 8335 Updating recent articles 153764 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 10 October 2026 پؠٹھ۔</small> ktibz4s8afkretajx004kg4sy5362z9 153765 153764 2026-10-10T11:30:34Z Uhaas bot 8335 Updating recent articles 153765 wikitext text/x-wiki {| |- | style="text-align:center; font-size:130%; color:white; background:rgb(255, 0, 0); padding:0.2em; vertical-align:middle;" | 26&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[کرِٛہِنؠ موتھ]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(225, 29, 0); padding:0.2em; vertical-align:middle;" | 23&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[مۄغَل سَلطَنَت]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(166, 88, 0); padding:0.2em; vertical-align:middle;" | 17&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[لام]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ریٚڈمی نوٹ 9]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(156, 98, 0); padding:0.2em; vertical-align:middle;" | 16&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[شِوکُمار شرما]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(147, 107, 0); padding:0.2em; vertical-align:middle;" | 15&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[نانا پاٹیکر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(137, 117, 0); padding:0.2em; vertical-align:middle;" | 14&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[ایڈولٕف ہِٹلر]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(107, 147, 0); padding:0.2em; vertical-align:middle;" | 11&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[سٔیِد میٖر قاسِم]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(98, 156, 0); padding:0.2em; vertical-align:middle;" | 10&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[قازق زَبان]] |- | style="text-align:center; font-size:130%; color:white; background:rgb(88, 166, 0); padding:0.2em; vertical-align:middle;" | 9&nbsp;<span style="font-size:60%">اؠڈِٹ</span> | style="padding: 0.4em;" | [[اوتھیلو]] |} <small>ٲخری اَپڈیٹ [[User:Uhaas_bot|Uhaas_bot]] دٔسؠ 10 October 2026 پؠٹھ۔</small> dls7lf44hoy29sycq869466v4aixhnd رُکُن:Nadeemulhaqmir-bot/log/2026/10 2 32896 153711 153674 2026-10-09T18:00:53Z Nadeemulhaqmir-bot 9480 باٹ چھُ اَز دۄہُک لاگ مَحفوٗظ کَران. 153711 wikitext text/x-wiki ==1-10-2026== ==== [[2026 نؠپالس مَنٛز سٔہلاب]] - ([[Special:Diff/152599|فَرَق]]) ==== # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> ==== [[فٕلَے دُبَے پرواز 1073]] - ([[Special:Diff/152600|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پٮ۪ٹھٕ </nowiki><b> -> </b><nowiki>پؠٹھٕ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> دسمبر </nowiki><b> -> </b><nowiki>دَسَمبَر</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> شُروٗع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> علاج </nowiki><b> -> </b><nowiki>یَلاج</nowiki> # <nowiki> گۄڈٕنیُک </nowiki><b> -> </b><nowiki>گۄڈنُیٛک</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> مدد </nowiki><b> -> </b><nowiki>مَدَتھ</nowiki> # <nowiki> ؤرۍ یہِ </nowiki><b> -> </b><nowiki>ؤرؠ‌یہِ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> لِہ </nowiki><b> -> </b><nowiki>لہِ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[دُبَے بین الاقوٲمی ہوٲیی اڈٕ]] - ([[Special:Diff/152601|فَرَق]]) ==== # <nowiki> دُنیاہُک </nowiki><b> -> </b><nowiki>دُنؠ‌یاہُک</nowiki> ==== [[ایلیٖن وۄارنوس]] - ([[Special:Diff/152602|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> فروری </nowiki><b> -> </b><nowiki>فَرؤری</nowiki> # <nowiki> قتل </nowiki><b> -> </b><nowiki>قَتٕل</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> وقت </nowiki><b> -> </b><nowiki>وَقٕت</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[شاے شاے]] - ([[Special:Diff/152603|فَرَق]]) ==== # <nowiki> آبادی </nowiki><b> -> </b><nowiki>آبٲدی</nowiki> # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> شہر </nowiki><b> -> </b><nowiki>شَہَر</nowiki> # <nowiki> ضلعہٕ </nowiki><b> -> </b><nowiki>ضِلہٕ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ۓ </nowiki><b> -> </b><nowiki>ۓ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==2-10-2026== ==== [[بَنٛگُلا]] - ([[Special:Diff/152700|فَرَق]]) ==== # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> جنوبی </nowiki><b> -> </b><nowiki>جۆنوٗبی</nowiki> # <nowiki> چِھ </nowiki><b> -> </b><nowiki>چھِ</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> ضلع </nowiki><b> -> </b><nowiki>ضِلہٕ</nowiki> # <nowiki> منز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> میٹر </nowiki><b> -> </b><nowiki>میٖٹَر</nowiki> # <nowiki> ہُند </nowiki><b> -> </b><nowiki>ہُنٛد</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ئے </nowiki><b> -> </b><nowiki>ئے</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[مارکا، مَلاوی]] - ([[Special:Diff/152701|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> جنوبی </nowiki><b> -> </b><nowiki>جۆنوٗبی</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[نسانجے]] - ([[Special:Diff/152702|فَرَق]]) ==== # <nowiki> شہر </nowiki><b> -> </b><nowiki>شَہَر</nowiki> # <nowiki> ُ. </nowiki><b> -> </b><nowiki>ُ۔</nowiki> ==== [[اَمِتابھ بَچَن]] - ([[Special:Diff/152703|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> فلم </nowiki><b> -> </b><nowiki>فِلِم</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ہندوستٲنی </nowiki><b> -> </b><nowiki>ہِندوستٲنؠ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[دیوداس (2002 ہِندی فِلِم)]] - ([[Special:Diff/152704|فَرَق]]) ==== # <nowiki> فلم </nowiki><b> -> </b><nowiki>فِلِم</nowiki> # <nowiki> معاون </nowiki><b> -> </b><nowiki>سہارٕ</nowiki> ==== [[ایشوریا راے]] - ([[Special:Diff/152705|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھٕ </nowiki><b> -> </b><nowiki>پؠٹھٕ</nowiki> # <nowiki> دنیاہٕک </nowiki><b> -> </b><nowiki>دُنؠ‌یاہٕک</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> نومبر </nowiki><b> -> </b><nowiki>نَوَمبَر</nowiki> # <nowiki> ہندوستٲنی </nowiki><b> -> </b><nowiki>ہِندوستٲنؠ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[یونیورسٹی آف مُمبَے]] - ([[Special:Diff/152706|فَرَق]]) ==== # <nowiki> دنیاہک </nowiki><b> -> </b><nowiki>دُنؠ‌یاہک</nowiki> # <nowiki> یونیورسٹی </nowiki><b> -> </b><nowiki>یوٗنِوَرسِٹی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[ڈی جی رُپاریل کالیج آف آرٹس، سایِنس اینڈ کامرس]] - ([[Special:Diff/152707|فَرَق]]) ==== # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[اَمریٖکی ساموا]] - ([[Special:Diff/152708|فَرَق]]) ==== # <nowiki> آبادی </nowiki><b> -> </b><nowiki>آبٲدی</nowiki> # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> استعمال </nowiki><b> -> </b><nowiki>اِستِمال</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> جنوبی </nowiki><b> -> </b><nowiki>جۆنوٗبی</nowiki> # <nowiki> چِھ </nowiki><b> -> </b><nowiki>چھِ</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> دارالحکومت </nowiki><b> -> </b><nowiki>رازدٲنؠ</nowiki> # <nowiki> ریاست </nowiki><b> -> </b><nowiki>رِیاسَتھ</nowiki> # <nowiki> ساروی </nowiki><b> -> </b><nowiki>سارِوٕے</nowiki> # <nowiki> شہر </nowiki><b> -> </b><nowiki>شَہَر</nowiki> # <nowiki> کھوتہٕ </nowiki><b> -> </b><nowiki>کھۄتہٕ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[مَنوٗ بھاکر]] - ([[Special:Diff/152709|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تعلیم </nowiki><b> -> </b><nowiki>تٲلیٖم</nowiki> # <nowiki> تعلیٖم </nowiki><b> -> </b><nowiki>تٲلیٖم</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> سۭتہِ </nowiki><b> -> </b><nowiki>سٟتہِ</nowiki> # <nowiki> شُروٗع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> مدد </nowiki><b> -> </b><nowiki>مَدَتھ</nowiki> # <nowiki> میٹر </nowiki><b> -> </b><nowiki>میٖٹَر</nowiki> # <nowiki> ؤ </nowiki><b> -> </b><nowiki>و</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==3-10-2026== ==== [[مۄغَل سَلطَنَت]] - ([[Special:Diff/152787|فَرَق]]) ==== # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> استعمال </nowiki><b> -> </b><nowiki>اِستِمال</nowiki> # <nowiki> اِستعمال </nowiki><b> -> </b><nowiki>اِستِمال</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> اندرونی </nowiki><b> -> </b><nowiki>اۆنٛدروٗنی</nowiki> # <nowiki> اسلٲمی </nowiki><b> -> </b><nowiki>اِسلٲمی</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پٮ۪ٹھٕ </nowiki><b> -> </b><nowiki>پؠٹھٕ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> جنوبی </nowiki><b> -> </b><nowiki>جۆنوٗبی</nowiki> # <nowiki> جنگس </nowiki><b> -> </b><nowiki>جَنٛگس</nowiki> # <nowiki> حکوٗمت </nowiki><b> -> </b><nowiki>حوٚکوٗمَتھ</nowiki> # <nowiki> دوہ </nowiki><b> -> </b><nowiki>دۄہ</nowiki> # <nowiki> دُنیاہٕک </nowiki><b> -> </b><nowiki>دُنؠ‌یاہٕک</nowiki> # <nowiki> ریاست </nowiki><b> -> </b><nowiki>رِیاسَتھ</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> سۭتہِ </nowiki><b> -> </b><nowiki>سٟتہِ</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> سٕنز </nowiki><b> -> </b><nowiki>سٟنٛز</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> قتل </nowiki><b> -> </b><nowiki>قَتٕل</nowiki> # <nowiki> کھوتہٕ </nowiki><b> -> </b><nowiki>کھۄتہٕ</nowiki> # <nowiki> منز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> مدد </nowiki><b> -> </b><nowiki>مَدَتھ</nowiki> # <nowiki> مجموعہ </nowiki><b> -> </b><nowiki>سۆمبرُن</nowiki> # <nowiki> نژاد </nowiki><b> -> </b><nowiki>نَسٕل</nowiki> # <nowiki> ؤ </nowiki><b> -> </b><nowiki>و</nowiki> # <nowiki> ہندوستٲنۍ </nowiki><b> -> </b><nowiki>ہِندوستٲنؠ</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ٘ </nowiki><b> -> </b><nowiki>ٚ</nowiki> # <nowiki> ئین </nowiki><b> -> </b><nowiki>ئین</nowiki> # <nowiki> ئیس </nowiki><b> -> </b><nowiki>ئیس</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[منگناڑ]] - ([[Special:Diff/152788|فَرَق]]) ==== # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> ضلعہٕ </nowiki><b> -> </b><nowiki>ضِلہٕ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ٘ </nowiki><b> -> </b><nowiki>ٚ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[شاے شاے]] - ([[Special:Diff/152789|فَرَق]]) ==== # <nowiki> {{Databox}} </nowiki><b> -> </b><nowiki>{{مولوٗماتھ}}</nowiki> ==4-10-2026== ==== [[جَگلَر ویٖن]] - ([[Special:Diff/152884|فَرَق]]) ==== # <nowiki> ن. </nowiki><b> -> </b><nowiki>ن۔</nowiki> ==== [[گیانیش کمار]] - ([[Special:Diff/152885|فَرَق]]) ==== # <nowiki> آئی </nowiki><b> -> </b><nowiki>اَے</nowiki> # <nowiki> آی </nowiki><b> -> </b><nowiki>اَے</nowiki> # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> استعمال </nowiki><b> -> </b><nowiki>اِستِمال</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> امہ </nowiki><b> -> </b><nowiki>اَمہِ</nowiki> # <nowiki> اگست </nowiki><b> -> </b><nowiki>اَگَست</nowiki> # <nowiki> بیاکھ </nowiki><b> -> </b><nowiki>بیٛاکھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تعلیم </nowiki><b> -> </b><nowiki>تٲلیٖم</nowiki> # <nowiki> تنقید </nowiki><b> -> </b><nowiki>تَنقیٖد</nowiki> # <nowiki> تعاون </nowiki><b> -> </b><nowiki>سہکٲری</nowiki> # <nowiki> تہ </nowiki><b> -> </b><nowiki>تہٕ</nowiki> # <nowiki> جنوری </nowiki><b> -> </b><nowiki>جَنؤری</nowiki> # <nowiki> خلاف </nowiki><b> -> </b><nowiki>خَلاف</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> شائع </nowiki><b> -> </b><nowiki>شایَع</nowiki> # <nowiki> فروری </nowiki><b> -> </b><nowiki>فَرؤری</nowiki> # <nowiki> قائم </nowiki><b> -> </b><nowiki>قٲیِم</nowiki> # <nowiki> منز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> نومبر </nowiki><b> -> </b><nowiki>نَوَمبَر</nowiki> # <nowiki> ہندوستٲنی </nowiki><b> -> </b><nowiki>ہِندوستٲنؠ</nowiki> # <nowiki> یہ </nowiki><b> -> </b><nowiki>یہِ</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> یونیورسٹی </nowiki><b> -> </b><nowiki>یوٗنِوَرسِٹی</nowiki> # <nowiki> پٔھ </nowiki><b> -> </b><nowiki>پھٔ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ٘ </nowiki><b> -> </b><nowiki>ٚ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئین </nowiki><b> -> </b><nowiki>ئین</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> {{Databox}} </nowiki><b> -> </b><nowiki>{{مولوٗماتھ}}</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[شِوکُمار شرما]] - ([[Special:Diff/152886|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تعاون </nowiki><b> -> </b><nowiki>سہکٲری</nowiki> # <nowiki> جنوری </nowiki><b> -> </b><nowiki>جَنؤری</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> شُروٗع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> موسیقی </nowiki><b> -> </b><nowiki>موٗسیٖقی</nowiki> # <nowiki> ہندوستٲنی </nowiki><b> -> </b><nowiki>ہِندوستٲنؠ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[ناے]] - ([[Special:Diff/152887|فَرَق]]) ==== # <nowiki> ن. </nowiki><b> -> </b><nowiki>ن۔</nowiki> ==== [[نِکولس ژے]] - ([[Special:Diff/152888|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> اگست </nowiki><b> -> </b><nowiki>اَگَست</nowiki> ==== [[آوویی مِیازاکی]] - ([[Special:Diff/152889|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> سٕتؠ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> ==== [[پارکنسن بؠمٲرؠ]] - ([[Special:Diff/152890|فَرَق]]) ==== # <nowiki> پٲنٹھ </nowiki><b> -> </b><nowiki>پٲٹھؠ</nowiki> # <nowiki> دوہ </nowiki><b> -> </b><nowiki>دۄہ</nowiki> ==== [[ہوسا زَبان]] - ([[Special:Diff/152891|فَرَق]]) ==== # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> ==5-10-2026== ==== [[ژار بومبا]] - ([[Special:Diff/153045|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> اگست </nowiki><b> -> </b><nowiki>اَگَست</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پٮ۪ٹھٕ </nowiki><b> -> </b><nowiki>پؠٹھٕ</nowiki> # <nowiki> دُنیاہَس </nowiki><b> -> </b><nowiki>دُنؠ‌یاہَس</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> فلم </nowiki><b> -> </b><nowiki>فِلِم</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[جواو نیٚوٕش]] - ([[Special:Diff/153046|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> دنیاہٕکؠ </nowiki><b> -> </b><nowiki>دُنؠ‌یاہٕکؠ</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[لیڈوکین]] - ([[Special:Diff/153047|فَرَق]]) ==== # <nowiki> پٲنٹھ </nowiki><b> -> </b><nowiki>پٲٹھؠ</nowiki> # <nowiki> تہ </nowiki><b> -> </b><nowiki>تہٕ</nowiki> # <nowiki> علاج </nowiki><b> -> </b><nowiki>یَلاج</nowiki> # <nowiki> کھوتہٕ </nowiki><b> -> </b><nowiki>کھۄتہٕ</nowiki> # <nowiki> ئے </nowiki><b> -> </b><nowiki>ئے</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[ایڈولٕف ہِٹلر]] - ([[Special:Diff/153048|فَرَق]]) ==== # <nowiki> آبادی </nowiki><b> -> </b><nowiki>آبٲدی</nowiki> # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> ابتدائی </nowiki><b> -> </b><nowiki>اِبتدٲیی</nowiki> # <nowiki> استعمال </nowiki><b> -> </b><nowiki>اِستِمال</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> امہ </nowiki><b> -> </b><nowiki>اَمہِ</nowiki> # <nowiki> اگست </nowiki><b> -> </b><nowiki>اَگَست</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پٲنٹھ </nowiki><b> -> </b><nowiki>پٲٹھؠ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> جنوری </nowiki><b> -> </b><nowiki>جَنؤری</nowiki> # <nowiki> جنگ </nowiki><b> -> </b><nowiki>جَنٛگ</nowiki> # <nowiki> دسمبر </nowiki><b> -> </b><nowiki>دَسَمبَر</nowiki> # <nowiki> دنیاہس </nowiki><b> -> </b><nowiki>دُنؠ‌یاہس</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> ساروی </nowiki><b> -> </b><nowiki>سارِوٕے</nowiki> # <nowiki> سٕندۍ </nowiki><b> -> </b><nowiki>سٟنٛدؠ</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> فروری </nowiki><b> -> </b><nowiki>فَرؤری</nowiki> # <nowiki> قتل </nowiki><b> -> </b><nowiki>قَتٕل</nowiki> # <nowiki> کٔرتھ </nowiki><b> -> </b><nowiki>کٔرِتھ</nowiki> # <nowiki> کرتھ </nowiki><b> -> </b><nowiki>کٔرِتھ</nowiki> # <nowiki> کھوتہٕ </nowiki><b> -> </b><nowiki>کھۄتہٕ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> میٹر </nowiki><b> -> </b><nowiki>میٖٹَر</nowiki> # <nowiki> نومبر </nowiki><b> -> </b><nowiki>نَوَمبَر</nowiki> # <nowiki> ؤ </nowiki><b> -> </b><nowiki>و</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئے </nowiki><b> -> </b><nowiki>ئے</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[زٲنہٕ پوٗر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153049|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ووگُر-کرٛیٖر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153050|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[وِجیپُر، جۆم تہٕ کٔشیٖر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153051|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[اوٗڑی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153052|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[اُدھم پوٗر مغربی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153053|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[اُدھم پوٗر مشرقی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153054|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ترٕٛہ گام ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153055|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ترٛال ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153056|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[تھانَمَنٛڈی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153057|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[سُرَنکوٹ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153058|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[سُچیتگڑھ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153059|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[سِریگۄفوور-ویٚجہِ وور ایٚسمبلی]] - ([[Special:Diff/153060|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[سوپُر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153061|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[سۄنہٕ وور ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153062|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[شرٛی ماتا ویشنوٗ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153063|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[شَنٛگس-اَنَتھ مشرقی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153064|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[سامبا ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153065|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[رِیٲسی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153066|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[رَنبیٖر سِنٛگھ پورا-جۆم جۆنوٗبی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153067|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[رام نَگَر، جۆم تہٕ کٔشیٖر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153068|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[رامگڑھ، جۆم تہٕ کٔشیٖر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153069|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[رامبَن ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153070|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[راجپوٗر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153071|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[راجوری ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153072|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[رَفیع آباد ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153073|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[پُلووم ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153074|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[پرٛوٗنٛژھ حَویلی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153075|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[پَٹَن ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153076|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[پہلگام ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153077|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[پاڈر-ناگسینا ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153078|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[نوشہرہ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153079|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[نگروٹا، جۆم تہٕ کٔشیٖر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153080|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[مینٛڈھر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153081|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[مَڑھ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153082|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[لولاب ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153083|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[لَنٛگیٹ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153084|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[لال چوک ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153085|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کۄپوور ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153086|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کۄلگوم ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153087|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کۄکَرناگ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153088|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کشٹٕوار ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153089|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[خان صٲب ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153090|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کٹھوعہ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153091|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کرناہ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153092|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کَنٛگَن ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153093|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[کالاکوٹ-سُنٛدَربنی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153094|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[جسروٹا ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153095|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[جۆم مغربی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153096|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[جۆم شُمٲلؠ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153097|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[جۆم مشرقی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153098|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[اِنٛدَروَل ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153099|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ہیٖرانَگَر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153100|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[حضرت بل ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153101|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ہَنٛدٕوور ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153102|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[گۄلابگڑھ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153103|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[گانٛدربل ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153104|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[عیٖدگاہ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153105|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ڈوڈہ مغربی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153106|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ڈوڈہ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153107|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[دُیٛوسر، جۆم تہٕ کٔشیٖر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153108|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[دمھل ہٲنٛز پوٗر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153109|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[چھَمٛب ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153110|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[چیٚنانی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153111|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[چھانہٕ پوٗر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153112|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[ژوڈُر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153113|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[مَرکَزی شالٹینٛگ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153114|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بُدھَل ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153115|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بَڈگام ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153116|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بِشناہ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153117|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بِلاوَر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153118|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بیٖرُو ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153119|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بَسوہلی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153120|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[وَرمُل ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153121|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بانِہال ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153122|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بانی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153123|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[بَہوٗ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153124|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[اَنَتھ ناگ مغربی ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153125|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[اَنَتھ ناگ ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153126|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[اَکھنوٗر ایٚسمبلی حلقہٕ]] - ([[Special:Diff/153127|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==6-10-2026== ==== [[1999]] - ([[Special:Diff/153272|فَرَق]]) ==== # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[1998]] - ([[Special:Diff/153273|فَرَق]]) ==== # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[1997]] - ([[Special:Diff/153274|فَرَق]]) ==== # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[1996]] - ([[Special:Diff/153275|فَرَق]]) ==== # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[1995]] - ([[Special:Diff/153276|فَرَق]]) ==== # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[1994]] - ([[Special:Diff/153277|فَرَق]]) ==== # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[1993]] - ([[Special:Diff/153278|فَرَق]]) ==== # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[سید محمد نقیٖب العطاس]] - ([[Special:Diff/153279|فَرَق]]) ==== # <nowiki> آئی </nowiki><b> -> </b><nowiki>اَے</nowiki> # <nowiki> پٮ۪ٹھٕ </nowiki><b> -> </b><nowiki>پؠٹھٕ</nowiki> # <nowiki> پٲنٹھ </nowiki><b> -> </b><nowiki>پٲٹھؠ</nowiki> # <nowiki> دنیاہَس </nowiki><b> -> </b><nowiki>دُنؠ‌یاہَس</nowiki> # <nowiki> سہُ </nowiki><b> -> </b><nowiki>سُہ</nowiki> # <nowiki> گۄڈنیُٛک </nowiki><b> -> </b><nowiki>گۄڈنُیٛک</nowiki> # <nowiki> یونیورسٹی </nowiki><b> -> </b><nowiki>یوٗنِوَرسِٹی</nowiki> # <nowiki> بُھ </nowiki><b> -> </b><nowiki>بھُ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[مِساکی دویی]] - ([[Special:Diff/153280|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[اوتھیلو]] - ([[Special:Diff/153281|فَرَق]]) ==== # <nowiki> ساروی </nowiki><b> -> </b><nowiki>سارِوٕے</nowiki> # <nowiki> فِلم </nowiki><b> -> </b><nowiki>فِلِم</nowiki> # <nowiki> قتل </nowiki><b> -> </b><nowiki>قَتٕل</nowiki> # <nowiki> نِہ </nowiki><b> -> </b><nowiki>نہِ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[کلسٹر یوٗنِوَرسِٹی جموں]] - ([[Special:Diff/153282|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> دوہ </nowiki><b> -> </b><nowiki>دۄہ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> یہ </nowiki><b> -> </b><nowiki>یہِ</nowiki> # <nowiki> یونیورسٹی </nowiki><b> -> </b><nowiki>یوٗنِوَرسِٹی</nowiki> ==== [[لام]] - ([[Special:Diff/153283|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> ==حوالہٕ== </nowiki><b> -> </b><nowiki>== حَوالہٕ ==</nowiki> # <nowiki> سہُ </nowiki><b> -> </b><nowiki>سُہ</nowiki> # <nowiki> کٔرتھ </nowiki><b> -> </b><nowiki>کٔرِتھ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ن. </nowiki><b> -> </b><nowiki>ن۔</nowiki> ==== [[2025]] - ([[Special:Diff/153284|فَرَق]]) ==== # <nowiki> ٕ. </nowiki><b> -> </b><nowiki>ٕ۔</nowiki> ==== [[تَنتھٕر]] - ([[Special:Diff/153286|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> ==حوالہٕ== </nowiki><b> -> </b><nowiki>== حَوالہٕ ==</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[خواجہ شمس الدیٖن]] - ([[Special:Diff/153287|فَرَق]]) ==== # <nowiki> امہ </nowiki><b> -> </b><nowiki>اَمہِ</nowiki> # <nowiki> دسمبر </nowiki><b> -> </b><nowiki>دَسَمبَر</nowiki> # <nowiki> فروری </nowiki><b> -> </b><nowiki>فَرؤری</nowiki> # <nowiki> منز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> ==== [[سٔیِد میٖر قاسِم]] - ([[Special:Diff/153288|فَرَق]]) ==== # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> حکوٗمت </nowiki><b> -> </b><nowiki>حوٚکوٗمَتھ</nowiki> # <nowiki> دسمبر </nowiki><b> -> </b><nowiki>دَسَمبَر</nowiki> # <nowiki> سٍتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> شُروٗع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> منز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ہٕنز </nowiki><b> -> </b><nowiki>ہٕنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ۭ </nowiki><b> -> </b><nowiki>ٟ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[گوکسل آرسوے]] - ([[Special:Diff/153289|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تعلیٖم </nowiki><b> -> </b><nowiki>تٲلیٖم</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> فلم </nowiki><b> -> </b><nowiki>فِلِم</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> مارچ </nowiki><b> -> </b><nowiki>مارٕچ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[گربہٕ زال]] - ([[Special:Diff/153290|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> گوڑنک </nowiki><b> -> </b><nowiki>گۄڈنُیٛک</nowiki> ==== [[سیویرس سٕنیپ]] - ([[Special:Diff/153291|فَرَق]]) ==== # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==7-10-2026== ==== [[کرِٛہِنؠ موتھ]] - ([[Special:Diff/153517|فَرَق]]) ==== # <nowiki> آبادی </nowiki><b> -> </b><nowiki>آبٲدی</nowiki> # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> پٲنٹھ </nowiki><b> -> </b><nowiki>پٲٹھؠ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> چِھ </nowiki><b> -> </b><nowiki>چھِ</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> دنیاہس </nowiki><b> -> </b><nowiki>دُنؠ‌یاہس</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> کھوتہٕ </nowiki><b> -> </b><nowiki>کھۄتہٕ</nowiki> # <nowiki> گوڑنک </nowiki><b> -> </b><nowiki>گۄڈنُیٛک</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ؤ </nowiki><b> -> </b><nowiki>و</nowiki> # <nowiki> یہ </nowiki><b> -> </b><nowiki>یہِ</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # [[وِکیٖپیٖڈیا:حَوالہٕ|حَوالہٕ]] وَرٲے مَضموٗن ٹیگ کَران ==== [[سیم چوٗیی]] - ([[Special:Diff/153518|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> ==== [[لکھنَو]] - ([[Special:Diff/153519|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> تعلیم </nowiki><b> -> </b><nowiki>تٲلیٖم</nowiki> # <nowiki> ساروی </nowiki><b> -> </b><nowiki>سارِوٕے</nowiki> # <nowiki> شاعری </nowiki><b> -> </b><nowiki>شٲیری</nowiki> # <nowiki> شہر </nowiki><b> -> </b><nowiki>شَہَر</nowiki> # <nowiki> موسیقی </nowiki><b> -> </b><nowiki>موٗسیٖقی</nowiki> # <nowiki> یہ </nowiki><b> -> </b><nowiki>یہِ</nowiki> # <nowiki> ر. </nowiki><b> -> </b><nowiki>ر۔</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ۭ </nowiki><b> -> </b><nowiki>ٟ</nowiki> ==== [[ریٚڈمی نوٹ 9]] - ([[Special:Diff/153520|فَرَق]]) ==== # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[نوٗری شاہِن]] - ([[Special:Diff/153521|فَرَق]]) ==== # <nowiki> جنوری </nowiki><b> -> </b><nowiki>جَنؤری</nowiki> # <nowiki> سٕتؠ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[اے ایچ 5]] - ([[Special:Diff/153522|فَرَق]]) ==== # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[قازق زَبان]] - ([[Special:Diff/153523|فَرَق]]) ==== # <nowiki> چِھ </nowiki><b> -> </b><nowiki>چھِ</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> پٔھ </nowiki><b> -> </b><nowiki>پھٔ</nowiki> ==== [[جارکینٛت مٔشیٖد]] - ([[Special:Diff/153524|فَرَق]]) ==== # <nowiki> استعمال </nowiki><b> -> </b><nowiki>اِستِمال</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> کرتھ </nowiki><b> -> </b><nowiki>کٔرِتھ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> یِہ </nowiki><b> -> </b><nowiki>یہِ</nowiki> # <nowiki> ز. </nowiki><b> -> </b><nowiki>ز۔</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[جوب وادی ریلوے]] - ([[Special:Diff/153525|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> میٹر </nowiki><b> -> </b><nowiki>میٖٹَر</nowiki> # <nowiki> میل </nowiki><b> -> </b><nowiki>میٖل</nowiki> # <nowiki> یہ </nowiki><b> -> </b><nowiki>یہِ</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[جولس چیریٹ]] - ([[Special:Diff/153526|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[مُحمد اِقبال شیدایی]] - ([[Special:Diff/153527|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ہندوستٲنی </nowiki><b> -> </b><nowiki>ہِندوستٲنؠ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[2000]] - ([[Special:Diff/153528|فَرَق]]) ==== # <nowiki> دنیاہَس </nowiki><b> -> </b><nowiki>دُنؠ‌یاہَس</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==8-10-2026== ==== [[بِگ بوس (ہِندی ٹی وی سیریٖز) سیزن 20]] - ([[Special:Diff/153664|فَرَق]]) ==== # <nowiki> ٹیلی ویژن </nowiki><b> -> </b><nowiki>ٹیلی وِجَن</nowiki> # <nowiki> ستمبر </nowiki><b> -> </b><nowiki>سَتَمبَر</nowiki> # <nowiki> ہنز </nowiki><b> -> </b><nowiki>ہِنٛز</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> ==== [[گاما پہلوان]] - ([[Special:Diff/153665|فَرَق]]) ==== # <nowiki> سہُ </nowiki><b> -> </b><nowiki>سُہ</nowiki> # <nowiki> محیط </nowiki><b> -> </b><nowiki>پھٔہلِتھ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[چُکؠ]] - ([[Special:Diff/153666|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> تہ </nowiki><b> -> </b><nowiki>تہٕ</nowiki> # <nowiki> جنوبی </nowiki><b> -> </b><nowiki>جۆنوٗبی</nowiki> # <nowiki> ==حوالہٕ== </nowiki><b> -> </b><nowiki>== حَوالہٕ ==</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۅ </nowiki><b> -> </b><nowiki>ۄ</nowiki> ==== [[ہِنٛدُستانُک تَقسیٖم]] - ([[Special:Diff/153667|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> اگست </nowiki><b> -> </b><nowiki>اَگَست</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> جنوری </nowiki><b> -> </b><nowiki>جَنؤری</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> شروع </nowiki><b> -> </b><nowiki>شۆروٗع</nowiki> # <nowiki> ضِلعہٕ </nowiki><b> -> </b><nowiki>ضِلہٕ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[نانا پاٹیکر]] - ([[Special:Diff/153668|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پٮ۪ٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> جنوری </nowiki><b> -> </b><nowiki>جَنؤری</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> فلم </nowiki><b> -> </b><nowiki>فِلِم</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> معاون </nowiki><b> -> </b><nowiki>سہارٕ</nowiki> # <nowiki> ہندوستٲنی </nowiki><b> -> </b><nowiki>ہِندوستٲنؠ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[الوٗ ارجُن]] - ([[Special:Diff/153669|فَرَق]]) ==== # <nowiki> ابتدائی </nowiki><b> -> </b><nowiki>اِبتدٲیی</nowiki> # <nowiki> تہ </nowiki><b> -> </b><nowiki>تہٕ</nowiki> # <nowiki> ضلعہٕ </nowiki><b> -> </b><nowiki>ضِلہٕ</nowiki> # <nowiki> فلم </nowiki><b> -> </b><nowiki>فِلِم</nowiki> # <nowiki> معاون </nowiki><b> -> </b><nowiki>سہارٕ</nowiki> # <nowiki> ہنز </nowiki><b> -> </b><nowiki>ہِنٛز</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==== [[اَنصار غزواتُ الہِنٛد]] - ([[Special:Diff/153670|فَرَق]]) ==== # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> اسلٲمی </nowiki><b> -> </b><nowiki>اِسلٲمی</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[کرِٛہِنؠ موتھ]] - ([[Special:Diff/153671|فَرَق]]) ==== # <nowiki> آبادی </nowiki><b> -> </b><nowiki>آبٲدی</nowiki> # <nowiki> اتھ </nowiki><b> -> </b><nowiki>اَتھ</nowiki> # <nowiki> استعمال </nowiki><b> -> </b><nowiki>اِستِمال</nowiki> # <nowiki> اکھ </nowiki><b> -> </b><nowiki>اَکھ</nowiki> # <nowiki> پیٹھ </nowiki><b> -> </b><nowiki>پؠٹھ</nowiki> # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> تہ </nowiki><b> -> </b><nowiki>تہٕ</nowiki> # <nowiki> جنوبی </nowiki><b> -> </b><nowiki>جۆنوٗبی</nowiki> # <nowiki> چِھ </nowiki><b> -> </b><nowiki>چھِ</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> دعویٰ </nowiki><b> -> </b><nowiki>دعوا</nowiki> # <nowiki> زیادٕ </nowiki><b> -> </b><nowiki>زیٛادٕ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> ساروی </nowiki><b> -> </b><nowiki>سارِوٕے</nowiki> # <nowiki> سُند </nowiki><b> -> </b><nowiki>سُنٛد</nowiki> # <nowiki> شائع </nowiki><b> -> </b><nowiki>شایَع</nowiki> # <nowiki> علاج </nowiki><b> -> </b><nowiki>یَلاج</nowiki> # <nowiki> کٔرتھ </nowiki><b> -> </b><nowiki>کٔرِتھ</nowiki> # <nowiki> کھوتہٕ </nowiki><b> -> </b><nowiki>کھۄتہٕ</nowiki> # <nowiki> گوڑنک </nowiki><b> -> </b><nowiki>گۄڈنُیٛک</nowiki> # <nowiki> منز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> مدد </nowiki><b> -> </b><nowiki>مَدَتھ</nowiki> # <nowiki> مسلمان </nowiki><b> -> </b><nowiki>مُسلمان</nowiki> # <nowiki> مجموعی </nowiki><b> -> </b><nowiki>سۆمبرُنی</nowiki> # <nowiki> ؤ </nowiki><b> -> </b><nowiki>و</nowiki> # <nowiki> ہُند </nowiki><b> -> </b><nowiki>ہُنٛد</nowiki> # <nowiki> یہ </nowiki><b> -> </b><nowiki>یہِ</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> چُھ </nowiki><b> -> </b><nowiki>چھُ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ۍ</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> # <nowiki> ئے </nowiki><b> -> </b><nowiki>ئے</nowiki> # <nowiki> ئید </nowiki><b> -> </b><nowiki>ئید</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ٮ۪ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[پِش]] - ([[Special:Diff/153672|فَرَق]]) ==== # <nowiki> تقریباً </nowiki><b> -> </b><nowiki>تَقریٖبَن</nowiki> # <nowiki> سٕتؠ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> سۭتۍ </nowiki><b> -> </b><nowiki>سٟتؠ</nowiki> # <nowiki> منٛز </nowiki><b> -> </b><nowiki>مَنٛز</nowiki> # <nowiki> میٹر </nowiki><b> -> </b><nowiki>میٖٹَر</nowiki> # <nowiki> یتھ </nowiki><b> -> </b><nowiki>یَتھ</nowiki> # <nowiki> ؠ. </nowiki><b> -> </b><nowiki>ؠ۔</nowiki> # <nowiki> ۍ </nowiki><b> -> </b><nowiki>ؠ</nowiki> ==== [[ژَر]] - ([[Special:Diff/153673|فَرَق]]) ==== # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> ==9-10-2026== ==== [[شیلڈن ڈو ٹوئٹ]] - ([[Special:Diff/153710|فَرَق]]) ==== # <nowiki> قائم </nowiki><b> -> </b><nowiki>قٲیِم</nowiki> # <nowiki> مدد </nowiki><b> -> </b><nowiki>مَدَتھ</nowiki> # <nowiki> یئ </nowiki><b> -> </b><nowiki>یئ</nowiki> # <nowiki> ئی </nowiki><b> -> </b><nowiki>ئی</nowiki> # <nowiki> ئ </nowiki><b> -> </b><nowiki>ئ</nowiki> # <nowiki> ۭ </nowiki><b> -> </b><nowiki>ٟ</nowiki> 3ph6uyaawi3myydg6u0v3ljgfgx0cfi گانٛدربل ایٚسمبلی حلقہٕ 0 32961 153754 153104 2026-10-10T05:57:54Z SakuraBot 9889 [[وپ:باٹ|باٹ]] چھُ صَفَس زٲژ پؠٹھ کٲم کَران. 153754 wikitext text/x-wiki '''{{PAGENAMEBASE}}''' چھُ ہِندوستان کِس شُمٲلی رِیاستَس [[جۆم تہٕ کٔشیٖر|جۆم تہٕ کٔشیٖر مَنٛز،]] [[جۆم تہٕ کٔشیٖر مَجلِسہِ قۄنوٗن سٲزی|جۆم تہٕ کٔشیٖر قوٗنون ساز ایٚسمبلی]] کِس 90 حلقَو مَنٛز اَکھ۔<ref name="JKGazette2024">{{cite web |title=Notification No. SO-412: General Election to the Legislative Assembly of the Union Territory of Jammu and Kashmir |url=https://rgp.jk.gov.in/pdf/SRO/SO-2024/S.%20O.%20412%20%202024%20%20%20PDF.pdf |publisher=Jammu and Kashmir Official Gazette |date=20 August 2024 |access-date=2026-10-05 }}</ref> == حَوالہٕ == {{حَوالہٕ}} [[زٲژ:جۆم تہٕ کٔشیٖر منٛز اسمبلی حلقہٕ]] [[زٲژ:گانٛدَربَل ضِلہٕ]] hagv5v37dz0akymhiz5idglzfxi035l ہَنٛدٕوور ایٚسمبلی حلقہٕ 0 32963 153755 153102 2026-10-10T06:20:10Z SakuraBot 9889 [[وپ:باٹ|باٹ]] چھُ صَفَس زٲژ پؠٹھ کٲم کَران. 153755 wikitext text/x-wiki '''{{PAGENAMEBASE}}''' چھُ ہِندوستان کِس شُمٲلی رِیاستَس [[جۆم تہٕ کٔشیٖر|جۆم تہٕ کٔشیٖر مَنٛز،]] [[جۆم تہٕ کٔشیٖر مَجلِسہِ قۄنوٗن سٲزی|جۆم تہٕ کٔشیٖر قوٗنون ساز ایٚسمبلی]] کِس 90 حلقَو مَنٛز اَکھ۔<ref name="JKGazette2024">{{cite web |title=Notification No. SO-412: General Election to the Legislative Assembly of the Union Territory of Jammu and Kashmir |url=https://rgp.jk.gov.in/pdf/SRO/SO-2024/S.%20O.%20412%20%202024%20%20%20PDF.pdf |publisher=Jammu and Kashmir Official Gazette |date=20 August 2024 |access-date=2026-10-05 }}</ref> == حَوالہٕ == {{حَوالہٕ}} [[زٲژ:جۆم تہٕ کٔشیٖر منٛز اسمبلی حلقہٕ]] [[زٲژ:کۄپوور ضِلہٕ]] 493h7em5xiy7r5um4jmqsg4cw813q42 کَنٛگَن ایٚسمبلی حلقہٕ 0 32972 153750 153093 2026-10-10T05:41:08Z SakuraBot 9889 [[وپ:باٹ|باٹ]] چھُ صَفَس زٲژ پؠٹھ کٲم کَران. 153750 wikitext text/x-wiki '''{{PAGENAMEBASE}}''' چھُ ہِندوستان کِس شُمٲلی رِیاستَس [[جۆم تہٕ کٔشیٖر|جۆم تہٕ کٔشیٖر مَنٛز،]] [[جۆم تہٕ کٔشیٖر مَجلِسہِ قۄنوٗن سٲزی|جۆم تہٕ کٔشیٖر قوٗنون ساز ایٚسمبلی]] کِس 90 حلقَو مَنٛز اَکھ۔<ref name="JKGazette2024">{{cite web |title=Notification No. SO-412: General Election to the Legislative Assembly of the Union Territory of Jammu and Kashmir |url=https://rgp.jk.gov.in/pdf/SRO/SO-2024/S.%20O.%20412%20%202024%20%20%20PDF.pdf |publisher=Jammu and Kashmir Official Gazette |date=20 August 2024 |access-date=2026-10-05 }}</ref> == حَوالہٕ == {{حَوالہٕ}} [[زٲژ:جۆم تہٕ کٔشیٖر منٛز اسمبلی حلقہٕ]] [[زٲژ:گانٛدَربَل ضِلہٕ]] hagv5v37dz0akymhiz5idglzfxi035l کرناہ ایٚسمبلی حلقہٕ 0 32973 153749 153092 2026-10-10T05:21:26Z SakuraBot 9889 [[وپ:باٹ|باٹ]] چھُ صَفَس زٲژ پؠٹھ کٲم کَران. 153749 wikitext text/x-wiki '''{{PAGENAMEBASE}}''' چھُ ہِندوستان کِس شُمٲلی رِیاستَس [[جۆم تہٕ کٔشیٖر|جۆم تہٕ کٔشیٖر مَنٛز،]] [[جۆم تہٕ کٔشیٖر مَجلِسہِ قۄنوٗن سٲزی|جۆم تہٕ کٔشیٖر قوٗنون ساز ایٚسمبلی]] کِس 90 حلقَو مَنٛز اَکھ۔<ref name="JKGazette2024">{{cite web |title=Notification No. SO-412: General Election to the Legislative Assembly of the Union Territory of Jammu and Kashmir |url=https://rgp.jk.gov.in/pdf/SRO/SO-2024/S.%20O.%20412%20%202024%20%20%20PDF.pdf |publisher=Jammu and Kashmir Official Gazette |date=20 August 2024 |access-date=2026-10-05 }}</ref> == حَوالہٕ == {{حَوالہٕ}} [[زٲژ:جۆم تہٕ کٔشیٖر منٛز اسمبلی حلقہٕ]] [[زٲژ:کۄپوور ضِلہٕ]] 493h7em5xiy7r5um4jmqsg4cw813q42 کۄکَرناگ ایٚسمبلی حلقہٕ 0 32977 153753 153088 2026-10-10T05:50:28Z SakuraBot 9889 [[وپ:باٹ|باٹ]] چھُ صَفَس زٲژ پؠٹھ کٲم کَران. 153753 wikitext text/x-wiki '''{{PAGENAMEBASE}}''' چھُ ہِندوستان کِس شُمٲلی رِیاستَس [[جۆم تہٕ کٔشیٖر|جۆم تہٕ کٔشیٖر مَنٛز،]] [[جۆم تہٕ کٔشیٖر مَجلِسہِ قۄنوٗن سٲزی|جۆم تہٕ کٔشیٖر قوٗنون ساز ایٚسمبلی]] کِس 90 حلقَو مَنٛز اَکھ۔<ref name="JKGazette2024">{{cite web |title=Notification No. SO-412: General Election to the Legislative Assembly of the Union Territory of Jammu and Kashmir |url=https://rgp.jk.gov.in/pdf/SRO/SO-2024/S.%20O.%20412%20%202024%20%20%20PDF.pdf |publisher=Jammu and Kashmir Official Gazette |date=20 August 2024 |access-date=2026-10-05 }}</ref> == حَوالہٕ == {{حَوالہٕ}} [[زٲژ:جۆم تہٕ کٔشیٖر منٛز اسمبلی حلقہٕ]] [[زٲژ:انَنت ناگ ضِلہٕ]] seyt6699u7tetedgscffni18wctsmcv کۄلگوم ایٚسمبلی حلقہٕ 0 32978 153751 153087 2026-10-10T05:49:59Z SakuraBot 9889 [[وپ:باٹ|باٹ]] چھُ صَفَس زٲژ پؠٹھ کٲم کَران. 153751 wikitext text/x-wiki '''{{PAGENAMEBASE}}''' چھُ ہِندوستان کِس شُمٲلی رِیاستَس [[جۆم تہٕ کٔشیٖر|جۆم تہٕ کٔشیٖر مَنٛز،]] [[جۆم تہٕ کٔشیٖر مَجلِسہِ قۄنوٗن سٲزی|جۆم تہٕ کٔشیٖر قوٗنون ساز ایٚسمبلی]] کِس 90 حلقَو مَنٛز اَکھ۔<ref name="JKGazette2024">{{cite web |title=Notification No. SO-412: General Election to the Legislative Assembly of the Union Territory of Jammu and Kashmir |url=https://rgp.jk.gov.in/pdf/SRO/SO-2024/S.%20O.%20412%20%202024%20%20%20PDF.pdf |publisher=Jammu and Kashmir Official Gazette |date=20 August 2024 |access-date=2026-10-05 }}</ref> == حَوالہٕ == {{حَوالہٕ}} [[زٲژ:جۆم تہٕ کٔشیٖر منٛز اسمبلی حلقہٕ]] [[زٲژ:کۄلگوم ضِلہٕ]] 075rw4j8xssyx5159f0v47bpr2rv0lf کۄپوور ایٚسمبلی حلقہٕ 0 32979 153752 153086 2026-10-10T05:50:18Z SakuraBot 9889 [[وپ:باٹ|باٹ]] چھُ صَفَس زٲژ پؠٹھ کٲم کَران. 153752 wikitext text/x-wiki '''{{PAGENAMEBASE}}''' چھُ ہِندوستان کِس شُمٲلی رِیاستَس [[جۆم تہٕ کٔشیٖر|جۆم تہٕ کٔشیٖر مَنٛز،]] [[جۆم تہٕ کٔشیٖر مَجلِسہِ قۄنوٗن سٲزی|جۆم تہٕ کٔشیٖر قوٗنون ساز ایٚسمبلی]] کِس 90 حلقَو مَنٛز اَکھ۔<ref name="JKGazette2024">{{cite web |title=Notification No. SO-412: General Election to the Legislative Assembly of the Union Territory of Jammu and Kashmir |url=https://rgp.jk.gov.in/pdf/SRO/SO-2024/S.%20O.%20412%20%202024%20%20%20PDF.pdf |publisher=Jammu and Kashmir Official Gazette |date=20 August 2024 |access-date=2026-10-05 }}</ref> == حَوالہٕ == {{حَوالہٕ}} [[زٲژ:جۆم تہٕ کٔشیٖر منٛز اسمبلی حلقہٕ]] [[زٲژ:کۄپوور ضِلہٕ]] 493h7em5xiy7r5um4jmqsg4cw813q42 شیلڈن ڈو ٹوئٹ 0 33117 153706 2026-10-09T14:04:09Z ~2026-48909-24 14812 [[شیلڈن ڈو ٹوئٹ ]] 153706 wikitext text/x-wiki {{Infobox person | name = شیلڈن ڈو ٹوئٹ | native_name = Sheldon du Toit | birth_date = {{Birth date and age|1998|7|29|df=yes}} | birth_place = جۆنوٗبی اَفریٖقہ | nationality = جۆنوٗبی اَفریٖقی | education = نیشنل سینئر سرٹیفکیٹ (NSC) | occupation = چیف آپریٹنگ آفیسر (COO)، کٲروبٲری مَشِیر، تاجر | organization = [[CredibilityX]]<br>[[FFX Academy]] | title = سی او او (CredibilityX) | known_for = میڈیا پی آر، برانڈنگ، مٲلیاتی منڈی }} '''شیلڈن ڈو ٹوئٹ''' ({{lang-en|Sheldon du Toit}}؛ پٲدٲیِش: ۲۹ جُلَے ۱۹۹۸) چھِ اَکھ جۆنوٗبی اَفریٖقی کاروبٲر، تاجر تہٕ انتظامی سربراہ۔ تم چھِ بین الاقوٲمی میڈیا تہٕ پبلک ریلیشنز (PR) کمپنی '''کریڈیبلٹی ایکس''' (CredibilityX) مَنٛز بطور چیف آپریٹنگ آفیسر (COO) کٲم کران، تہٕ مالیاتی تٲلیٖمی ادارٕ '''ایف ایف ایکس اکیڈمی''' (FFX Academy) ہِنٛدی بٲنی چھِ۔<ref>{{ویب حَوالہٕ|last=Perez|first=Lexy|date=2026-10-06|title=Inside the Shocking Decision to End ‘Young Sheldon’ at Its Peak (Exclusive Excerpt)|url=https://www.hollywoodreporter.com/tv/tv-features/young-sheldon-ending-drama-book-excerpt-1236702479/|access-date=2026-10-09|website=The Hollywood Reporter|language=en-US}}</ref><ref>{{ویب حَوالہٕ|last=Pegg|first=Jowan Murphy|date=2026-10-07|title=Watch: Mason Ho and Sheldon Paishon Feast On Scottish reef|url=https://wavelengthmag.com/watch-mason-ho-and-sheldon-paishon-feast-on-scottish-reef/|access-date=2026-10-09|website=Wavelength Surf Magazine - since 1981|language=en}}</ref> == اِبتدٲیی زِندگی تہٕ تٲلیٖم == شیلڈن زاو ۲۹ جُلَے ۱۹۹۸ مَنٛز جۆنوٗبی اَفریٖقہس مَنٛز۔ تمو کٔر نیشنل سینئر سرٹیفکیٹ (NSC) حٲصل تہٕ اَمہِ پتہٕ کٔرٕن سیلز، انتظامی حکمتِ عملی تہٕ مٲلیاتی منڈی (Financial Markets) مَنٛز پنٕنی کٲم شۆروٗع۔<ref>{{ویب حَوالہٕ|date=2026-10-08|title=Portland Business Journal Manufacturing Awards: Sheldon Manufacturing|url=https://www.bizjournals.com/portland/news/2026/10/08/manufacturing-awards-sheldon-manufacturing-inc.html|access-date=2026-10-09|website=Portland Business Journal|language=en-US}}</ref> == پیشورانہٕ زِندگی == شیلڈن ڈو ٹوئٹن کٔر پنٕنہِ کٲریئرُک اِبتدا ڈائریکٹ سیلز تہٕ انتظامی کٲروبار سۭتی۔ * ۲۰۱۹ پؠٹھ ۲۰۲۴ تام کٔر تم بی ایم ڈبلیو (BMW South Africa) مَنٛز کارپوریٹ سیلز مینیجر سٕنٛدِ حشیتہٕ خدمات انجام۔ * مالیاتی منڈی مَنٛز کٲم کرنہٕ سۭتی سۭتی بنٲو تمو ''ایف ایف ایکس اکیڈمی'' یُس لوکن تجارتی مہارت فراہم کران چھُ۔<ref>{{ویب حَوالہٕ|last=Posey|first=Randall|date=2026-10-08|title=Kazim Ali explores memory, mortality in poetry at Sheldon|url=https://www.dailynebraskan.com/culture/kazim-ali-explores-memory-mortality-in-poetry-at-sheldon/article_7b08861f-174e-47d3-8659-feb52c793040.html|access-date=2026-10-09|website=The Daily Nebraskan|language=en}}</ref> * ۲۰۲۶ مَنٛز بنییہِ تم گلوبل میڈیا فرم ''CredibilityX'' ہِنٛدی چیف آپریٹنگ آفیسر (COO)، ییٚتہِ تم بانیان، کارپوریٹ سربراہن تہٕ کمپنیَن پی آر (PR)، میڈیا شہرت تہٕ پرسنل برانڈنگ قائم کرنس مَنٛز مدد کران چھِ۔<ref>{{ویب حَوالہٕ|date=2026-10-05|title=Nineteen years later, the original Sheldon and Leonard finally lead a Big Bang Theory spin-off - 3DVF|url=https://3dvf.com/en/nineteen-years-later-the-original-sheldon-and-leonard-finally-lead-a-big-bang-theory-spin-off-1/|access-date=2026-10-09|website=https://3dvf.com/en/|language=en-US}}</ref> شیلڈن چھِ بین الاقوٲمی کاروبٲری مجلن یَتھ کٔنؠ زِ ''بزنس انسائیڈر افریقہ'' تہٕ مِڈل ایسٹ فنانس فورمَن مَنٛز میڈیا تہٕ برانڈنگس پؠٹھ پنن تجزِیاتی نکتہٕ نظر پیش کرنہٕ خٲطرٕ زاننہٕ یوان۔ == حَوالہٕ جات == {{حَوالہٕ}} == بیرونی لِنکہٕ == * [https://www.linkedin.com/in/sheldon-du-toit لنکن اِن پروفائل] * [https://www.instagram.com/sheldondutoit انسٹاگرام پروفائل] * [https://www.threads.com/@sheldondutoit تھریڈز پروفائل] [[زٲژ:جۆنوٗبی اَفریٖقی کٲروبٲر]] [[زٲژ:۱۹۹۸ مَنٛز پٲدٲیِش]] [[زٲژ:زندٕ لوٗکھ]] kdap31070rrv54lekjagb3bbm25kd8u 153710 153706 2026-10-09T18:00:47Z Nadeemulhaqmir-bot 9480 باٹ چھُ غَلطی ٹھیٖکھ کَران [[وِکیٖپیٖڈیا:AutoWikiBrowser/Typos|غَلطی فِہرِست مُطٲبِق]] 153710 wikitext text/x-wiki {{Infobox person | name = شیلڈن ڈو ٹوئٹ | native_name = Sheldon du Toit | birth_date = {{Birth date and age|1998|7|29|df=yes}} | birth_place = جۆنوٗبی اَفریٖقہ | nationality = جۆنوٗبی اَفریٖقی | education = نیشنل سینئر سرٹیفکیٹ (NSC) | occupation = چیف آپریٹنگ آفیسر (COO)، کٲروبٲری مَشِیر، تاجر | organization = [[CredibilityX]]<br>[[FFX Academy]] | title = سی او او (CredibilityX) | known_for = میڈیا پی آر، برانڈنگ، مٲلیاتی منڈی }} '''شیلڈن ڈو ٹویٹ''' ({{lang-en|Sheldon du Toit}}؛ پٲدٲیِش: ۲۹ جُلَے ۱۹۹۸) چھِ اَکھ جۆنوٗبی اَفریٖقی کاروبٲر، تاجر تہٕ انتظامی سربراہ۔ تم چھِ بین الاقوٲمی میڈیا تہٕ پبلک ریلیشنز (PR) کمپنی '''کریڈیبلٹی ایکس''' (CredibilityX) مَنٛز بطور چیف آپریٹنگ آفیسر (COO) کٲم کران، تہٕ مالیاتی تٲلیٖمی ادارٕ '''ایف ایف ایکس اکیڈمی''' (FFX Academy) ہِنٛدی بٲنی چھِ۔<ref>{{ویب حَوالہٕ|last=Perez|first=Lexy|date=2026-10-06|title=Inside the Shocking Decision to End ‘Young Sheldon’ at Its Peak (Exclusive Excerpt)|url=https://www.hollywoodreporter.com/tv/tv-features/young-sheldon-ending-drama-book-excerpt-1236702479/|access-date=2026-10-09|website=The Hollywood Reporter|language=en-US}}</ref><ref>{{ویب حَوالہٕ|last=Pegg|first=Jowan Murphy|date=2026-10-07|title=Watch: Mason Ho and Sheldon Paishon Feast On Scottish reef|url=https://wavelengthmag.com/watch-mason-ho-and-sheldon-paishon-feast-on-scottish-reef/|access-date=2026-10-09|website=Wavelength Surf Magazine - since 1981|language=en}}</ref> == اِبتدٲیی زِندگی تہٕ تٲلیٖم == شیلڈن زاو ۲۹ جُلَے ۱۹۹۸ مَنٛز جۆنوٗبی اَفریٖقہس مَنٛز۔ تمو کٔر نیشنل سینیر سرٹیفکیٹ (NSC) حٲصل تہٕ اَمہِ پتہٕ کٔرٕن سیلز، انتظامی حکمتِ عملی تہٕ مٲلیاتی منڈی (Financial Markets) مَنٛز پنٕنی کٲم شۆروٗع۔<ref>{{ویب حَوالہٕ|date=2026-10-08|title=Portland Business Journal Manufacturing Awards: Sheldon Manufacturing|url=https://www.bizjournals.com/portland/news/2026/10/08/manufacturing-awards-sheldon-manufacturing-inc.html|access-date=2026-10-09|website=Portland Business Journal|language=en-US}}</ref> == پیشورانہٕ زِندگی == شیلڈن ڈو ٹویٹن کٔر پنٕنہِ کٲرییَرُک اِبتدا ڈایریکٹ سیلز تہٕ انتظامی کٲروبار سٟتی۔ * ۲۰۱۹ پؠٹھ ۲۰۲۴ تام کٔر تم بی ایم ڈبلیو (BMW South Africa) مَنٛز کارپوریٹ سیلز مینیجر سٕنٛدِ حشیتہٕ خدمات انجام۔ * مالیاتی منڈی مَنٛز کٲم کرنہٕ سٟتی سٟتی بنٲو تمو ''ایف ایف ایکس اکیڈمی'' یُس لوکن تجارتی مہارت فراہم کران چھُ۔<ref>{{ویب حَوالہٕ|last=Posey|first=Randall|date=2026-10-08|title=Kazim Ali explores memory, mortality in poetry at Sheldon|url=https://www.dailynebraskan.com/culture/kazim-ali-explores-memory-mortality-in-poetry-at-sheldon/article_7b08861f-174e-47d3-8659-feb52c793040.html|access-date=2026-10-09|website=The Daily Nebraskan|language=en}}</ref> * ۲۰۲۶ مَنٛز بنییہِ تم گلوبل میڈیا فرم ''CredibilityX'' ہِنٛدی چیف آپریٹنگ آفیسر (COO)، ییٚتہِ تم بانیان، کارپوریٹ سربراہن تہٕ کمپنیَن پی آر (PR)، میڈیا شہرت تہٕ پرسنل برانڈنگ قٲیِم کرنس مَنٛز مَدَتھ کران چھِ۔<ref>{{ویب حَوالہٕ|date=2026-10-05|title=Nineteen years later, the original Sheldon and Leonard finally lead a Big Bang Theory spin-off - 3DVF|url=https://3dvf.com/en/nineteen-years-later-the-original-sheldon-and-leonard-finally-lead-a-big-bang-theory-spin-off-1/|access-date=2026-10-09|website=https://3dvf.com/en/|language=en-US}}</ref> شیلڈن چھِ بین الاقوٲمی کاروبٲری مجلن یَتھ کٔنؠ زِ ''بزنس انسایڈر افریقہ'' تہٕ مِڈل ایسٹ فنانس فورمَن مَنٛز میڈیا تہٕ برانڈنگس پؠٹھ پنن تجزِیاتی نکتہٕ نظر پیش کرنہٕ خٲطرٕ زاننہٕ یوان۔ == حَوالہٕ جات == {{حَوالہٕ}} == بیرونی لِنکہٕ == * [https://www.linkedin.com/in/sheldon-du-toit لنکن اِن پروفایل] * [https://www.instagram.com/sheldondutoit انسٹاگرام پروفایل] * [https://www.threads.com/@sheldondutoit تھریڈز پروفایل] [[زٲژ:جۆنوٗبی اَفریٖقی کٲروبٲر]] [[زٲژ:۱۹۹۸ مَنٛز پٲدٲیِش]] [[زٲژ:زندٕ لوٗکھ]] onc9lvr1ese4kddfk257pv74s4s1ltu فرما:))/دَستاویز 10 33118 153719 2023-10-29T20:46:26Z 2600:1700:A2A0:FB50:3DF8:1DDB:3DFA:69FB 153719 wikitext text/x-wiki {{Documentation subpage}} {{High-use}} <!-- PLEASE ADD CATEGORIES TO THE TRANSCLUDED DOCUMENTATION BELOW --> {{Auxiliary template common notice}} <includeonly>{{Sandbox other|| <!-- CATEGORIES GO HERE --> [[Category:Character-substitution templates]] }}</includeonly> h5025ljwt6jmh8rqqfrzhw09zt78eal 153720 153719 2026-10-09T18:45:01Z 511KeV 8268 1 revision imported from [[:en:Template:))/doc]]: Needed locally 153719 wikitext text/x-wiki {{Documentation subpage}} {{High-use}} <!-- PLEASE ADD CATEGORIES TO THE TRANSCLUDED DOCUMENTATION BELOW --> {{Auxiliary template common notice}} <includeonly>{{Sandbox other|| <!-- CATEGORIES GO HERE --> [[Category:Character-substitution templates]] }}</includeonly> h5025ljwt6jmh8rqqfrzhw09zt78eal 153721 153720 2026-10-09T18:45:54Z 511KeV 8268 [[فرما:))/doc]] صَفہٕ آو پَکناونہٕ [[فرما:))/دَستاویز]] جاے، پَکناوَن وول صٲرف 511KeV : Misspelled title 153719 wikitext text/x-wiki {{Documentation subpage}} {{High-use}} <!-- PLEASE ADD CATEGORIES TO THE TRANSCLUDED DOCUMENTATION BELOW --> {{Auxiliary template common notice}} <includeonly>{{Sandbox other|| <!-- CATEGORIES GO HERE --> [[Category:Character-substitution templates]] }}</includeonly> h5025ljwt6jmh8rqqfrzhw09zt78eal فرما:))/doc 10 33119 153722 2026-10-09T18:45:54Z 511KeV 8268 [[فرما:))/doc]] صَفہٕ آو پَکناونہٕ [[فرما:))/دَستاویز]] جاے، پَکناوَن وول صٲرف 511KeV : Misspelled title 153722 wikitext text/x-wiki #REDIRECT [[فرما:))/دَستاویز]] 4q99p9861pinfw41jdtqftuukx83sf4 تینٛدٕ 0 33120 153746 2026-10-10T03:32:15Z Humzah Rouf Phu 12982 [[تینٛدٕ]] صَفہٕ آو پَکناونہٕ [[اَملوکھ]] جاے، پَکناوَن وول صٲرف Humzah Rouf Phu 153746 wikitext text/x-wiki #REDIRECT [[اَملوکھ]] c24nd4vezuc0tkyqcjng7wmnwal3axt این کارسن 0 33121 153756 2026-10-10T06:49:27Z آیات محراج 11062 "[[:en:Special:Redirect/revision/1379464719|Anne Carson]]" ضفُک اِنتدٲیی حِصُک تَرجَمہٕ طور تَخلیق کَرنہٕ آمُت 153756 wikitext text/x-wiki <ref name="Morra-2014">{{Cite web|last=Morra|first=Linda|date=September 8, 2014|title=Anne Carson|url=https://www.thecanadianencyclopedia.ca/en/article/anne-carson|url-status=live|archive-url=https://web.archive.org/web/20230512193058/http://www.thecanadianencyclopedia.ca/en/article/anne-carson|archive-date=May 12, 2023|access-date=May 21, 2023|website=[[The Canadian Encyclopedia]]}}</ref>. 8c4yisadhfwhphhwqpz2oypqgajagtr 153757 153756 2026-10-10T06:50:37Z آیات محراج 11062 /* */ 153757 wikitext text/x-wiki این پیٹریسیا کارسن (زامٕژ 21 جوٗن 1950<ref name="Morra-2014">{{Cite web|last=Morra|first=Linda|date=September 8, 2014|title=Anne Carson|url=https://www.thecanadianencyclopedia.ca/en/article/anne-carson|url-status=live|archive-url=https://web.archive.org/web/20230512193058/http://www.thecanadianencyclopedia.ca/en/article/anne-carson|archive-date=May 12, 2023|access-date=May 21, 2023|website=[[The Canadian Encyclopedia]]}}</ref>) چھ اکھ کینیڈین اکیڈمی تہٕ مصنف۔ ٹورنٹو ہس منٛز زامٕژ، تم کر ٹورنٹو یونیورسٹی منٛز گریجویشن تہٕ 1979 منٛز بنییہٕ واریہن یونیورسٹین منٛز کلاسک، تقابلی ادب تہٕ تخلیقی تحریرچ پروفیسر۔ تم چھ یونیورسٹی آف کیلگری، میک گل یونیورسٹی، یونیورسٹی آف مشیگن، نیو یارک یونیورسٹی تہٕ پرنسٹن یونیورسٹی منٛز پرناومژ۔ کارسنن لیچھۍ وُہ کھوتہٕ زیادٕ کتابہٕ یمن منٛز مضمونن تہٕ شاعری ہنٛد مجموعہٕ سۭتۍ سۭتۍ قدیم یونٲنی ٹریجڈین ہنٛد ترجمہٕ تہٕ شٲمل چھ۔ أمِس آیہ گگن ہیم تہٕ میک آرتھر فیلوشپ دِنہٕ، لینن ادبی ایوارڈ، زٕ گریفن شاعری انعام، ٹی ایس ایلیٹ پرائز، پرنسس آف آسٹوریاس ایوارڈ، انگریزی زبانہِ ہنزِ شاعری خٲطرٕ گورنر جنرل ایوارڈ تہٕ پی ای این / نابوکوف ایوارڈ زیوٗنمُت تہٕ کینیڈین خطن منز تعاون کرنہٕ خٲطرٕ آیہ 2005 منز آرڈر آف کینیڈا ہٕچ ممبر مقرر کرنہٕ۔ تس آو ادبُک 2026 نوبل انعام دِنہٕ۔ ca8ryo44ri4folgpy4a65q6aqbof1m8 153758 153757 2026-10-10T06:51:49Z آیات محراج 11062 /* */ 153758 wikitext text/x-wiki این پیٹریسیا کارسن (زامٕژ 21 جوٗن 1950<ref name="Morra-2014">{{Cite web|last=Morra|first=Linda|date=September 8, 2014|title=Anne Carson|url=https://www.thecanadianencyclopedia.ca/en/article/anne-carson|url-status=live|archive-url=https://web.archive.org/web/20230512193058/http://www.thecanadianencyclopedia.ca/en/article/anne-carson|archive-date=May 12, 2023|access-date=May 21, 2023|website=[[The Canadian Encyclopedia]]}}</ref>) چھ اکھ کینیڈین اکیڈمی تہٕ مصنف۔ ٹورنٹو ہس منٛز زامٕژ، تم کر ٹورنٹو یونیورسٹی منٛز گریجویشن تہٕ 1979 منٛز بنییہٕ واریہن یونیورسٹین منٛز کلاسک، تقابلی ادب تہٕ تخلیقی تحریرچ پروفیسر۔ تم چھ یونیورسٹی آف کیلگری، میک گل یونیورسٹی، یونیورسٹی آف مشیگن، نیو یارک یونیورسٹی تہٕ پرنسٹن یونیورسٹی منٛز پرناومژ۔ کارسنن لیچھۍ وُہ کھوتہٕ زیادٕ کتابہٕ یمن منٛز مضمونن تہٕ شاعری ہنٛد مجموعہٕ سۭتۍ سۭتۍ قدیم یونٲنی ٹریجڈین ہنٛد ترجمہٕ تہٕ شٲمل چھ۔ أمِس آیہ گگن ہیم تہٕ میک آرتھر فیلوشپ دِنہٕ، لینن ادبی ایوارڈ، زٕ گریفن شاعری انعام، ٹی ایس ایلیٹ پرائز، پرنسس آف آسٹوریاس ایوارڈ، انگریزی زبانہِ ہنزِ شاعری خٲطرٕ گورنر جنرل ایوارڈ تہٕ پی ای این / نابوکوف ایوارڈ زیوٗنمُت تہٕ کینیڈین خطن منز تعاون کرنہٕ خٲطرٕ آیہ 2005 منز آرڈر آف کینیڈا ہٕچ ممبر مقرر کرنہٕ۔ تس آو ادبُک 2026 نوبل انعام دِنہٕ۔ == حَوالہٕ == cln087ndmnx2c7qf066dpj4f1s1ppon 153760 153758 2026-10-10T09:48:30Z آیات محراج 11062 /* */ 153760 wikitext text/x-wiki {{Infobox writer/Wikidata|fetchwikidata=ALL|onlysourced=No|noicon=Yes}} این پیٹریسیا کارسن (زامٕژ 21 جوٗن 1950<ref name="Morra-2014">{{Cite web|last=Morra|first=Linda|date=September 8, 2014|title=Anne Carson|url=https://www.thecanadianencyclopedia.ca/en/article/anne-carson|url-status=live|archive-url=https://web.archive.org/web/20230512193058/http://www.thecanadianencyclopedia.ca/en/article/anne-carson|archive-date=May 12, 2023|access-date=May 21, 2023|website=[[The Canadian Encyclopedia]]}}</ref>) چھ اکھ کینیڈین اکیڈمی تہٕ مصنف۔ ٹورنٹو ہس منٛز زامٕژ، تم کر ٹورنٹو یونیورسٹی منٛز گریجویشن تہٕ 1979 منٛز بنییہٕ واریہن یونیورسٹین منٛز کلاسک، تقابلی ادب تہٕ تخلیقی تحریرچ پروفیسر۔ تم چھ یونیورسٹی آف کیلگری، میک گل یونیورسٹی، یونیورسٹی آف مشیگن، نیو یارک یونیورسٹی تہٕ پرنسٹن یونیورسٹی منٛز پرناومژ۔ کارسنن لیچھۍ وُہ کھوتہٕ زیادٕ کتابہٕ یمن منٛز مضمونن تہٕ شاعری ہنٛد مجموعہٕ سۭتۍ سۭتۍ قدیم یونٲنی ٹریجڈین ہنٛد ترجمہٕ تہٕ شٲمل چھ۔ أمِس آیہ گگن ہیم تہٕ میک آرتھر فیلوشپ دِنہٕ، لینن ادبی ایوارڈ، زٕ گریفن شاعری انعام، ٹی ایس ایلیٹ پرائز، پرنسس آف آسٹوریاس ایوارڈ، انگریزی زبانہِ ہنزِ شاعری خٲطرٕ گورنر جنرل ایوارڈ تہٕ پی ای این / نابوکوف ایوارڈ زیوٗنمُت تہٕ کینیڈین خطن منز تعاون کرنہٕ خٲطرٕ آیہ 2005 منز آرڈر آف کینیڈا ہٕچ ممبر مقرر کرنہٕ۔ تس آو ادبُک 2026 نوبل انعام دِنہٕ۔ == حَوالہٕ == pqq73dtazd10x3zgij57wvujscc5tso 153761 153760 2026-10-10T09:49:42Z آیات محراج 11062 +[[زٲژ:کینَڈی لوٗکھ]]; +[[زٲژ:1950 پٲدٲیِش]] تٔژ زٲژ کِہ مَرَتھہٕ سٲتؠ 153761 wikitext text/x-wiki {{Infobox writer/Wikidata|fetchwikidata=ALL|onlysourced=No|noicon=Yes}} '''این پیٹریسیا کارسن''' (زامٕژ 21 جوٗن 1950<ref name="Morra-2014">{{Cite web|last=Morra|first=Linda|date=September 8, 2014|title=Anne Carson|url=https://www.thecanadianencyclopedia.ca/en/article/anne-carson|url-status=live|archive-url=https://web.archive.org/web/20230512193058/http://www.thecanadianencyclopedia.ca/en/article/anne-carson|archive-date=May 12, 2023|access-date=May 21, 2023|website=[[The Canadian Encyclopedia]]}}</ref>) چھ اکھ کینیڈین اکیڈمی تہٕ مصنف۔ ٹورنٹو ہس منٛز زامٕژ، تم کر ٹورنٹو یونیورسٹی منٛز گریجویشن تہٕ 1979 منٛز بنییہٕ واریہن یونیورسٹین منٛز کلاسک، تقابلی ادب تہٕ تخلیقی تحریرچ پروفیسر۔ تم چھ یونیورسٹی آف کیلگری، میک گل یونیورسٹی، یونیورسٹی آف مشیگن، نیو یارک یونیورسٹی تہٕ پرنسٹن یونیورسٹی منٛز پرناومژ۔ کارسنن لیچھۍ وُہ کھوتہٕ زیادٕ کتابہٕ یمن منٛز مضمونن تہٕ شاعری ہنٛد مجموعہٕ سۭتۍ سۭتۍ قدیم یونٲنی ٹریجڈین ہنٛد ترجمہٕ تہٕ شٲمل چھ۔ أمِس آیہ گگن ہیم تہٕ میک آرتھر فیلوشپ دِنہٕ، لینن ادبی ایوارڈ، زٕ گریفن شاعری انعام، ٹی ایس ایلیٹ پرائز، پرنسس آف آسٹوریاس ایوارڈ، انگریزی زبانہِ ہنزِ شاعری خٲطرٕ گورنر جنرل ایوارڈ تہٕ پی ای این / نابوکوف ایوارڈ زیوٗنمُت تہٕ کینیڈین خطن منز تعاون کرنہٕ خٲطرٕ آیہ 2005 منز آرڈر آف کینیڈا ہٕچ ممبر مقرر کرنہٕ۔ تس آو ادبُک 2026 نوبل انعام دِنہٕ۔ == حَوالہٕ == [[زٲژ:کینَڈی لوٗکھ]] [[زٲژ:1950 پٲدٲیِش]] mwwfwfrjc1p8yrygw1359oepdkkla80 153763 153761 2026-10-10T09:52:09Z آیات محراج 11062 /* */ 153763 wikitext text/x-wiki {{Infobox writer/Wikidata|fetchwikidata=ALL|onlysourced=No|noicon=Yes}} '''این پیٹریسیا کارسن''' (زامٕژ 21 جوٗن 1950<ref name="Morra-2014">{{Cite web|last=Morra|first=Linda|date=September 8, 2014|title=Anne Carson|url=https://www.thecanadianencyclopedia.ca/en/article/anne-carson|url-status=live|archive-url=https://web.archive.org/web/20230512193058/http://www.thecanadianencyclopedia.ca/en/article/anne-carson|archive-date=May 12, 2023|access-date=May 21, 2023|website=[[The Canadian Encyclopedia]]}}</ref>) چھ اکھ کینیڈین اکیڈمی تہٕ مصنف۔ ٹورنٹو ہس منٛز زامٕژ، تم کر ٹورنٹو یونیورسٹی منٛز گریجویشن تہٕ 1979 منٛز بنییہٕ واریہن یونیورسٹین منٛز کلاسک، تقابلی ادب تہٕ تخلیقی لیکھ پروفیسر۔ تم چھِ یونیورسٹی آف کیلگری، میک گل یونیورسٹی، یونیورسٹی آف مشیگن، نیو یارک یونیورسٹی تہٕ پرنسٹن یونیورسٹی منٛز پرناومژ۔ کارسنن لیچھۍ وُہ کھوتہٕ زیادٕ کتابہٕ یمن منٛز مضمونن تہٕ شاعری ہنٛد مجموعہٕ سۭتۍ سۭتۍ قدیم یونٲنی ٹریجڈین ہنٛد ترجمہٕ تہٕ شٲمل چھِ۔ أمِس آیہ گگن ہیم تہٕ میک آرتھر فیلوشپ دِنہٕ، لینن ادبی ایوارڈ، زٕ گریفن شاعری انعام، ٹی ایس ایلیٹ پرائز، پرنسس آف آسٹوریاس ایوارڈ، انگریزی زبانہِ ہنزِ شاعری خٲطرٕ گورنر جنرل ایوارڈ تہٕ پی ای این / نابوکوف ایوارڈ زیٖنؠ‌مٕتؠ تہٕ کینیڈین خطن منز تعاون کرنہٕ خٲطرٕ آیہ 2005 منز آرڈر آف کینیڈا ہٕچ ممبر مقرر کرنہٕ۔ تس آو ادبُک 2026 نوبل انعام دِنہٕ۔ == حَوالہٕ == [[زٲژ:کینَڈی لوٗکھ]] [[زٲژ:1950 پٲدٲیِش]] r87gv8pdao4qx094x4ye24yrhvubjo1