Modèle:Subnamespace/doc

De Lotro-wiki
< Modèle:Subnamespace
Révision datée du 20 mai 2013 à 05:14 par Admin (discussion | contributions) (Page créée avec « '''Subnamespace''' is returning the non-mediawiki subnamespace of a pagename. That means it returns the first word before a colons of <nowiki>{{PAGENAME}}</nowiki>. == Us... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche

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".