mNo edit summary
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''wikEd''' is an editing tool for MediaWiki.  
'''In brief''': Use the [http://www.appropedia.org/index.php?title=Appropedia:Wikedbox&action=edit Wikedbox] to convert formatted text to wiki markup.


It is used for:
 
* Converting formatted text to wiki markup - its most important function in Appropedia.  
'''wikEd''' is an editing tool for MediaWiki. It is used for:
* Converting formatted text to wiki markup - its most important function in Appropedia. See below for details, [[#Using wikEd to convert formatted text to wiki markup]].
* Color code HTML formatting - useful for editing a CSS sheet for example. One example is that where a color is  indicated by a number, e.g. #000 or #0000FF, that number is highlighted in the color it represents.
* Color code HTML formatting - useful for editing a CSS sheet for example. One example is that where a color is  indicated by a number, e.g. #000 or #0000FF, that number is highlighted in the color it represents.
* Providing a number of other editing tools.
* Providing a number of other editing tools.


It can be seen in action at [http://www.appropedia.org/index.php?title=Wikedbox&action=edit Wikedbox].
It can be seen in action at [http://www.appropedia.org/index.php?title=Appropedia:Wikedbox&action=edit Wikedbox]. (Keep the rich text editor switched off to be able to use wikEd)


It works in Firefox (and other Mozilla browsers).  
It works in Firefox (and other Mozilla browsers).  
Line 14: Line 15:
This is usually an essential step in [[Appropedia:Porting pages|porting pages]] from external sources.
This is usually an essential step in [[Appropedia:Porting pages|porting pages]] from external sources.


The easiest place to find wikEd is at [http://www.appropedia.org/index.php?title=Wikedbox&action=edit Wikedbox].  
The easiest place to find wikEd is at [http://www.appropedia.org/index.php?title=Appropedia:Wikedbox&action=edit Wikedbox].  


To convert content using wikEd:  
To convert content using wikEd:  
* Copy and paste the formatted text into the box at [http://www.appropedia.org/index.php?title=Wikedbox&action=edit Wikedbox]
* Copy and paste the formatted text into the box at [http://www.appropedia.org/index.php?title=Appropedia:Wikedbox&action=edit Wikedbox]
* Click the wikify button, which looks like: [[Image:WikEd wikify.png|16px|[w]]]
* Click the wikify button, which looks like: [[Image:WikEd wikify.png|16px|[w]]]
* Copy the converted wiki text ('''ctrl+a''' to select all, then '''ctrl+c''') and paste into the target page.
* Copy the converted wiki text ('''ctrl+a''' to select all, then '''ctrl+c''') and paste into the target page.
Line 26: Line 27:
** Strip out the links entirely (easiest option)
** Strip out the links entirely (easiest option)
WikEd instructions are found at [[Wikipedia:User:Cacycle/wikEd]].
WikEd instructions are found at [[Wikipedia:User:Cacycle/wikEd]].
*[http://www.gasvergleich-index.de/Nordrhein-Westfalen-NRW/Recklinghausen gasvergleich recklinghausen]
 
''Note'': it's best not to click "Save" when on the Wikedbox page, to avoid confusing others, but it doesn't matter too much. (You can also blank the page afterward, if it's been saved.)
''Note'': it's best not to click "Save" when on the Wikedbox page, to avoid confusing others, but it doesn't matter too much. (You can also blank the page afterward, if it's been saved.)


Line 36: Line 37:
* a way to easily convert formatted text to MediaWiki markup (by clicking the wikify button ([[Image:WikEd wikify.png|16px|[w]]]).
* a way to easily convert formatted text to MediaWiki markup (by clicking the wikify button ([[Image:WikEd wikify.png|16px|[w]]]).


To use it on one page, just click the [http://www.appropedia.org/index.php?title=Wikedbox&action=edit Wikedbox] as described above. To have it always on, rather than just on one specific page, use the following methods.
To use it on one page, just click the [http://www.appropedia.org/index.php?title=Appropedia:Wikedbox&action=edit Wikedbox] as described above. To have it always on, rather than just on one specific page, use the following methods.


=== Add to your account ===
=== Add to your account ===
Line 50: Line 51:
In the version of MediaWiki used by Wikipedia, it is available as a widget under user preferences, as well as by the previous method.
In the version of MediaWiki used by Wikipedia, it is available as a widget under user preferences, as well as by the previous method.


=== Installing on one page in a wiki ===
=== Installing on a single page in a wiki ===
 
Add this to your [[MediaWiki:Common.js]] page, as in Appropedia:


<nowiki>// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor ONLY FOR A SINGLE PAGE: [[Wikedbox]]
See [[MediaWiki:Common.js]] page and find the code beginning with:
if (wgPageName == 'Wikedbox') {
<pre>// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor ONLY FOR A SINGLE PAGE: [[Appropedia:Wikedbox]]</pre>
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript"></' + 'script>');
}</nowiki>


Thus the page [http://www.appropedia.org/index.php?title=Wikedbox&action=edit Wikedbox] is now powered by wikEd.
Copy that section of code (the comment line and several lines after it) to your own <nowiki>[[MediaWiki:Common.js]]</nowiki> page, changing the pagename to whatever page you want to use on your wiki.


To avoid confusion, choose a pagename without spaces; otherwise make sure any spaces are written as underscores in the script above.
To avoid confusion, and errors in this script, choose a pagename without spaces; otherwise make sure any spaces are written as underscores in the script above.


==Interwiki links==
==Interwiki links==


* [[mw:Extension:WikEd]]
* [[mw:Extension:WikEd]]
{{DEFAULTSORT:{{PAGENAME}}}}
 


[[Category:Appropedia site tools]]
[[Category:Appropedia site tools]]
[[Category:Porting]]
[[Category:Porting]]

Revision as of 01:47, 25 November 2014

In brief: Use the Wikedbox to convert formatted text to wiki markup.


wikEd is an editing tool for MediaWiki. It is used for:

  • Converting formatted text to wiki markup - its most important function in Appropedia. See below for details, #Using wikEd to convert formatted text to wiki markup.
  • Color code HTML formatting - useful for editing a CSS sheet for example. One example is that where a color is indicated by a number, e.g. #000 or #0000FF, that number is highlighted in the color it represents.
  • Providing a number of other editing tools.

It can be seen in action at Wikedbox. (Keep the rich text editor switched off to be able to use wikEd)

It works in Firefox (and other Mozilla browsers).

Using wikEd to convert formatted text to wiki markup

This is usually an essential step in porting pages from external sources.

The easiest place to find wikEd is at Wikedbox.

To convert content using wikEd:

  • Copy and paste the formatted text into the box at Wikedbox
  • Click the wikify button, which looks like: [w]
  • Copy the converted wiki text (ctrl+a to select all, then ctrl+c) and paste into the target page.
  • Preview and fix problems as you are able to (or save first then do the fixing).
  • Note that it works for formatted text, and not for images. The urls of images are replaced with their filenames, so you must decide what to do:
    • Upload the images & ensure the links are correct - only if the images are open licensed; or
    • Manually fix the image links to correct links to the images -where they are very relevant, but not open licensed; or
    • Strip out the links entirely (easiest option)

WikEd instructions are found at Wikipedia:User:Cacycle/wikEd.

Note: it's best not to click "Save" when on the Wikedbox page, to avoid confusing others, but it doesn't matter too much. (You can also blank the page afterward, if it's been saved.)

You can use wikEd to port pages and keep their format. This works for Word documents and HTML pages, and probably many other standard formats. However, it does not yet work for , so PDF files must be converted to XML or HTML first (see Help:Porting content from PDF format) then converted again with wikEd.

How to install

It can be added to the individual user's account, to give:

  • a range of extra editing options and shortcuts.
  • a way to easily convert formatted text to MediaWiki markup (by clicking the wikify button ([w]).

To use it on one page, just click the Wikedbox as described above. To have it always on, rather than just on one specific page, use the following methods.

Add to your account

An example is found at: http://www.appropedia.org/index.php?title=User:Chriswaterguy/monobook.js&oldid=33334

You can copy the text in that page to your own monobook.js page, do a hard refresh to clear your browser's cache (e.g. ctrl+F5?) and you should have the new editing tools above the edit box.

More complete instructions are found at Wikipedia:User:Cacycle/wikEd installation.

On Wikipedia

In the version of MediaWiki used by Wikipedia, it is available as a widget under user preferences, as well as by the previous method.

Installing on a single page in a wiki

See MediaWiki:Common.js page and find the code beginning with:

// install [[Wikipedia:User:Cacycle/wikEd]] in-browser text editor ONLY FOR A SINGLE PAGE: [[Appropedia:Wikedbox]]

Copy that section of code (the comment line and several lines after it) to your own [[MediaWiki:Common.js]] page, changing the pagename to whatever page you want to use on your wiki.

To avoid confusion, and errors in this script, choose a pagename without spaces; otherwise make sure any spaces are written as underscores in the script above.

Interwiki links

Cookies help us deliver our services. By using our services, you agree to our use of cookies.