Inserting statistics: Difference between revisions
Jump to navigation
Jump to search
Gerald Chi (talk | contribs) m (Gerald Chi moved page Help:Inserting Statistics to Inserting Statistics) |
Gerald Chi (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
__NOTOC__ | |||
{{CMG}} | |||
==Overview== | ==Overview== | ||
If you type in the words on the left hand side of the table, the output in the middle of the table is displayed: | If you type in the words on the left hand side of the table, the output in the middle of the table is displayed: |
Revision as of 14:39, 2 September 2013
Editor-In-Chief: C. Michael Gibson, M.S., M.D. [1]
Overview
If you type in the words on the left hand side of the table, the output in the middle of the table is displayed:
Miscellaneous
Word | Usage | Explanation |
---|---|---|
{{NUMBEROFARTICLES}} | 140,986
|
A variable which returns the total number of articles on the Wiki. |
{{NUMBEROFFILES}} | 74,536
|
Returns the number of uploaded files (rows in the image table). |
#redirect | #REDIRECT [[target]] at top of source page |
Creates a redirect to another page. |
Page names, locations, and URLs
Word | Example | Explanation |
---|---|---|
{{PAGENAME}} | Inserting statistics
|
Returns the name of the current page, including all levels (Title/Subtitle/Sub-subtitle). |
{{PAGENAMEE}} | Inserting_statistics
|
More URL-friendly percent encoded special characters (rarely necessary). |
{{NAMESPACE}} |
|
Returns the name of the namespace the current page resides in. |
{{REVISIONID}} | 900906
|
Gives you the unique identifying number of the article or diff database. |
{{SITENAME}} | wikidoc
|
Returns the name of the wiki (set in LocalSettings.php). |
{{NS:}} | {{NS:4}} = wikidoc {{NS:PROJECT}} = wikidoc
|
Returns the name of a given namespace number. |
{{LOCALURL:x y}} {{LOCALURLE:%}} |
/index.php/X_y
|
Returns the local URL of a given page. The page might not exist. |
{{SERVER}} | https://www.wikidoc.org | Returns the domain and subdomain URL of the wiki. |
{{SCRIPTPATH}} |
|
Returns the value of $wgScriptPath in LocalSettings.php. |
{{SERVERNAME}} | www.wikidoc.org
|
Returns the value of $wgServerName in LocalSettings.php. |