Module:Main: Difference between revisions

Content deleted Content added
Created page with "-- Single utility module. Break this into separate modules if it gets too large. local p = {} -- p stands for package function p.get_appeal( frame ) local appeal_name =..."
 
add final fallback to Template:Appeal/default/en
Line 13:
local p3 = mw.title.new( 'Template:Appeal/' .. appeal_name .. '/en' )
local p4 = mw.title.new( 'Template:Appeal/default/' .. language )
local p5 = mw.title.new( 'Template:Appeal/default/en' )
 
if p1.exists then
Line 20 ⟶ 21:
elseif p3.exists then
page = p3
elseif p4.exists then
else
page = p4
else
page = p5
end