نمایش مبدأ برای پودمان:Sidebar
پرش به ناوبری
پرش به جستجو
به دلیل زیر، اجازهٔ ویرایش این صفحه ندارید:
میتوانید مبدأ این صفحه را ببینید و رونوشت بردارید:
--
-- This module implements {{Sidebar}}
--
require('Module:No globals')
local p = {}
local getArgs = require('Module:Arguments').getArgs
local navbar = require('Module:Navbar')._navbar
local function trimAndAddAutomaticNewline(s)
-- For compatibility with the original {{sidebar with collapsible lists}}
-- implementation, which passed some parameters through {{#if}} to trim
-- their whitespace. This also triggered the automatic newline behavior.
-- ([[meta:Help:Newlines and spaces#Automatic newline]])
s = mw.ustring.gsub(s, "^%s*(.-)%s*$", "%1")
if mw.ustring.find(s, '^[#*:;]') or mw.ustring.find(s, '^{|') then
return '\n' .. s
else
return s
end
end
000
1:0
بازگشت به پودمان:Sidebar.