Module:Person/doc
De Semantic MediaWiki - Sandbox
Ceci est la page de documentation pour Module:Person
This is an example module to show some capabilities of Extension:Semantic Scribunto. This one especially shows how to use mw.smw.set.
After getting the arguments passed to the invoking template in main( frame )
(utilizing Module:Arguments), the module body is processed (represented by function _main( args )
). What this does is:
- filter known and existant argument data into local data table
- sets some (one) default(s)
- checks for existance of mandatory arguments
- converts all list fields into a table
- saves the semantic data
- builds a nice infobox (utilizing Module:Infobox)
- places the page in the appropriate category