Help:Inserting Statistics
You don't need to be Editor-In-Chief to add or edit content to WikiDoc. You can begin to add to or edit text on this WikiDoc page by clicking on the edit button at the top of this page. Next enter or edit the information that you would like to appear here. Once you are done editing, scroll down and click the Save page button at the bottom of the page.
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}} | 72,628
| A variable which returns the total number of articles on the Wiki. |
| {{NUMBEROFFILES}} | 23,748
| 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}} | Help
| Returns the name of the namespace the current page resides in. |
| {{REVISIONID}} | 116844
| 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}} | http://wikidoc.org | Returns the domain and subdomain URL of the wiki. |
| {{SCRIPTPATH}} |
| Returns the value of $wgScriptPath in LocalSettings.php. |
| {{SERVERNAME}} | wikidoc.org
| Returns the value of $wgServerName in LocalSettings.php. |

