Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Namespace detect/doc: Difference between revisions

From AoM Retold
Content deleted Content added
Created page with "{{Documentation}} {{Wikipedia template}} '''Module:Namespace detect''' allows you to output different text depending on the namespace that a given page is in. It is a Lua implementation of the {{tl|namespace detect}} template, with a few improvements: all namespaces and all namespace aliases are supported, and namespace names are detected automatically for the local wiki."
 
No edit summary
 
Line 2: Line 2:
{{Wikipedia template}}
{{Wikipedia template}}


'''Module:Namespace detect''' allows you to output different text depending on the [[SC:NS|namespace]] that a given page is in. It is a [[SC:Lua|Lua]] implementation of the {{tl|namespace detect}} template, with a few improvements: all namespaces and all namespace aliases are supported, and namespace names are detected automatically for the local wiki.
'''Module:Namespace detect''' allows you to output different text depending on the [[AoM Retold:NS|namespace]] that a given page is in. It is a [[AoM Retold:Lua|Lua]] implementation of the {{tl|namespace detect}} template, with a few improvements: all namespaces and all namespace aliases are supported, and namespace names are detected automatically for the local wiki.

Latest revision as of 11:48, 1 October 2024

Function list
L 29 — fetchValue
L 41 — equalsArrayValue
L 52 — p.getPageObject
L 68 — p.getParamMappings
L 72 — getNamespace
L 113 — p._main
L 131 — p.main
L 138 — p.table
L 154 — checkValue

Template:Wikipedia template

Module:Namespace detect allows you to output different text depending on the namespace that a given page is in. It is a Lua implementation of the {{namespace detect}} template, with a few improvements: all namespaces and all namespace aliases are supported, and namespace names are detected automatically for the local wiki.

Cookies help us deliver our services. By using our services, you agree to our use of cookies. We only use cookie to make the site function and save your preferences, nothing else.