ایجاد الگو
برچسب: ایجاد دوباره
 
تغییر جدید
 
خط ۳: خط ۳:
local origArgs = {}
local origArgs = {}
local root
local root
local yesno = require('Module:Yesno')
local empty_row_categories = {}
local empty_row_categories = {}
local category_in_empty_row_pattern = '%[%[%s*[ر][د][ه]%s*:[^]]*]]'
local category_in_empty_row_pattern = '%[%[%s*[ر][د][ه]%s*:[^]]*]]'
خط ۱۶: خط ۱۵:
},
},
found = false,
found = false,
styles = 'فهرست ساده/styles.css'
styles = 'Plainlist/styles.css'
},
},
hlist_t = {
hlist_t = {
خط ۴۰۳: خط ۴۰۲:
local function renderItalicTitle()
local function renderItalicTitle()
local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title'])
local italicTitle = args['italic title'] and mw.ustring.lower(args['italic title'])
if italicTitle == '' or italicTitle == 'force' or yesno(italicTitle) == 'yes' or italicTitle == 'اجباری' then
if italicTitle == '' or italicTitle == 'force' or italicTitle == 'yes' then
root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'}))
root:wikitext(mw.getCurrentFrame():expandTemplate({title = 'italic title'}))
end
end