پودمان:Other uses of: Difference between revisions

From faraghaib
Jump to navigation Jump to search
admin>Admin
صفحه‌ای تازه حاوی «local mOtheruses = require('Module:Other uses') local p = {} p.otherusesof = function (frame) function getArg (num) local x = frame:getParent().args[num] return x ~= '' and x or nil end local ofWhat = getArg(1) or mw.title.getCurrentTitle().prefixedText local page = getArg(2) local options = { title = ofWhat, otherText = string.format('کاربردهای «%s»', ofWhat) } arg = page and {page} or {} return mOtheruses._...» ایجاد کرد
 
admin>Admin
m ۱ نسخه واردشده
(No difference)

Revision as of 22:35, May 25, 2025

local mOtheruses = require('Module:Other uses') local p = {} p.otherusesof = function (frame) function getArg (num) local x = frame:getParent().args[num] return x ~= and x or nil end local ofWhat = getArg(1) or mw.title.getCurrentTitle().prefixedText local page = getArg(2) local options = { title = ofWhat, otherText = string.format('کاربردهای «%s»', ofWhat) } arg = page and {page} or {} return mOtheruses._otheruses(arg, options) end return p