Module:Person/doc

De Semantic MediaWiki - Sandbox

< Module:Person

Révision datée du 15 décembre 2016 à 16:12 par Oetterer (discussion | contributions) (Page créée avec « This is an example module to show some capabilities of [https://www.mediawiki.org/wiki/Extension:Semantic_Scribunto Extension:Semantic Scribunto]. This one especially show... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)

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:

  1. filter known and existant argument data into local data table
  2. sets some (one) default(s)
  3. checks for existance of mandatory arguments
  4. converts all list fields into a table
  5. saves the semantic data
  6. builds a nice infobox (utilizing Module:Infobox)
  7. places the page in the appropriate category


Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.