FANDOM


local Box = {}
local NG = require('Dev:Navbox')
local HF = require('Module:HF')
local L = require('Module:List')
 
local data = mw.loadData( 'Module:HF/data' )
local Episodes = data.Episodes
local MainCharacters = data.MainCharacters
local LOC = data.Locations
local Cast = data.Cast
local SC = data.StoryCategories
local SN = data.StoryNames
local SG = data.StoryLogos
 
function Box.S1characters( frame )
return NG.main( {
         border='child',
         navbar = 'off',
         evenodd = 'off',
         alternaterows = 'yes',
         group1 = '[[:Category:Murder House (story)/Characters|Residents]]',
         group2 = 'Recurring',
         list1 = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Murder House Residents'] ) ),
         list2 = frame.args[1] or 'Recurring'
    })
end
 
function Box.S2characters( frame )
return NG.main( {
         border='child',
         navbar = 'off',
         evenodd = 'off',
         alternaterows = 'swap',
         group1 = '[[:Category:Briarcliff Staff|Staff]]',
        group2 = '[[:Category:Briarcliff Inmates|Inmates]]',
        group3 = 'Recurring',
        list1  = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Briarcliff Staff'] ) ),
        list2  = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Briarcliff Inmates'] ) ),
        list3  = frame.args[1] or 'Recurring'
    })
end
 
function Box.S3characters( frame )
return NG.main( {
         border='child',
         navbar = 'off',
         evenodd = 'off',
         alternaterows = 'yes',
         group1 = '[[:Category:Coven (story)/Characters|Main]]',
        group2 = 'Recurring',
         list1 = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Coven'] ) ),
         list2 = frame.args[1] or 'Recurring'
    } )
end
 
function Box.S4characters( frame )
return NG.main( {
         border='child',
         navbar = 'off',
         evenodd = 'off',
         alternaterows = 'yes',
         group1 = '[[:Category:Freak Show (story)/Characters|Main]]',
        group2 = 'Recurring',
         list1 = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Freak Show'] ) ),
         list2 = frame.args[1] or 'Recurring'
    } )
end
 
function Box.S5characters( frame )
return NG.main( {
         border='child',
         navbar = 'off',
         evenodd = 'off',
         alternaterows = 'yes',
         group1 = '[[:Category:Hotel (story)/Characters|Main]]',
        group2 = 'Recurring',
         list1 = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Hotel'] ) ),
         list2 = frame.args[1] or 'Recurring'
    } )
end
 
function Box.S6Acharacters( frame )
return NG.main( {
         border='child',
         navbar = 'off',
         evenodd = 'off',
         alternaterows = 'yes',
         group1 = '[[:Category:Roanoke (story)/Characters|Main]]',
        group2 = 'Recurring',
         list1 = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Roanoke'] ) ),
         list2 = frame.args[1] or 'Recurring'
    } )
end
 
function Box.S7characters( frame )
return NG.main( {
         border='child',
         navbar = 'off',
         evenodd = 'off',
         alternaterows = 'yes',
         group1 = '[[:Category:Cult (story)/Characters|Main]]',
         group2 = 'Recurring',
         list1 = L.makeList( 'horizontal' , HF.explode( ';', MainCharacters['Cult'] ) ),
         list2 = frame.args[1] or 'Recurring'
    } )
end
 
function Box.character( frame )
    return NG.main( { 
        name = 'Template:Navbox/Character',
        title = '[[:Category:Characters|Characters]]',
        state = 'expanded',
        listclass = 'hlist hwrap',
        evenodd = 'off',
        navbar = 'off',
        alternaterows = 'no',
        group1 = '[[Murder House (story)|Murder House]]',
        group2 = '[[Asylum (story)|Asylum]]',
        group3 = '[[Coven (story)|Coven]]',
        group4 = '[[Freak Show (story)|Freak Show]]',
        group5 = '[[Hotel (story)|Hotel]]',
        group6 = '[[Roanoke (story)|Roanoke]]',
        group7 = '[[Cult (story)|Cult]]',
        list1 = frame.args['S1'],
        list2 = frame.args['S2'],
        list3 = frame.args['S3'],
        list4 = frame.args['S4'],
        list5 = frame.args['S5'],
        list6 = frame.args['S6A'],
        list7 = frame.args['S7'],
    } )
 
 
end
 
function Box.episode( frame )
    local outer = { 
        name = 'Template:Navbox/Episode', 
        title = '[[:Category:Episodes|Episodes]]', 
        state = 'expanded', 
        navbar = 'off',
        listclass = 'hlist hwrap pi-data-value', 
        titleclass = 'pi-title',
        aboveclass = 'pi-header',
        belowclass = 'pi-header',
        evenodd = 'on', 
        alternaterows = 'yes',
        group1 = '[[:'..SC['1']..'|Murder House]]', 
        group2 = '[[:'..SC['2']..'|Asylum]]', 
        group3 = '[[:'..SC['3']..'|Coven]]', 
        group4 = '[[:'..SC['4']..'|Freak Show]]', 
        group5 = '[[:'..SC['5']..'|Hotel]]', 
        group6 = '[[:'..SC['6']..'|Roanoke]]', 
        group7 = '[[:'..SC['7']..'|Cult]]', 
        list1 = L.makeList( 'horizontal' , HF.explode( ';', Episodes['Murder House'] ) ),
        list2 = L.makeList( 'horizontal' , HF.explode( ';', Episodes['Asylum'] ) ),
        list3 = L.makeList( 'horizontal' , HF.explode( ';', Episodes['Coven'] ) ),
        list4 = L.makeList( 'horizontal' , HF.explode( ';', Episodes['Freak Show'] ) ),
        list5 = L.makeList( 'horizontal' , HF.explode( ';', Episodes['Hotel'] ) ),
        list6 = L.makeList( 'horizontal' , HF.explode( ';', Episodes['Roanoke'] ) ),
        list7 = L.makeList( 'horizontal' , HF.explode( ';', Episodes['Cult'] ) ),
    }
    return NG.main(outer)
end
 
function Box.cast( frame )
    local outer = { 
        name = 'Template:Navbox/Cast', 
        title = '[[:Category:Cast|Cast]]', 
        state = 'expanded', 
        navbar = 'off',
        listclass = 'hlist hwrap pi-data-value', 
        titleclass = 'pi-title',
        aboveclass = 'pi-header',
        belowclass = 'pi-header',
        evenodd = 'yes', 
        alternaterows = 'yes',
        group1 = '[[:'..SC['1']..'|Murder House]]', 
        group2 = '[[:'..SC['2']..'|Asylum]]', 
        group3 = '[[:'..SC['3']..'|Coven]]', 
        group4 = '[[:'..SC['4']..'|Freak Show]]', 
        group5 = '[[:'..SC['5']..'|Hotel]]', 
        group6 = '[[:'..SC['6']..'|Roanoke]]',
        group7 = '[[:'..SC['7']..'|Cult]]',
        list1 = L.makeList( 'horizontal' , HF.explode( ';', Cast['Murder House'] ) ),
        list2 = L.makeList( 'horizontal' , HF.explode( ';', Cast['Asylum'] ) ),
        list3 = L.makeList( 'horizontal' , HF.explode( ';', Cast['Coven'] ) ),
        list4 = L.makeList( 'horizontal' , HF.explode( ';', Cast['Freak Show'] ) ),
        list5 = L.makeList( 'horizontal' , HF.explode( ';', Cast['Hotel'] ) ),
        list6 = L.makeList( 'horizontal' , HF.explode( ';', Cast['Roanoke'] ) ),
        list7 = L.makeList( 'horizontal' , HF.explode( ';', Cast['Cult'] ) ),
    }
    return NG.main(outer)
end
 
function Box.location( frame )
    local outer = {
        name = 'Template:Navbox/Location',
        title = '[[:Category:Locations|Locations]]',
        state = 'expanded',
        listclass = 'hlist hwrap pi-data-value',
        titleclass = 'pi-title',
        aboveclass = 'pi-header',
        belowclass = 'pi-header',
        evenodd = 'on', 
        alternaterows = 'yes',
        group1 = '[[:'..SC['1']..'|Murder House]]', 
        group2 = '[[:'..SC['2']..'|Asylum]]', 
        group3 = '[[:'..SC['3']..'|Coven]]', 
        group4 = '[[:'..SC['4']..'|Freak Show]]', 
        group5 = '[[:'..SC['5']..'|Hotel]]', 
        group6 = '[[:'..SC['6']..'|Roanoke]]', 
        group6 = '[[:'..SC['7']..'|Cult]]', 
        list1 = L.makeList( 'horizontal' , HF.explode( ';', LOC['Murder House'] ) ),
        list2 = L.makeList( 'horizontal' , HF.explode( ';', LOC['Asylum'] ) ),
        list3 = L.makeList( 'horizontal' , HF.explode( ';', LOC['Coven'] ) ),
        list4 = L.makeList( 'horizontal' , HF.explode( ';', LOC['Freak Show'] ) ),
        list5 = L.makeList( 'horizontal' , HF.explode( ';', LOC['Hotel'] ) ),
        list6 = L.makeList( 'horizontal' , HF.explode( ';', LOC['Roanoke'] ) ),
        list7 = L.makeList( 'horizontal' , HF.explode( ';', LOC['Cult'] ) ),
        navbar = 'plain'
    }
    return NG.main(outer)
end
 
return Box

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.