Template:Subnamespace

From Lotro-Wiki.com
Jump to navigation Jump to search
This is the template documentation for {{Subnamespace}}. It is transcluded from Template:Subnamespace/doc and may be directly edited there.

Subnamespace is returning the non-mediawiki subnamespace of a pagename. That means it returns the first word before a colons of {{PAGENAME}}.

Usage

Normal usage:

{{subnamespace}}

Example

For example using

{{subnamespace}}

on the page "Quest: Instance: A Loved Quest" returns

"Instance"

"Quest" is an official namespace from Lotro-Wiki, so it skips that one and returns "Instance".