© 2015 X2Engine Inc.

Difference between revisions of "Wiki Usage:For administrators"

From X2Engine
Jump to: navigation, search
(Miscellaneous)
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
[[Category:Wiki Usage]]
 
[[Category:Wiki Usage]]
  
 +
= Editing the UI =
 
;Edit the sidebar
 
;Edit the sidebar
 
: [[Mediawiki:Sidebar]]
 
: [[Mediawiki:Sidebar]]
 
;Edit the site notice (the text displayed above the content of every page)
 
;Edit the site notice (the text displayed above the content of every page)
 
: [[Mediawiki:Sitenotice]]
 
: [[Mediawiki:Sitenotice]]
;Create a URL shorthand for linking to another site
+
;The above pages, and more, for modifying the layout and UI content
: For example, I made one to www.x2engine.com so that the "About X2Engine" in the footer could be made a link to the main X2Engine site: <syntaxhighlight lang="mysql"> INSERT INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES ("x2", "http://www.x2engine.com/$1", 1, 0);</syntaxhighlight> Then, a link to the "about" page: <pre>[[x2:partners]]</pre>
+
: [[mw:Category:Interface_messages]]
 +
iw_local, iw_trans) VALUES ("x2", "http://www.x2engine.com/$1", 1, 0);</syntaxhighlight> Then, a link to the "about" page: <pre>[[x2:partners]]</pre> For more information, see [[mw:Help:Interwiki]]
 
;Add custom HTML to the template
 
;Add custom HTML to the template
 
: Edit <TT>VectorTemplate::execute()</tt> in <tt>public_html/skins/Vector.php</tt> (a backup of this skin has been made in <tt>Backup/Vector</tt>, in case anything should go wrong). The body begins after these lines:  
 
: Edit <TT>VectorTemplate::execute()</tt> in <tt>public_html/skins/Vector.php</tt> (a backup of this skin has been made in <tt>Backup/Vector</tt>, in case anything should go wrong). The body begins after these lines:  
Line 13: Line 15:
 
                 $this->html( 'headelement' );
 
                 $this->html( 'headelement' );
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
= User Management =
 +
The following two plugins are enabled for user management:
 +
* [http://www.mediawiki.org/wiki/Extension:ConfirmAccount ConfirmAccount]
 +
* [http://www.mediawiki.org/wiki/Extension:Nuke Nuke]
 +
These special pages are of use:
 +
* [[Special:Block|Block users]]
 +
* [[Special:Nuke|Mass-delete all pages by any user]]
 +
* [[Special:ConfirmAccounts|Confirm account requests]]
 +
* [[Special:UserRights|User Rights]]
 +
 +
= Miscellaneous =
 +
;Edit global CSS for all pages
 +
: [[MediaWiki:Common.css]]
 +
;Change the syntax highlighting CSS
 +
: [[MediaWiki:Geshi.css]]
 
;Purging a cached page (i.e. if the sidebar or site notice is out of date)
 
;Purging a cached page (i.e. if the sidebar or site notice is out of date)
 
: Add "&action=purge" to the end of the page's url and re-request the page.
 
: Add "&action=purge" to the end of the page's url and re-request the page.
 
;Globally purging all cached pages and objects (more useful but more involved)
 
;Globally purging all cached pages and objects (more useful but more involved)
: Log into the server via SSH and run <tt>php Scripts/purgeCache.php</tt>
+
: Log into the server via SSH and run <tt>clearCache.sh</tt>; that should change the modification time on LocalSettings.php, which will, due how the dynamic $wgCacheEpoch variable is set, invalidate all cached pages and thus regenerate them. Said variable's declaration is at the end of the file:
 +
: <syntaxhighlight lang="php">$wgCacheEpoch = gmdate( 'YmdHis', @filemtime( __FILE__ ) );</syntaxhighlight>
 +
;Create a URL shorthand for linking to another site
 +
: For example, one has been made for www.x2engine.com so that the "About X2Engine" in the footer could be made a link to the main X2Engine site:
 +
: <syntaxhighlight lang="mysql">INSERT INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES ("x2", "http://www.x2engine.com/$1", 1, 0);</syntaxhighlight>
 +
: That interwiki entry transforms (for example) the code <pre>[[x2:partners/|About X2Engine]]</pre> into <syntaxhighlight lang="html5"><a href="http://www.x2engine.com/partners/">About X2Engine</a></syntaxhighlight>

Latest revision as of 19:23, 7 August 2014


Editing the UI

Edit the sidebar
Mediawiki:Sidebar
Edit the site notice (the text displayed above the content of every page)
Mediawiki:Sitenotice
The above pages, and more, for modifying the layout and UI content
mw:Category:Interface_messages
iw_local, iw_trans) VALUES ("x2", "http://www.x2engine.com/$1", 1, 0);</syntaxhighlight> Then, a link to the "about" page:
[[x2:partners]]
For more information, see mw:Help:Interwiki
Add custom HTML to the template
Edit VectorTemplate::execute() in public_html/skins/Vector.php (a backup of this skin has been made in Backup/Vector, in case anything should go wrong). The body begins after these lines:
                // Output HTML Page
                $this->html( 'headelement' );

User Management

The following two plugins are enabled for user management:

These special pages are of use:

Miscellaneous

Edit global CSS for all pages
MediaWiki:Common.css
Change the syntax highlighting CSS
MediaWiki:Geshi.css
Purging a cached page (i.e. if the sidebar or site notice is out of date)
Add "&action=purge" to the end of the page's url and re-request the page.
Globally purging all cached pages and objects (more useful but more involved)
Log into the server via SSH and run clearCache.sh; that should change the modification time on LocalSettings.php, which will, due how the dynamic $wgCacheEpoch variable is set, invalidate all cached pages and thus regenerate them. Said variable's declaration is at the end of the file:
$wgCacheEpoch = gmdate( 'YmdHis', @filemtime( __FILE__ ) );
Create a URL shorthand for linking to another site
For example, one has been made for www.x2engine.com so that the "About X2Engine" in the footer could be made a link to the main X2Engine site:
INSERT INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES ("x2", "http://www.x2engine.com/$1", 1, 0);
That interwiki entry transforms (for example) the code
[[x2:partners/|About X2Engine]]
into
<a href="http://www.x2engine.com/partners/">About X2Engine</a>