Inserting statistics

Revision as of 18:13, 15 August 2013 by Gerald Chi (talk | contribs) (Gerald Chi moved page Help:Inserting Statistics to Inserting Statistics)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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,845 A variable which returns the total number of articles on the Wiki.
{{NUMBEROFFILES}} 74,493 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}} 894406 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
/index.php/%25
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.


Template:WikiDoc Sources