Optional
colonWhether to include a leading colon in the output. (Default: false
)
This option has no effect if Title.hadLeadingColon returns false
.
Optional
formatThe normalization format to apply. (Default: 'db'
)
'db'
: Replaces all spaces with underscores.'api'
: Replaces all underscores with spaces.Optional
fragmentWhether to include the fragment in the output. (Default: false
)
All underscores are replaced by spaces.
This option has no effect if Title.getFragment returns null
.
Optional
interwikiWhether to include interwiki prefixes in the output. (Default: true
)
Optional
namespaceThe default namespace to use for the given title. (Default: NS_MAIN
)
Options for TitleStatic.normalize.