<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
	<id>https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AShortcut</id>
	<title>پودمان:Shortcut - تاریخچهٔ نسخه‌ها</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nebeshtar.com/index.php?action=history&amp;feed=atom&amp;title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86%3AShortcut"/>
	<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Shortcut&amp;action=history"/>
	<updated>2026-05-04T19:47:43Z</updated>
	<subtitle>تاریخچهٔ نسخه‌ها برای این صفحه در ویکی</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Shortcut&amp;diff=1762&amp;oldid=prev</id>
		<title>محمد: ۱ نسخه واردشده</title>
		<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Shortcut&amp;diff=1762&amp;oldid=prev"/>
		<updated>2025-01-25T10:50:55Z</updated>

		<summary type="html">&lt;p&gt;۱ نسخه واردشده&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fa&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;نسخهٔ ۲۵ ژانویهٔ ۲۰۲۵، ساعت ۱۲:۵۰&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fa&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(بدون تفاوت)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>محمد</name></author>
	</entry>
	<entry>
		<id>https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Shortcut&amp;diff=67&amp;oldid=prev</id>
		<title>محمد: صفحه‌ای تازه حاوی «-- This module implements {{shortcut}}.  -- Set constants local CONFIG_MODULE = &#039;Module:Shortcut/config&#039;  -- Load required modules local checkType = require(&#039;libraryUtil&#039;).checkType local yesno = require(&#039;Module:Yesno&#039;)  local p = {}  local function message(msg, ...) 	return mw.message.newRawMessage(msg, ...):plain() end  local function makeCategoryLink(cat) 	return mw.ustring.format(&#039;%s:%s&#039;, mw.site.namespaces[14].name, cat) end...» ایجاد کرد</title>
		<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Shortcut&amp;diff=67&amp;oldid=prev"/>
		<updated>2025-01-22T17:37:51Z</updated>

		<summary type="html">&lt;p&gt;صفحه‌ای تازه حاوی «-- This module implements {{shortcut}}.  -- Set constants local CONFIG_MODULE = &amp;#039;Module:Shortcut/config&amp;#039;  -- Load required modules local checkType = require(&amp;#039;libraryUtil&amp;#039;).checkType local yesno = require(&amp;#039;Module:Yesno&amp;#039;)  local p = {}  local function message(msg, ...) 	return mw.message.newRawMessage(msg, ...):plain() end  local function makeCategoryLink(cat) 	return mw.ustring.format(&amp;#039;&lt;a href=&quot;/index.php?title=%25s:%25s&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;%s:%s (صفحه وجود ندارد)&quot;&gt;%s:%s&lt;/a&gt;&amp;#039;, mw.site.namespaces[14].name, cat) end...» ایجاد کرد&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;fa&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;نسخهٔ ۲۲ ژانویهٔ ۲۰۲۵، ساعت ۱۹:۳۷&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;fa&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(بدون تفاوت)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>محمد</name></author>
	</entry>
	<entry>
		<id>https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Shortcut&amp;diff=1761&amp;oldid=prev</id>
		<title>Template&gt;Jeeputer: احتمالاً مشکل شکستن فهرست‌های شماره‌دار با این تغییر برطرف شود</title>
		<link rel="alternate" type="text/html" href="https://wiki.nebeshtar.com/index.php?title=%D9%BE%D9%88%D8%AF%D9%85%D8%A7%D9%86:Shortcut&amp;diff=1761&amp;oldid=prev"/>
		<updated>2022-12-20T14:22:35Z</updated>

		<summary type="html">&lt;p&gt;احتمالاً مشکل شکستن فهرست‌های شماره‌دار با این تغییر برطرف شود&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ تازه&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- This module implements {{shortcut}}.&lt;br /&gt;
&lt;br /&gt;
-- Set constants&lt;br /&gt;
local CONFIG_MODULE = &amp;#039;Module:Shortcut/config&amp;#039;&lt;br /&gt;
&lt;br /&gt;
-- Load required modules&lt;br /&gt;
local checkType = require(&amp;#039;libraryUtil&amp;#039;).checkType&lt;br /&gt;
local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local function message(msg, ...)&lt;br /&gt;
	return mw.message.newRawMessage(msg, ...):plain()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function makeCategoryLink(cat)&lt;br /&gt;
	return mw.ustring.format(&amp;#039;[[%s:%s]]&amp;#039;, mw.site.namespaces[14].name, cat)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main(shortcuts, options, frame, cfg)&lt;br /&gt;
	checkType(&amp;#039;_main&amp;#039;, 1, shortcuts, &amp;#039;table&amp;#039;)&lt;br /&gt;
	checkType(&amp;#039;_main&amp;#039;, 2, options, &amp;#039;table&amp;#039;, true)&lt;br /&gt;
	options = options or {}&lt;br /&gt;
	frame = frame or mw.getCurrentFrame()&lt;br /&gt;
	cfg = cfg or mw.loadData(CONFIG_MODULE)&lt;br /&gt;
	local templateMode = (options.template or options[&amp;#039;الگو&amp;#039;]) and (yesno(options.template) or yesno(options[&amp;#039;الگو&amp;#039;]))&lt;br /&gt;
	local redirectMode = (options.redirect or options[&amp;#039;تغییرمسیر&amp;#039;]) and (yesno(options.redirect) or yesno(options[&amp;#039;تغییرمسیر&amp;#039;]))&lt;br /&gt;
	local isCategorized = (not options.category) or (not options[&amp;#039;رده&amp;#039;]) or (yesno(options.category) ~= false) or (yesno(options[&amp;#039;رده&amp;#039;]) ~= false)&lt;br /&gt;
&lt;br /&gt;
	-- Validate shortcuts&lt;br /&gt;
	for i, shortcut in ipairs(shortcuts) do&lt;br /&gt;
		if type(shortcut) ~= &amp;#039;string&amp;#039; or #shortcut &amp;lt; 1 then&lt;br /&gt;
			error(message(cfg[&amp;#039;invalid-shortcut-error&amp;#039;], i), 2)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Make the list items. These are the shortcuts plus any extra lines such&lt;br /&gt;
	-- as options.msg.&lt;br /&gt;
	local listItems = {}&lt;br /&gt;
	for i, shortcut in ipairs(shortcuts) do&lt;br /&gt;
		local templatePath, prefix&lt;br /&gt;
		if templateMode then&lt;br /&gt;
			-- Namespace detection&lt;br /&gt;
			local titleObj = mw.title.new(shortcut, 10)&lt;br /&gt;
			if titleObj.namespace == 10 then&lt;br /&gt;
				templatePath = titleObj.fullText&lt;br /&gt;
			else&lt;br /&gt;
				templatePath = shortcut&lt;br /&gt;
			end&lt;br /&gt;
			prefix = options[&amp;#039;pre&amp;#039; .. i] or options.pre or options[&amp;#039;پیشوند&amp;#039;] or &amp;#039;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
		if (options.target or options[&amp;#039;مقصد&amp;#039;]) and (yesno(options.target) or yesno(options[&amp;#039;مقصد&amp;#039;])) then&lt;br /&gt;
			listItems[i] = templateMode&lt;br /&gt;
				and mw.ustring.format(&amp;quot;&amp;amp;#123;&amp;amp;#123;%s[[%s|%s]]&amp;amp;#125;&amp;amp;#125;&amp;quot;, prefix, templatePath, shortcut)&lt;br /&gt;
				or mw.ustring.format(&amp;quot;[[%s]]&amp;quot;, shortcut)&lt;br /&gt;
		else&lt;br /&gt;
			listItems[i] = frame:expandTemplate{&lt;br /&gt;
				title = &amp;#039;تغییرمسیر ممنوع&amp;#039;,&lt;br /&gt;
				args = templateMode and {templatePath, shortcut} or {shortcut, shortcut}&lt;br /&gt;
			}&lt;br /&gt;
			if templateMode then&lt;br /&gt;
				listItems[i] = mw.ustring.format(&amp;quot;&amp;amp;#123;&amp;amp;#123;%s%s&amp;amp;#125;&amp;amp;#125;&amp;quot;, prefix, listItems[i])&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(listItems, (options.msg or options[&amp;#039;پیام&amp;#039;]))&lt;br /&gt;
&lt;br /&gt;
	-- Return an error if we have nothing to display&lt;br /&gt;
	if #listItems &amp;lt; 1 then&lt;br /&gt;
		local msg = cfg[&amp;#039;no-content-error&amp;#039;]&lt;br /&gt;
		msg = mw.ustring.format(&amp;#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;%s&amp;lt;/strong&amp;gt;&amp;#039;, msg)&lt;br /&gt;
		if isCategorized and cfg[&amp;#039;no-content-error-category&amp;#039;] then&lt;br /&gt;
			msg = msg .. makeCategoryLink(cfg[&amp;#039;no-content-error-category&amp;#039;])&lt;br /&gt;
		end&lt;br /&gt;
		return msg&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local root = mw.html.create()&lt;br /&gt;
	root:wikitext(frame:extensionTag{ name = &amp;#039;templatestyles&amp;#039;, args = { src = &amp;#039;میانبر/styles.css&amp;#039;} })&lt;br /&gt;
	-- Anchors&lt;br /&gt;
	local anchorDiv = root&lt;br /&gt;
		:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;module-shortcutanchordiv&amp;#039;)&lt;br /&gt;
	for i, shortcut in ipairs(shortcuts) do&lt;br /&gt;
		local anchor = mw.uri.anchorEncode(shortcut)&lt;br /&gt;
		anchorDiv:tag(&amp;#039;span&amp;#039;):attr(&amp;#039;id&amp;#039;, anchor)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Shortcut heading&lt;br /&gt;
	local shortcutHeading&lt;br /&gt;
	do&lt;br /&gt;
		local nShortcuts = #shortcuts&lt;br /&gt;
		if nShortcuts &amp;gt; 0 then&lt;br /&gt;
			local headingMsg = options[&amp;#039;shortcut-heading&amp;#039;] or&lt;br /&gt;
				redirectMode and cfg[&amp;#039;redirect-heading&amp;#039;] or&lt;br /&gt;
				cfg[&amp;#039;shortcut-heading&amp;#039;]&lt;br /&gt;
			shortcutHeading = message(headingMsg, nShortcuts)&lt;br /&gt;
			shortcutHeading = frame:preprocess(shortcutHeading)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Shortcut box&lt;br /&gt;
	local shortcutList = root&lt;br /&gt;
		:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;module-shortcutboxplain plainlist noprint&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;role&amp;#039;, &amp;#039;note&amp;#039;)&lt;br /&gt;
	if (options.float and (options.float:lower() == &amp;#039;right&amp;#039; or options.float == &amp;#039;راست&amp;#039;)) or (options[&amp;#039;شناور&amp;#039;] and (options[&amp;#039;شناور&amp;#039;]:lower() == &amp;#039;right&amp;#039; or options[&amp;#039;شناور&amp;#039;] == &amp;#039;راست&amp;#039;)) then&lt;br /&gt;
		shortcutList:addClass(&amp;#039;module-shortcutboxright&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
	if (options.clear and options.clear ~= &amp;#039;&amp;#039;) or (options[&amp;#039;پاک‌کن&amp;#039;] and options[&amp;#039;پاک‌کن&amp;#039;] ~= &amp;#039;&amp;#039;) then&lt;br /&gt;
		shortcutList:css(&amp;#039;clear&amp;#039;, (options.clear or options[&amp;#039;پاک‌کن&amp;#039;]))&lt;br /&gt;
	end&lt;br /&gt;
	if shortcutHeading then&lt;br /&gt;
		shortcutList&lt;br /&gt;
			:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
				:addClass(&amp;#039;module-shortcutlist&amp;#039;)&lt;br /&gt;
				:wikitext(shortcutHeading)&lt;br /&gt;
	end&lt;br /&gt;
	local ubl = require(&amp;#039;Module:List&amp;#039;).unbulleted(listItems)&lt;br /&gt;
	shortcutList:wikitext(ubl)&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = require(&amp;#039;Module:Arguments&amp;#039;).getArgs(frame)&lt;br /&gt;
&lt;br /&gt;
	-- Separate shortcuts from options&lt;br /&gt;
	local shortcuts, options = {}, {}&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &amp;#039;number&amp;#039; then&lt;br /&gt;
			shortcuts[k] = v&lt;br /&gt;
		else&lt;br /&gt;
			options[k] = v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Compress the shortcut array, which may contain nils.&lt;br /&gt;
	local function compressArray(t)&lt;br /&gt;
		local nums, ret = {}, {}&lt;br /&gt;
		for k in pairs(t) do&lt;br /&gt;
			nums[#nums + 1] = k&lt;br /&gt;
		end&lt;br /&gt;
		table.sort(nums)&lt;br /&gt;
		for i, num in ipairs(nums) do&lt;br /&gt;
			ret[i] = t[num]&lt;br /&gt;
		end&lt;br /&gt;
		return ret&lt;br /&gt;
	end&lt;br /&gt;
	shortcuts = compressArray(shortcuts)&lt;br /&gt;
&lt;br /&gt;
	return p._main(shortcuts, options, frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Template&gt;Jeeputer</name></author>
	</entry>
</feed>