© 2015 X2Engine Inc.
Difference between revisions of "Wiki Usage:For administrators"
From X2Engine
X2WikiAdmin (talk | contribs) (Created page with ";Edit the sidebar : Search for Mediawiki:Sidebar and you'll be redirected to a page containing the sidebar's content, which you may edit. ;Create a URL shorthand for linking t...") |
X2WikiAdmin (talk | contribs) |
||
Line 1: | Line 1: | ||
;Edit the sidebar | ;Edit the sidebar | ||
− | : | + | : [[Mediawiki:Sidebar]] |
+ | ;Edit the site notice (the text displayed above the content of every page) | ||
+ | : [[Mediawiki:Sitenotice]] | ||
;Create a URL shorthand for linking to another site | ;Create a URL shorthand for linking to another site | ||
: 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> | : 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> | ||
Line 9: | Line 11: | ||
$this->html( 'headelement' ); | $this->html( 'headelement' ); | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | ;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. |
Revision as of 18:21, 13 September 2012
- Edit the sidebar
- Mediawiki:Sidebar
- Edit the site notice (the text displayed above the content of every page)
- Mediawiki:Sitenotice
- Create a URL shorthand for linking to another site
- 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: Then, a link to the "about" page:
INSERT INTO interwiki (iw_prefix, iw_url, iw_local, iw_trans) VALUES ("x2", "http://www.x2engine.com/$1", 1, 0);
[[x2:partners]]
- 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' );
- 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.