This is an archive copy of wikilivres.ca as of 18 February 2017 (from the WikiTeam dump). The original site is closed.

Template:Namespace: Difference between revisions

Free texts and images.
Jump to navigation Jump to search
imported>Rocket000
image -> media file + talkspace=talk page
imported>Rocket000
doc
Line 8: Line 8:
| {{TALKSPACE}}=talk page
| {{TALKSPACE}}=talk page
| page}}<noinclude>
| page}}<noinclude>
----
This works similar to the [[m:Help:Magic words|magic word]] <nowiki>{{NAMESPACE}}</nowiki>, which returns the name of whatever namespace it's on (hence it says 'template' right now). All this does is assign new names to those values to make them a little easier to use in template messages.
This table compares the magic word to this template showing what each would display if in those namespaces.
{|class="wikitable" style="text-align:center;"
! Location !! <nowiki>{{NAMESPACE}}</nowiki> !! <nowiki>{{namespace}}</nowiki>
|-
| Main space || {{ns:0}}(nothing) || gallery
|-
| Commons: pages || {{ns:4}} || project page
|-
| Image: pages || {{ns:6}} || media file
|-
| User: pages || {{ns:2}} || user page
|-
| Categories || {{ns:14}} || category
|-
| Templates || {{ns:10}} || template
|-
| '''Any''' talk page || {{ns:1}}, {{ns:3}}, {{ns:5}}, {{ns:7}}... || talk page
|}


[[Category:Helper templates|{{PAGENAME}}]]
[[Category:Helper templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 02:00, 28 March 2008

template



This works similar to the magic word {{NAMESPACE}}, which returns the name of whatever namespace it's on (hence it says 'template' right now). All this does is assign new names to those values to make them a little easier to use in template messages.


This table compares the magic word to this template showing what each would display if in those namespaces.

Location {{NAMESPACE}} {{namespace}}
Main space (nothing) gallery
Commons: pages Wikilivres project page
Image: pages File media file
User: pages User user page
Categories Category category
Templates Template template
Any talk page Talk, User talk, Wikilivres talk, File talk... talk page