Редактирование: Модуль:HF/Infobox/Jutsu
Перейти к навигации
Перейти к поиску
Примечание. Ваши правки будут показаны в статье только после их проверки участником с соответствующими правами.
Правка может быть отменена. Проверьте сравнение версий ниже и нажмите «Записать страницу».
Если отменяемые вами изменения не вандализм, пожалуйста, допишите причину в описании правки.
Текущая версия | Ваш текст | ||
Строка 44: | Строка 44: | ||
end | end | ||
--------------------------------------------------------- | ---------------------------------------------------------- | ||
-- | -- Public functions (called from a Template or article) -- | ||
--------------------------------------------------------- | ---------------------------------------------------------- | ||
-- Creates the infobox main title | -- Creates the infobox main title | ||
function Infobox.titleJutsu(frame) | function Infobox.titleJutsu(frame) | ||
Строка 52: | Строка 52: | ||
local out = {} | local out = {} | ||
if mw.title.getCurrentTitle().isContentPage == true then | if mw.title.getCurrentTitle().isContentPage == true then | ||
table.insert( out, HF.Category('Дзюцу | table.insert( out, HF.Category('Дзюцу') ) | ||
if args[' | --local _editFormURL = mw.html.create('span') | ||
-- :css('float','right'):css('font-size','x-small') | |||
-- :wikitext( HF.Link('Special:FormEdit/Jutsu/' .. pageTitle, 'edit') ):allDone() | |||
--local editFormURL = tostring(_editFormURL) | |||
if args['english'] then | |||
mw.smw.set { | mw.smw.set { | ||
['Название'] = args['название'], | ['Название'] = args['название'], | ||
Строка 109: | Строка 113: | ||
end | end | ||
--local popup = frame:newParserValue( | |||
-- "{{#queryformlink:form=Image query|link text=" .. | |||
-- "[[File:Camera font awesome.svg|15px|link=]]" .. | |||
-- "|query string=Image_query[jutsu]=" .. pageTitle .. | |||
-- "&_run|wpRunQuery=true|popup|tooltip=Images of " .. pageTitle .. " }}" | |||
--) | |||
--return table.concat( out ) .. popup:expand() .. ( args['ref'] or '' ) .. editFormURL | |||
return table.concat( out ) .. ( args['ref'] or '' ) | return table.concat( out ) .. ( args['ref'] or '' ) | ||
elseif mw.title.getCurrentTitle().namespace == 10 | elseif mw.title.getCurrentTitle().namespace == 10 |