Defined Type: mediawiki::langwiki

Defined in:
puppet/modules/mediawiki/manifests/langwiki.pp

Overview

Define: mediawiki::langwiki

This resource type represents a language wiki. It is like the default wiki but with language set to specific parameter.

Parameters

language

This parameter defines the language code for the target language.

sitename

This parameter defines the name of the site, in the language above.

Parameters:

  • language (Any)
  • sitename (Any)


14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'puppet/modules/mediawiki/manifests/langwiki.pp', line 14

define mediawiki::langwiki(
    $language,
    $sitename,
) {
    mediawiki::wiki { $title: }

    mediawiki::settings { "${title}wiki settings":
        wiki   => $title,
        values => {
            'wgLanguageCode' => $language,
            'wgSitename'     => $sitename,
        }
    }
}