Module:T-LibraryInterview: Difference between revisions

// via Wikitext Extension for VSCode
// via Wikitext Extension for VSCode
Line 1: Line 1:
--Module:T-LibraryInterview
--Module:T-LibraryInterview
-- Renders the Internet & Digital Governance Library template for Interviews, making use of ICANNWiki's "Template Blueprint" framework
-- Renders the Internet & Digital Governance Library template for Interviews, making use of ICANNWiki's "Template Blueprint Framework"


local p = {}
local p = {}
Line 27: Line 27:
local errorContext = ErrorHandling.createContext("T-LibraryInterview")
local errorContext = ErrorHandling.createContext("T-LibraryInterview")


-- ========== Template Registration ==========
-- ================================================================================
-- Register the template with the Blueprint framework, explicitly specifying features
 
-- IMPORTANT! TEMPLATE BLUEPRINT FRAMEWORK INSTRUCTIONS
-- CONTROL OF TEMPLATE FEATURES: THIS LIST SPECIFIES IN AN EXPLICIT MANNER WHAT FEATURES ARE TO BE CALLED/RENDERED BY THE TEMPLATE. EXTENSIVE TESTING WAS PERFORMED SO THAT THIS CAN BE TOGGLED AT ANY TIME WITH A TRUE/FALSE BOOLEAN CHOICE FROM THIS MODULE, AS IT CAN BE DONE IN ANY OTHER MODULE USING ICANNWIKI'S THE TEMPLATE BLUEPRINT FRAMEWORK
local template = Blueprint.registerTemplate('LibraryInterview', {
local template = Blueprint.registerTemplate('LibraryInterview', {
     features = {
     features = {
Line 41: Line 43:
         -- Error handling
         -- Error handling
         errorReporting = true
         errorReporting = true
       
        -- Note: logo and socialMedia features are intentionally disabled for this template
     }
     }
})
})
Line 51: Line 51:
-- Get property mappings from ConfigRepository for tooltips
-- Get property mappings from ConfigRepository for tooltips
local propertyMappings = ConfigRepository.templates.LibraryInterview.semantics.properties
local propertyMappings = ConfigRepository.templates.LibraryInterview.semantics.properties
-- ================================================================================


-- ========== Preprocessors ==========
-- ========== Preprocessors ==========