Difference between revisions of "User:MrDolomite/Sandbox"

From MidrangeWiki
Jump to: navigation, search
m
m (create Namespaces section)
Line 45: Line 45:
 
category=B
 
category=B
 
</DynamicPageList>
 
</DynamicPageList>
 +
 +
==Namespaces==
 +
<noinclude>__FORCETOC__</noinclude>
 +
== Page names and related info ==
 +
*[[Wikipedia:Help:Magic_words#Page_names_and_related_info]]
 +
{| class="wikitable" border="2" cellpadding="4" cellspacing="0"
 +
! Word
 +
! Example
 +
! Explanation
 +
|-
 +
| <nowiki>{{PAGENAME}}</nowiki>
 +
| <code>{{PAGENAME}}</code>
 +
| Returns the name of the current page, including all levels (Title/Subtitle).
 +
|-
 +
| <nowiki>{{PAGENAMEE}}</nowiki>
 +
| <code>{{PAGENAMEE}}</code>
 +
| More URL-friendly percent encoded special characters (To use an articlename in an external link).
 +
|-
 +
| <nowiki>{{SUBPAGENAME}}</nowiki><br /><nowiki>{{SUBPAGENAMEE}}</nowiki>
 +
| <code>{{SUBPAGENAME}}<br />{{SUBPAGENAMEE}}</code>
 +
| '''[MW1.6+]''' Name of the current page, excluding parent pages ("Subtitle" on "Title/Subtitle") in namespaces supporting subpages, see [[Help:Link#Subpage_feature|Help:Link]].
 +
|-
 +
| <nowiki>{{BASEPAGENAME}}</nowiki><br ><nowiki>{{BASEPAGENAMEE}}</nowiki>
 +
| <code>{{BASEPAGENAME}}<br />{{BASEPAGENAMEE}}</code>
 +
| '''[MW1.7+]''' The basename of a subpage ("Title" on "Title/Subtitle"), see [[Help:Link#Subpage_feature|Help:Link]].
 +
|-
 +
| <nowiki>{{NAMESPACE}}</nowiki><br /><nowiki>{{NAMESPACEE}}</nowiki>
 +
| <code>{{NAMESPACE}}<br />{{NAMESPACEE}}</code>
 +
| Returns the name of the namespace the current page resides in.
 +
|-
 +
| <nowiki>{{FULLPAGENAME}}</nowiki><br ><nowiki>{{FULLPAGENAMEE}}</nowiki>
 +
| <code>{{FULLPAGENAME}}<br />{{FULLPAGENAMEE}}</code>
 +
| '''[MW1.6+]''' Shorthands for NAMESPACE+PAGENAME
 +
|-
 +
| <nowiki>{{TALKSPACE}}</nowiki><br ><nowiki>{{TALKSPACEE}}</nowiki>
 +
| <code>{{TALKSPACE}}<br />{{TALKSPACEE}}</code>
 +
| '''[MW1.7+]''' Name of next odd namespace (e.g. 4 =&gt; 5) 
 +
|-
 +
| <nowiki>{{SUBJECTSPACE}}</nowiki><br ><nowiki>{{SUBJECTSPACEE}}</nowiki>
 +
| <code>{{SUBJECTSPACE}}<br />{{SUBJECTSPACEE}}</code>
 +
| '''[MW1.7+]''' Name of next even namespace (e.g. 5 =&gt; 4)
 +
|-
 +
| <nowiki>{{ARTICLESPACE}}</nowiki><br ><nowiki>{{ARTICLESPACEE}}</nowiki>
 +
| <code>{{ARTICLESPACE}}<br />{{ARTICLESPACEE}}</code>
 +
| '''[MW1.7+]''' An alias for SUBJECTSPACE(E)
 +
|-
 +
| <nowiki>{{TALKPAGENAME}}</nowiki><br ><nowiki>{{TALKPAGENAMEE}}</nowiki>
 +
| <code>{{TALKPAGENAME}}<br />{{TALKPAGENAMEE}}</code>
 +
| '''[MW1.7+]''' FULLPAGENAME in its TALKSPACE
 +
|-
 +
| <nowiki>{{SUBJECTPAGENAME}}</nowiki><br ><nowiki>{{SUBJECTPAGENAMEE}}</nowiki>
 +
| <code>{{SUBJECTPAGENAME}}<br />{{SUBJECTPAGENAMEE}}</code>
 +
| '''[MW1.7+]''' FULLPAGENAME in its SUBJECTSPACE
 +
|-
 +
| <nowiki>{{ARTICLEPAGENAME}}</nowiki><br ><nowiki>{{ARTICLEPAGENAMEE}}</nowiki>
 +
| <code>{{ARTICLEPAGENAME}}<br />{{ARTICLEPAGENAMEE}}</code>
 +
| '''[MW1.7+]''' An alias for SUBJECTPAGENAME(E)
 +
|-
 +
| <nowiki>{{REVISIONID}}</nowiki>
 +
| <code>{{REVISIONID}}</code>
 +
| '''[MW1.5+]''' The unique identifying number of a page, see [[Help:Diff]].
 +
|-
 +
| <nowiki>{{SITENAME}}</nowiki>
 +
| <code>{{SITENAME}}</code>
 +
| Value of {{h:mwg|Sitename}}.
 +
|-
 +
| <nowiki>{{SERVER}}</nowiki>
 +
| <small>{{SERVER}}</small>
 +
| Value of {{h:mwg|Server}} 
 +
|-
 +
| <nowiki>{{SCRIPTPATH}}</nowiki>
 +
| <code>{{SCRIPTPATH}}</code>
 +
| '''[MW1.5+]''' {{h:mwg|ScriptPath}}
 +
|-
 +
| <nowiki>{{SERVERNAME}}</nowiki>
 +
| <code>{{SERVERNAME}}</code>
 +
| '''[MW1.5+]''' {{h:mwg|ServerName}}
 +
|-
 +
|}
 +
 +
== Namespaces ==
 +
*[[m:Help:Namespace#List_of_namespaces]]
 +
{| class="wikitable"
 +
|-
 +
!Variables
 +
!Alternate syntax
 +
!Name, linked to list of all pages
 +
!Nr. of pages
 +
!Notes
 +
|-
 +
|<nowiki>{{ns:-2}}</nowiki>
 +
|<nowiki>{{ns:Media}}</nowiki>
 +
|&quot;{{ns:-2}}&quot;
 +
|&nbsp;
 +
|pseudo-namespace for images and other files themselves, as opposed to the image description pages; see also below
 +
|-
 +
|<nowiki>{{ns:-1}}</nowiki>
 +
|<nowiki>{{ns:Special}}</nowiki>
 +
|&quot;{{ns:-1}}&quot;
 +
|&nbsp;
 +
|pseudo-namespace for [[Help:Special page|special page]]s (list: [[Special:Specialpages]])
 +
|-
 +
|<nowiki>{{ns:-0}}</nowiki>
 +
|<nowiki>{{ns:Main}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=0}} main]
 +
|{{PAGESINNS:0}}
 +
|main namespace, no prefix, or optionally a colon (this is needed when using the page as template)
 +
|-
 +
|<nowiki>{{ns:1}}</nowiki>
 +
|<nowiki>{{ns:Talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=1}} {{ns:1}}]
 +
|{{PAGESINNS:1}}
 +
|see [[:Help:Talk page]] for this and the following odd-numbered namespaces
 +
|-
 +
|<nowiki>{{ns:2}}</nowiki>
 +
|<nowiki>{{ns:User}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=2}} {{ns:2}}]
 +
|{{PAGESINNS:2}}
 +
|logged-in users (list: [[Special:Listusers]]) have a user homepage User:''username'' (linked to by the system from user names in [[Help:Edit_summary#Places_where_the_edit_summary_appears|lists of edits]], e.g. on [[Help:Page history|page histories]], and from signatures on talk pages); this and [[Help:Link#Subpage_feature|subpages]] of it can be used to present oneself, for project-related bookmarks, and for drafts, tests, and other working material. One can put here material to give oneself one-step access to it from any page in the same project, and one can put here links to give oneself two-step access to the link targets from any page in the same project as the user page. For users who do not log in, the same applies, with the IP as username. Dynamic IPs are a complication.
 +
|-
 +
|<nowiki>{{ns:3}}</nowiki>
 +
|<nowiki>{{ns:User_talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=3}} {{ns:3}}]
 +
|{{PAGESINNS:3}}
 +
|&nbsp;
 +
|-
 +
|<nowiki>{{ns:4}}</nowiki>
 +
|<nowiki>{{ns:Project}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=4}} {{ns:4}}]
 +
|{{PAGESINNS:4}}
 +
|the project namespace for matters ''about'' the project, such as guidelines and discussions; see also the Help namespace
 +
|-
 +
|<nowiki>{{ns:5}}</nowiki>
 +
|<nowiki>{{ns:Project_talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=5}} {{ns:5}}]
 +
|{{PAGESINNS:5}}
 +
|&nbsp;
 +
|-
 +
|<nowiki>{{ns:6}}</nowiki>
 +
|<nowiki>{{ns:Image}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=6}} {{ns:6}}]
 +
|{{PAGESINNS:6}}
 +
|[[help:images and other uploaded files|images and other uploaded files]], with [[Help:Image description page|image description page]]s (list: [[Special:Imagelist]])
 +
|-
 +
|<nowiki>{{ns:7}}</nowiki>
 +
|<nowiki>{{ns:Image_talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=7}} {{ns:7}}]
 +
|{{PAGESINNS:7}}
 +
|&nbsp;
 +
|-
 +
|<nowiki>{{ns:8}}</nowiki>
 +
|<nowiki>{{ns:MediaWiki}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=8}} {{ns:8}}]
 +
|{{PAGESINNS:8}}
 +
|system messages (list: [[Special:Allmessages]]), editable by users, or if protected, by sysops
 +
|-
 +
|<nowiki>{{ns:9}}</nowiki>
 +
|<nowiki>{{ns:MediaWiki_talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=9}} {{ns:9}}]
 +
|{{PAGESINNS:9}}
 +
|&nbsp;
 +
|-
 +
|<nowiki>{{ns:10}}</nowiki>
 +
|<nowiki>{{ns:Template}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=10}} {{ns:10}}]
 +
|{{PAGESINNS:10}}
 +
|the default namespace for [[help:template|template]]s: the wikitext code <nowiki>{{</nowiki>''name'' }} refers to and includes the page Template:''name''
 +
|-
 +
|<nowiki>{{ns:11}}</nowiki>
 +
|<nowiki>{{ns:Template_talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=11}} {{ns:11}}]
 +
|{{PAGESINNS:11}}
 +
|&nbsp;
 +
|-
 +
|<nowiki>{{ns:12}}</nowiki>
 +
|<nowiki>{{ns:Help}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=12}} {{ns:12}}]
 +
|{{PAGESINNS:12}}
 +
|typically used for the MediaWiki User's Guide, with the wikitext a frequently refreshed copy of the master version on Meta-Wikipedia, but with project-specific templates
 +
|-
 +
|<nowiki>{{ns:13}}</nowiki>
 +
|<nowiki>{{ns:Help_talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=13}} {{ns:13}}]
 +
|{{PAGESINNS:13}}
 +
|&nbsp;
 +
|-
 +
|<nowiki>{{ns:14}}</nowiki>
 +
|<nowiki>{{ns:Category}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=14}} {{ns:14}}]
 +
|{{PAGESINNS:14}}
 +
|each page (list: [[Special:Categories]]) represents a [[Help:Category|category]] of pages, with each category page displaying a list of pages in that category and optional additional text.
 +
|-
 +
|<nowiki>{{ns:15}}</nowiki>
 +
|<nowiki>{{ns:Category_talk}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=15}} {{ns:15}}]
 +
|{{PAGESINNS:15}}
 +
|&nbsp;
 +
|-
 +
|<nowiki>{{ns:16}}</nowiki>
 +
|<nowiki>{{ns:16}}</nowiki>
 +
|[{{SERVER}}{{localurl:Special:Allpages|namespace=16}} {{ns:16}}]
 +
|{{PAGESINNS:16}}
 +
|&nbsp;
 +
 +
|}

Revision as of 22:00, 30 August 2006

It's a sandbox. w00t! -- MyPages

Template testing #2

System Builder

http://www.redbooks.ibm.com/Redbooks.nsf/RedbookAbstracts/sg242155.html

Dynamic page testing

See http://meta.wikimedia.org/wiki/DynamicPageList for help.

Everything in [[Category:OS/400]]

<DynamicPageList> mode=ordered category=OS/400 </DynamicPageList>

Main articles in [[Category:OS/400]]

<DynamicPageList> mode=ordered namespace=Main category=OS/400 </DynamicPageList>

Categories in [[Category:OS/400]]

<DynamicPageList> mode=ordered namespace=Category shownamespace=false category=OS/400 </DynamicPageList>

Category Intersection of A and B

<DynamicPageList> mode=ordered category=A category=B </DynamicPageList>

Namespaces

Page names and related info

Word Example Explanation
{{PAGENAME}} MrDolomite/Sandbox Returns the name of the current page, including all levels (Title/Subtitle).
{{PAGENAMEE}} MrDolomite/Sandbox More URL-friendly percent encoded special characters (To use an articlename in an external link).
{{SUBPAGENAME}}
{{SUBPAGENAMEE}}
Sandbox
Sandbox
[MW1.6+] Name of the current page, excluding parent pages ("Subtitle" on "Title/Subtitle") in namespaces supporting subpages, see Help:Link.
{{BASEPAGENAME}}
{{BASEPAGENAMEE}}
MrDolomite
MrDolomite
[MW1.7+] The basename of a subpage ("Title" on "Title/Subtitle"), see Help:Link.
{{NAMESPACE}}
{{NAMESPACEE}}
User
User
Returns the name of the namespace the current page resides in.
{{FULLPAGENAME}}
{{FULLPAGENAMEE}}
User:MrDolomite/Sandbox
User:MrDolomite/Sandbox
[MW1.6+] Shorthands for NAMESPACE+PAGENAME
{{TALKSPACE}}
{{TALKSPACEE}}
User talk
User_talk
[MW1.7+] Name of next odd namespace (e.g. 4 => 5)
{{SUBJECTSPACE}}
{{SUBJECTSPACEE}}
User
User
[MW1.7+] Name of next even namespace (e.g. 5 => 4)
{{ARTICLESPACE}}
{{ARTICLESPACEE}}
User
User
[MW1.7+] An alias for SUBJECTSPACE(E)
{{TALKPAGENAME}}
{{TALKPAGENAMEE}}
User talk:MrDolomite/Sandbox
User_talk:MrDolomite/Sandbox
[MW1.7+] FULLPAGENAME in its TALKSPACE
{{SUBJECTPAGENAME}}
{{SUBJECTPAGENAMEE}}
User:MrDolomite/Sandbox
User:MrDolomite/Sandbox
[MW1.7+] FULLPAGENAME in its SUBJECTSPACE
{{ARTICLEPAGENAME}}
{{ARTICLEPAGENAMEE}}
User:MrDolomite/Sandbox
User:MrDolomite/Sandbox
[MW1.7+] An alias for SUBJECTPAGENAME(E)
{{REVISIONID}} 6986 [MW1.5+] The unique identifying number of a page, see Help:Diff.
{{SITENAME}} MidrangeWiki Value of Template:H:mwg.
{{SERVER}} https://wiki.midrange.com Value of Template:H:mwg
{{SCRIPTPATH}} [MW1.5+] Template:H:mwg
{{SERVERNAME}} wiki.midrange.com [MW1.5+] Template:H:mwg

Namespaces

Variables Alternate syntax Name, linked to list of all pages Nr. of pages Notes
{{ns:-2}} {{ns:Media}} "Media"   pseudo-namespace for images and other files themselves, as opposed to the image description pages; see also below
{{ns:-1}} {{ns:Special}} "Special"   pseudo-namespace for special pages (list: Special:Specialpages)
{{ns:-0}} {{ns:Main}} main Template:PAGESINNS:0 main namespace, no prefix, or optionally a colon (this is needed when using the page as template)
{{ns:1}} {{ns:Talk}} Talk Template:PAGESINNS:1 see Help:Talk page for this and the following odd-numbered namespaces
{{ns:2}} {{ns:User}} User Template:PAGESINNS:2 logged-in users (list: Special:Listusers) have a user homepage User:username (linked to by the system from user names in lists of edits, e.g. on page histories, and from signatures on talk pages); this and subpages of it can be used to present oneself, for project-related bookmarks, and for drafts, tests, and other working material. One can put here material to give oneself one-step access to it from any page in the same project, and one can put here links to give oneself two-step access to the link targets from any page in the same project as the user page. For users who do not log in, the same applies, with the IP as username. Dynamic IPs are a complication.
{{ns:3}} {{ns:User_talk}} User talk Template:PAGESINNS:3  
{{ns:4}} {{ns:Project}} MidrangeWiki Template:PAGESINNS:4 the project namespace for matters about the project, such as guidelines and discussions; see also the Help namespace
{{ns:5}} {{ns:Project_talk}} MidrangeWiki talk Template:PAGESINNS:5  
{{ns:6}} {{ns:Image}} File Template:PAGESINNS:6 images and other uploaded files, with image description pages (list: Special:Imagelist)
{{ns:7}} {{ns:Image_talk}} File talk Template:PAGESINNS:7  
{{ns:8}} {{ns:MediaWiki}} MediaWiki Template:PAGESINNS:8 system messages (list: Special:Allmessages), editable by users, or if protected, by sysops
{{ns:9}} {{ns:MediaWiki_talk}} MediaWiki talk Template:PAGESINNS:9  
{{ns:10}} {{ns:Template}} Template Template:PAGESINNS:10 the default namespace for templates: the wikitext code {{name }} refers to and includes the page Template:name
{{ns:11}} {{ns:Template_talk}} Template talk Template:PAGESINNS:11  
{{ns:12}} {{ns:Help}} Help Template:PAGESINNS:12 typically used for the MediaWiki User's Guide, with the wikitext a frequently refreshed copy of the master version on Meta-Wikipedia, but with project-specific templates
{{ns:13}} {{ns:Help_talk}} Help talk Template:PAGESINNS:13  
{{ns:14}} {{ns:Category}} Category Template:PAGESINNS:14 each page (list: Special:Categories) represents a category of pages, with each category page displaying a list of pages in that category and optional additional text.
{{ns:15}} {{ns:Category_talk}} Category talk Template:PAGESINNS:15  
{{ns:16}} {{ns:16}} [1] Template:PAGESINNS:16