You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
local commonSMW = {}
local common = require( 'Module:Common' )
local libraryUtil = require( 'libraryUtil' )
local checkType = libraryUtil.checkType
local checkTypeMulti = libraryUtil.checkTypeMulti
--- Adds SMW properties to a table either from the API or Frame arguments
---
--- @param apiData table Data from the Wiki API
--- @param frameArgs table Frame args processed by Module:Arguments
--- @param smwSetObject table The SMW Object that gets passed to mw.smw.set
--- @param translateFn function The function used to translate argument names
--- @param moduleConfig table Table from config.json
--- @param moduleData table Table from data.json
--- @param moduleName string The module name used to retrieve fallback attribute names
--- @return void
function commonSMW.addSmwProperties( apiData, frameArgs, smwSetObject, translateFn, moduleConfig, moduleData, moduleName )
checkTypeMulti( 'Module:Common/SMW.addSmwProperties', 1, apiData, { 'table', 'nil' } )
checkType( 'Module:Common/SMW.addSmwProperties', 2, frameArgs, 'table' )
checkType( 'Module:Common/SMW.addSmwProperties', 3, smwSetObject, 'table' )
000
1:0
Templates used on this page:
- Template:Documentation (view source) (protected)
- Module:Array (view source)
- Module:Common (view source)
- Module:Common/Api (view source)
- Module:Common/SMW/doc (view source)
- Module:Common/testcases (view source)
- Module:DependencyList (view source)
- Module:DependencyList/i18n.json (view source)
- Module:Documentation (view source)
- Module:Documentation/i18n.json (view source)
- Module:Documentation/styles.css (view source)
- Module:Faction (view source)
- Module:Format link (view source)
- Module:Hatnote (view source)
- Module:Hatnote/styles.css (view source)
- Module:Hatnote list (view source)
- Module:I18n (view source)
- Module:I18n/category/en.json (view source)
- Module:Mbox (view source)
- Module:Mbox/styles.css (view source)
- Module:Module toc (view source)
- Module:Paramtest (view source)
- Module:ScribuntoUnit (view source)
- Module:ScribuntoUnit/config (view source)
- Module:Translate (view source)
- Module:User error (view source)
- Module:Vehicle (view source)
- Module:Vehicle/sandbox (view source)
- Module:Yesno (view source)
Return to Module:Common/SMW.