« Modèle:Subnamespace/doc » : différence entre les versions

De Lotro-wiki
Aller à la navigation Aller à la recherche
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... »
 
Aucun résumé des modifications
 
Ligne 21 : Ligne 21 :
"Quest" is an official namespace from lotro-wiki, so it skips that one and returns "Instance".
"Quest" is an official namespace from lotro-wiki, so it skips that one and returns "Instance".


<includeonly>[[Category:Utility Templates]]</includeonly>
<includeonly>[[Category:Modèle (Soutien)]]</includeonly>
<noinclude>[[Category:Template Documentation]]</noinclude>
<noinclude>[[Category:Modèle (Documentation)]]</noinclude>

Dernière version du 20 mai 2013 à 14:45

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