User talk:WikITSysop


From WikIT
Jump to: navigation, search

Table formatting: Note for WikIT editors

The class "wikitable" was working fine for a while, then suddenly stopped - the borders disappeared and it had a white background. I never found out why.

Class definitions for this are normally placed in MediaWiki:common.css. I put the definitions from http://www.mediawiki.org/wiki/MediaWiki:Common.css there. I also tried the definitions from http://en.wikipedia.org/wiki/MediaWiki:Common.css but neither affected the format of the tables correctly.

I eventually made tables format correctly by adding the definitions set out below to the end of ../WikIT/skins/common/shared.css


/* wikitable/prettytable class for skinning normal tables */
table.wikitable,
table.prettytable {
   margin: 1em 1em 1em 0;
   background: #f9f9f9;
   border: 1px #aaa solid;
   border-collapse: collapse;
}
.wikitable th, .wikitable td,
.prettytable th, .prettytable td {
   border: 1px #aaa solid;
   padding: 0.2em;
}
.wikitable th,
.prettytable th {
   background: #f2f2f2;
   text-align: center;
}
.wikitable caption,
.prettytable caption {
   font-weight: bold;
}

wikEd installation

Below, I list the requirements for such a case and against them what I have done.  Can you give any hints as to why this may not be working please?

$wgAllowUserJs = true; (per-user installation) and/or $wgUseSiteJs = true; (for all installation) in LocalSettings.php
--------------------------------------------------
cut and posted from my LocalSettings:
$wgUseSiteJs = true; 
$wgAllowUserJs = true;

memory_limit = 32M in php.ini
--------------------------------------------------
I don't get the error mentioned so have done nothing about this.

Copy the whole wikEd program code from the page wikEd.js to the page wikEd.js on your wiki
--------------------------------------------------
I have put it here: 
/index.php?title=MediaWiki:WikEd.js

I won't reproduce it all, but it starts
// <source lang="JavaScript">

if (typeof(wikEd) == 'undefined') { window.wikEd = {}; }

// version info
wikEd.programVersion = '0.9.99';
wikEd.programDate    = 'May 08, 2011';

/*

Program description:
.............
and goes through 16361 lines to

E76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC'.replace(/(\w{4})/g, '\\u$1');

	return;
};

// call startup
wikEd.Startup();

// </source>



Copy the wikEd version page from wikEd current version to the page wikEd current version on your wiki
--------------------------------------------------
I have put it here: 
/index.php?title=MediaWiki:WikEd_current_version

It contains this:
0.9.99 (May 08, 2011)<noinclude>{{User:Cacycle/wikEd template}}
This is the current version number and release date of '''[[User:Cacycle/wikEd|wikEd]]''', a full-featured in-browser text editor that adds enhanced text processing functions to Wikipedia and other MediaWiki edit pages.

This page is used for the script's auto-update mechanism and as a Wikipedia template.

</noinclude>

but I understand that will only be useful if the intranet can be connected to the Internet.

Copy the wikEd help page from wikEd help to the page wikEd help on your wiki
--------------------------------------------------
/index.php?title=MediaWiki:WikEd_help

693 lines, starts with this:
This is the help page for '''[[User:Cacycle/wikEd|wikEd]]''', a full-featured in-browser text editor that adds enhanced text processing functions to Wikipedia and other MediaWiki edit pages. 

.....

<small>Please post bug reports or feature requests to the [[User_talk:Cacycle/wikEd|'''wikEd''' discussion page]].</small>

=== Notes ===
{{reflist}}
[[fr:Utilisateur:Leag/wikEd_aide]]
[[hu:Wikipédia:WikEd/Segítség]]
[[it:Wikipedia:Monobook.js/WikEd/Manuale]]
[[ja:Help:wikEd]]
[[ko:????:??/wikEd/???]]
[[pt:Wikipedia:Software/Scripts/wikEd/ajuda]]
[[scn:Aiutu:WikEd]]

{{INDEX}}


Copy the whole diff program code from the page diff.js to the page diff.js on your wiki
--------------------------------------------------
/index.php?title=MediaWiki:Diff.js
1145 lines
// <source lang="JavaScript">

/*

Name:    wDiff.js
Version: 0.9.9 (October 10, 2010)
Info:    http://en.wikipedia.org/wiki/User:Cacycle/diff
Code:    http://en.wikipedia.org/wiki/User:Cacycle/diff.js

JavaScript diff algorithm by [[en:User:Cacycle]] (http://en.wikipedia.org/wiki/User_talk:Cacycle).

..........

// convert to html linebreaks
	outText = outText.replace(/\n/g, '<br />');

	return(outText);
};

// </source>



Copy the whole InstaView program code from the page instaview.js to the page instaview.js on your wiki
--------------------------------------------------
/index.php?title=MediaWiki:Instaview.js

989 lines from 
/* <pre><nowiki>
This is a copy of InstaView for use in other applications like [[User:Cacycle/wikEd|wikEd]].

Changes made:
	Fixed code duplication, fixed "doubled article name" bug in links. Cacycle 00:56, 9 September 2007 (UTC)
	The "Script to embed InstaView in MediaWiki's edit page" has been commented out
	added: // get values from MediaWiki global variables (Cacycle)

Installation:
..............

/*
 * Bitwise rotate a 32-bit number to the left.
 */
function bit_rol(num, cnt)
{
  return (num << cnt) | (num >>> (32 - cnt));
}


Optionally, copy the wikEd version page from Wikipedia:AutoWikiBrowser/Typos to the page AutoWikiBrowser typos on your wiki
--------------------------------------------------
Not done

Copy the respective translation page (see User:Cacycle/wikEd_international) to the page wikEd_translation.js on your wiki if needed
--------------------------------------------------
Not done

Download all wikEd images. Upload the images:
--------------------------------------------------
Copied these to http://www.informationtamers.com/WikIT/wikEd_images  There are 89 images.


Decide where to save the installation code on your wiki:
If you want to load wikEd by default for everybody, then save the installation code to the page MediaWiki:Common.js on your wiki
--------------------------------------------------


If you want to load wikEd on a per-user basis, then save the installation code to the template Template:wikEd — users can then install wikEd simply by adding {{subst:wikEd}} to their User:USERNAME/monobook.js page.
--------------------------------------------------
Not done

Save one of the two following installation codes to that place, depending on how you have uploaded the images:
This installation code is for images in one single directory:
--------------------------------------------------
Saved this here:
index.php?title=MediaWiki:Common.js

/* Any JavaScript here will be loaded for all users on every page load. */

// path to images
var wikEdUseLocalImages = true;
var wikEdImagePathLocal = 'http://www.informationtamers.com/WikIT/wikEd_images/';

// diff script URL
var wikEdDiffScriptSrc = 'http://www.informationtamers.com/WikIT/index.php?title=MediaWiki:diff.js&action=raw&ctype=text/javascript';

// InstaView script URL
var wikEdInstaViewSrc = 'http://www.informationtamers.com/WikIT/index.php?title=MediaWiki:instaview.js&action=raw&ctype=text/javascript';

// help page link (if you do not host your own translation)
var wikEdText = {
  'wikEdHelpPageLink': ' | <a href="http://www.informationtamers.com/WikIT/index.php?title=wikEd_help" target="helpwindow">wikEd help</a>';
}

// auto update: version url (Ajax)
var wikEdAutoUpdateUrl = 'http://www.informationtamers.com/WikIT/index.php?title=wikEd_current_version&action=raw&maxage=0';

// install [http://en.wikipedia.org/wiki/User:Cacycle/wikEd] in-browser text editor
 document.write('<script type="text/javascript" src="'
 + 'http://www.informationtamers.com/WikIT/index.php?title=MediaWiki:wikEd.js'
 + '&action=raw&ctype=text/javascript"></' + 'script>');