RECOUP/site/Help/Wiki Configuration: Difference between revisions

From OER in Education
< RECOUP‎ | site
m (→‎Mirrors: moved note about troublesome characters)
m (1 revision: Import and update from manual.recoup.educ.cam.ac.uk, CC BY-NC-SA - RECOUP)
 
(63 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{RECOUP_header|Help:Wiki_Configuration}}</noinclude>This will be removed from the front page eventually, and only appear in the sidebar, and on the [[Administrator Information]] page.
<noinclude>{{RECOUP_header|Help:Wiki_Configuration}}</noinclude>
__TOC__


Edit the left side menu: [[Mediawiki:Sidebar]]
= Wiki configuation: within wiki itself (via sysop) - Changing the overall wiki appearance=


Consult the [http://meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.
If you have sysop access to the wiki, you can easily change these settings.
* [http://www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]
* [http://www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]
* [http://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]


= Mirrors =
== The Side bar menu ==


* 'RECOUP web site style' view of this content (as live mirror): http://www.ict4e.net/mirror_recoup/site/index.php (currently yslow grade D, ~ 57K for a small page)
Edit the left 'navigation' sidebar: [[Mediawiki:Sidebar|Mediawiki:Sidebar]]
* plain style (extra small!) http://www.ict4e.net/mirror_recoup/index.php (currently yslow grade A, ~ 14K for a small page)
* For comparison, the same page on the wiki itself has yslow grade F, ~ 85K.


Troublesome characters: The following high-ascii characters don't work well for the mirroring process, and have been fixed
== Images used in layout ==
* ‘single quotes’ (use ' instead)
* dash – dash (use - instead)
* “double quotes” (use " instead)


= Templates =
The top left logo: [[:Image:Recoup trans 150.png|:Image:Recoup trans 150.png]]
Edit templates: [[Template:Header]] [[Template:Vbar]] [[Template:HeadNavigation]]
[[Template:SessionTitle]]
[[Template:longheader]]


Overrides: [[Template:PrintHeader]] [[Template:PrintSessionTitle]]
The background image: [[:Image:Headbg_blue.png|:Image:Headbg_blue.png]]


[[Template:box]]
== Changing page appearances: Templates ==


== Template Preview: [[Template:box]], cf. also [[Template:box/example]] ==
See [[RECOUP/site/Help/Templates|Help:Templates]]. Templates are also listed in the [[:Category:Templates|:Category:Templates]].


This template should be used for highlighting participant comments.
== Additional Javascript and css ==


{{box
See [[RECOUP/site/MediaWiki/Common.js|MediaWiki:Common.js]] and [[RECOUP/site/MediaWiki/Common.css|MediaWiki:Common.css]].
|text=ABC
* 1
* 2
* 3
}}


== Template Preview: [[Template:comment]] ==
Modifications of [[RECOUP/site/MediaWiki/Common.css|MediaWiki:Common.css]]:
* Hide the page titles for manual pages. When changing or removing page title of manual pages, the css needs to be adjusted to keep the page title hidden.


Usage: This template should be used to make longer comments and discussion on main manual pages visible.
Modifications of [[RECOUP/site/MediaWiki/Common.js|MediaWiki:Common.js]]:
* Added extra buttons to edit menu.


{{comment
Modifications to [[RECOUP/site/MediaWiki/Monobook.css|MediaWiki:Monobook.css]]:
|text=ABC
* background: #FEFAF2 url(../../images/a/a6/Headbg.jpg) 0 0 no-repeat;
* 1
* 2
* 3
}}


To see all links to this template, see
= Wiki configuration: server environment =
[[Special:Whatlinkshere/Template:comment]]. This is a handy way of finding all comments and removing them from main pages.


== Template Preview: [[Template:longheader]] ==
Quick facts.
* For details of this wiki install, see installed components, see [[Special:Version|Special:Version]].
* A number of extensions have been added, see below.
* The server site on a Cambridge University Computing Service 'Managed Web Server' called 'recoup'.
* Because the server is a UCS Managed Web Server, the DNS entry is also managed by the UCS. They set up manual.recoup.educ.cam.ac.uk as a subdomain, and the "www.manual" version has also been made to work, in case the url is mistyped.
* A mailing webmaster mailing list has been set up on the UCS mailing lists.
* A google analytics account has been set up.


This is the main page header with title and toc.
= Extensions and modifications to the source code =


{{longheader
{{fullurl:Special:Userlogin|returnto={{FULLPAGENAME}}}}
|title = test
}}


It uses the templates shown in the following subsections.
== Customisation of LocalSettings.php ==
=== Template Preview: [[Template:header]] ===


{{header}}
# Wiki appearance:
$wgLogo = "http://www.ict4e.net/wiki_source/images/d/dd/Recoup_logo_countries.jpg";
$wgLogo = "http://new-www.mediaplayer.group.cam.ac.uk/wiki/images/4/49/Recoup_trans_150.png";
$wgFavicon = "/wiki/favicon.ico";


=== Template Preview: [[Template:HeadNavigation]] ===
# Add subpages to NS_MAIN:
$wgNamespacesWithSubpages[NS_MAIN] = true;


{{HeadNavigation}}
# Custom written file-size extension:
require_once("extensions/FileSize.php");


=== Template Preview: [[Template:SessionTitle]] ===
# Google Analytics Extension:
require_once( "$IP/extensions/googleAnalytics/googleAnalytics.php" );
$wgGoogleAnalyticsAccount = "UA-5575628-1";
# Optional Variables (both default to true)
$wgGoogleAnalyticsIgnoreSysops = false;
$wgGoogleAnalyticsIgnoreBots = false;


{{SessionTitle
# While testing, stop caching:
|title = test
$wgMainCacheType = CACHE_NONE;
}}
$wgMessageCacheType = CACHE_NONE;
$wgParserCacheType = CACHE_NONE;
$wgCachePages = false;


= Additional Javascript =
# User settings:
$wgEmailConfirmToEdit = true;
# http://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions
$wgDefaultUserOptions['numberheadings' ] = 1;
$wgDefaultUserOptions['enotifwatchlistpages'] = 1;
$wgDefaultUserOptions['enotifusertalkpages'] = 1;
$wgDefaultUserOptions['enotifminoredits'] = 1;
$wgDefaultUserOptions['justify'] = 1;
$wgDefaultUserOptions['imagesize'] = 0;
$wgDefaultUserOptions['thumbsize'] = 0;


See [[MediaWiki:Common.js]].
 
 
== MonoBook.php ==
 
These modifications were only needed in v.13.0. They are no longer used in 1.14.0.
 
foreach($this->data['content_actions'] as $key => $tab)
    if($this->data['loggedin']==1 || preg_match('/^nstab\-/',$key) || $key == "talk") {
 
foreach($this->data['personal_urls'] as $key => $item)
    if($this->data['loggedin']==1 || ($key != 'anontalk' && $key != 'anonuserpage') ) {
 
== Extension: FileSize ==
 
See http://www.ict4e.net/wiki/Mediawiki_file_size for examples and information.
<noinclude>{{RECOUP_footer|Help:Wiki_Configuration}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude>
<noinclude>{{RECOUP_footer|Help:Wiki_Configuration}}</noinclude><noinclude>[[Category:RECOUP]]</noinclude>

Latest revision as of 12:16, 5 February 2015

Wiki configuation: within wiki itself (via sysop) - Changing the overall wiki appearance

If you have sysop access to the wiki, you can easily change these settings.

The Side bar menu

Edit the left 'navigation' sidebar: Mediawiki:Sidebar

Images used in layout

The top left logo: :Image:Recoup trans 150.png

The background image: :Image:Headbg_blue.png

Changing page appearances: Templates

See Help:Templates. Templates are also listed in the :Category:Templates.

Additional Javascript and css

See MediaWiki:Common.js and MediaWiki:Common.css.

Modifications of MediaWiki:Common.css:

  • Hide the page titles for manual pages. When changing or removing page title of manual pages, the css needs to be adjusted to keep the page title hidden.

Modifications of MediaWiki:Common.js:

  • Added extra buttons to edit menu.

Modifications to MediaWiki:Monobook.css:

  • background: #FEFAF2 url(../../images/a/a6/Headbg.jpg) 0 0 no-repeat;

Wiki configuration: server environment

Quick facts.

  • For details of this wiki install, see installed components, see Special:Version.
  • A number of extensions have been added, see below.
  • The server site on a Cambridge University Computing Service 'Managed Web Server' called 'recoup'.
  • Because the server is a UCS Managed Web Server, the DNS entry is also managed by the UCS. They set up manual.recoup.educ.cam.ac.uk as a subdomain, and the "www.manual" version has also been made to work, in case the url is mistyped.
  • A mailing webmaster mailing list has been set up on the UCS mailing lists.
  • A google analytics account has been set up.

Extensions and modifications to the source code

https://oer.opendeved.net/index.php?title=Special:Userlogin&returnto=RECOUP/site/Help/Wiki Configuration

Customisation of LocalSettings.php

# Wiki appearance:
$wgLogo = "http://www.ict4e.net/wiki_source/images/d/dd/Recoup_logo_countries.jpg";
$wgLogo = "http://new-www.mediaplayer.group.cam.ac.uk/wiki/images/4/49/Recoup_trans_150.png";
$wgFavicon = "/wiki/favicon.ico";
# Add subpages to NS_MAIN:
$wgNamespacesWithSubpages[NS_MAIN] = true;
# Custom written file-size extension:
require_once("extensions/FileSize.php");
# Google Analytics Extension:
require_once( "$IP/extensions/googleAnalytics/googleAnalytics.php" );
$wgGoogleAnalyticsAccount = "UA-5575628-1";
# Optional Variables (both default to true)
$wgGoogleAnalyticsIgnoreSysops = false;
$wgGoogleAnalyticsIgnoreBots = false;
# While testing, stop caching:
$wgMainCacheType = CACHE_NONE;
$wgMessageCacheType = CACHE_NONE;
$wgParserCacheType = CACHE_NONE;
$wgCachePages = false;
# User settings:
$wgEmailConfirmToEdit = true;
# http://www.mediawiki.org/wiki/Manual:$wgDefaultUserOptions
$wgDefaultUserOptions['numberheadings' ] = 1;
$wgDefaultUserOptions['enotifwatchlistpages'] = 1;
$wgDefaultUserOptions['enotifusertalkpages'] = 1;
$wgDefaultUserOptions['enotifminoredits'] = 1;
$wgDefaultUserOptions['justify'] = 1;
$wgDefaultUserOptions['imagesize'] = 0;
$wgDefaultUserOptions['thumbsize'] = 0;


MonoBook.php

These modifications were only needed in v.13.0. They are no longer used in 1.14.0.

foreach($this->data['content_actions'] as $key => $tab) 
   if($this->data['loggedin']==1 || preg_match('/^nstab\-/',$key) || $key == "talk") {
foreach($this->data['personal_urls'] as $key => $item) 
   if($this->data['loggedin']==1 || ($key != 'anontalk' && $key != 'anonuserpage') ) {

Extension: FileSize

See http://www.ict4e.net/wiki/Mediawiki_file_size for examples and information.


Cc-by-nc-sa-narrow.png Singal, N., and Jeffery, R. (2008). Qualitative Research Skills Workshop: A Facilitator's Reference Manual, http://oer.educ.cam.ac.uk/wiki/RECOUP, Cambridge: RECOUP (Research Consortium on Educational Outcomes and Poverty, http://recoup.educ.cam.ac.uk/). CC BY-NC-SA 4.0. (original page)