Warning.png

Поддержка Wiki прекращена, она доступна в режиме архива. Информация в ней устарела и может быть неактуальной.

Изменения

Перейти к: навигация, поиск

Модуль:Интерфейс

155 байтов добавлено, 12:18, 21 августа 2016
Нет описания правки
----------------------------------------------------------------------------------------------------
-- Модуль для отображения окон интерфейса (крафта, обжига, варки...)на страницах Minecraft Wiki.
----------------------------------------------------------------------------------------------------
local arrow = body:tag('span'):addClass('mcui-arrow'):tag('br'):done()
if args["Стрелка"] or '' ~= '' then
arrow:cssText( 'background-image:{{FileUrl|Grid layout ' .. args["Стрелка"] .. ' (' .. args["Мод"] .. ').png}}'
)
end
end
if fuelImg ~= '' and args["Мод"] then
fuel:cssText( 'background-image:{{FileUrl|Grid layout ' .. fuelImg .. ' (' .. args["Мод"] .. ').png}}'
)
end
end
if arrowImg ~= '' and args["Мод"] then
arrow:cssText( 'height: 100%; vertical-align: middle;background:none;margin:0;width:0' ) body:wikitext( '[[File:Grid layout ' .. arrowImg .. ' Progress (' .. args["Мод"] .. ').png|link=|middle]]' )
input:cssText( 'margin-right:14px' )
end
local body = mw.html.create( 'span' ):addClass( 'mcui mcui-Brewing_Stand' )
local input = body:tag( 'span' ):addClass( 'mcui-input' )
input:wikitextlocal inactive = ( args["Ресурс"] or '' ) == '' or ( addSlot( args, ["Выход1"] or 'Топливо', ) == 'Т', and ( args["Выход2"] or 'mcui-' ) == '' and ( args["Выход3"] or '' ) == '' )  if not inactive then local fuelslot = 'Огненный порошок' input:wikitext( slot{ fuelslot } ) else input-blaze:wikitext( slot{ ["умолчание"] = 'Grid_layout_Brewing_Blaze_Empty' } ) ) end 
input:tag( 'span' ):addClass( 'mcui-blaze' ):tag( 'br' )
input:tag( 'span' ):addClass( 'mcui-bubbling' ):tag( 'br' )
input:wikitext( addSlot( args, 'Ресурс', 'Р' ) )
input:tag( 'span' ):addClass( 'mcui-arrow' ):tag( 'br' )
if ( args["Ресурс"] or '' ) == '' or ( ( args["Выход1"] or '' ) == '' and ( args["Выход2"] or '' ) == '' and ( args["Выход3"] or '' ) == '' )inactive
then
input:addClass( 'mcui-inactive' )
elseif not args["Топливо"] then
args["Топливо"] = 'Огненный порошок'
end

Навигация