Module:HonorChallPart
From Pathfinder Wiki
Revision as of 23:10, 29 July 2021 by DesignerThan (talk | contribs) (Created page with "local p = {} local honorUtils = require ( "Module:HonorUtils" ) local utilities = require ( "Module:Utilities" ) function p.getChallangingPart( frame ) local reqVariants = h...")
Documentation for this module may be created at Module:HonorChallPart/doc
local p = {}
local honorUtils = require ( "Module:HonorUtils" )
local utilities = require ( "Module:Utilities" )
function p.getChallangingPart( frame )
local reqVariants = honorUtils.getVariantsData( frame, nil, 'requirements', nil )
local HTMLTabs = ""
local HTMLTabsContent = ""
-- create a single tab
local HTMLACode = mw.html.create( 'a' )
-- if first add css class 'active'
HTMLACode
:addClass( 'nav-link' )
:attr( 'id', authAbbrev..'-tab' )
:attr( 'data-toggle', 'tab' )
:attr( 'href', '#'..authAbbrev )
:attr( 'role', 'tab' )
:attr( 'aria-controls', authAbbrev )
:attr( 'aria-selected', active )
:wikitext( authTrans )
local HTMLCode = mw.html.create( 'li' )
HTMLCode
:addClass( 'nav-item' )
:attr( 'role', 'presentation' )
:wikitext( tostring( HTMLACode ) )
--create a content tab
HTMLContentTab = mw.html.create( 'div' )
-- if first add css class 'active & show'
HTMLContentTab
:addClass( 'tab-pane fade' )
:attr( 'id', authAbbrev )
:attr( 'role', 'tabpanel' )
:attr( 'aria-labelledby', authAbbrev..'-tab' )
:wikitext( 'lst string with authority' )
-- create the container's and add the tab's
-- do all of the check's for the count of variant's and so on
end
return p