(→‎Online conversion: delete thing about images - doesn't seem any better than WikEd. Simplify, clarify.)
No edit summary
Line 1: Line 1:
''Suggestion: '''Merge''' with [[mw:Manual:Importing external content|the manual on Mediawiki.org]]''
Formatted text, including HTML, Word of OpenOffice documents, can be converted to MediaWiki markup, with formatting.  
Formatted text, including HTML, Word of OpenOffice documents, can be converted to MediaWiki markup, with formatting.  


Line 7: Line 9:
== Online conversion ==
== Online conversion ==


The best solution is often [http://toolserver.org/~diberri/cgi-bin/html2wiki/index.cgi this HTML2Wiki online converter]. Insert the url (or raw HTML), and '''remember to select MediaWiki as the Wiki dialect'''.
The best solution is often diberri's [http://toolserver.org/~diberri/cgi-bin/html2wiki/index.cgi this HTML2Wiki online converter]. Insert the url (or raw HTML), and '''remember to select MediaWiki as the Wiki dialect'''.


'''Advantages''':  
'''Advantages''':  
Line 14: Line 16:
'''Disadvantages''':  
'''Disadvantages''':  
* In the output, you have to search past the header, sidebar code etc to find the actual content you're looking for in the wiki output. (Just a little inconvenient. Do a search, ctrl+f, for the title of the page, and it should bring you to the start.)
* In the output, you have to search past the header, sidebar code etc to find the actual content you're looking for in the wiki output. (Just a little inconvenient. Do a search, ctrl+f, for the title of the page, and it should bring you to the start.)
* Image links are not converted correctly, assuming you want to convert the embedded images to links. (If you want to have the images on Appropedia, make sure the licenses are also suitably licensed However if the images are all stored in the one folder on the website.


==wikEd==
==wikEd==
Line 21: Line 24:
Otherwise install on your Appropedia account - (but does this clash with our new WYSIWYG editor? --[[User:Chriswaterguy|Chriswaterguy]] 11:05, 23 September 2009 (UTC)) you can easily copy formatted text to the edit box, hit [w] ("wikify"), and you're most of the way there.
Otherwise install on your Appropedia account - (but does this clash with our new WYSIWYG editor? --[[User:Chriswaterguy|Chriswaterguy]] 11:05, 23 September 2009 (UTC)) you can easily copy formatted text to the edit box, hit [w] ("wikify"), and you're most of the way there.


This seems to work best for HTML.{{fact}}
This seems to work well with HTML - how does it work with text pasted from various Wordprocessors? (I seem to recall having problems with this. --[[User:Chriswaterguy|Chriswaterguy]] 03:35, 28 October 2009 (UTC))
 
== Handling images in HTML2Wiki and wikEd ==
Image links are not converted correctly:
* If you want to have the actual images on the wiki page, make sure the images are also suitably licensed (sometimes the text is, but the images are not). Then upload with a suitable name, and use the same name to display it in the wiki page.
* If you want to convert the embedded images to links (a good temporary option for some wikis, especially when converting many pages):
** If the images are actually from a different domain than the content, then they should be converted correctly to links.
** If they're on the same server as the content, the links will display as <nowiki>[[Image:imagefilename.jpg]]</nowiki> (or .png...). However if the images are all stored in the one folder on the website, you can do a search and replace, ( <tt><nowiki>[[Image:</nowiki></tt> for <tt><nowiki>[http://domain.org/images/foldername/</nowiki></tt> ) either in a Wordprocessor or using the replace function in the wikEd toolbar.


==OpenOffice==
==OpenOffice==
* Open the file or copy the content in OpenOffice 2.3 or greater;
* Open the file or copy the content in OpenOffice 2.3 or greater;
* Export to MediaWiki format: File menu -> Export -> Under format type choose MediaWiki - this exports wikimarkup as a txt file.


* Export to MediaWiki format: File menu -> Export -> Under format type choose MediaWiki - this exports wikimarkup as a txt file.
(If this is inadequate (e.g. for dealing with images and references) then we have to work out some VB macro code, we will post everything we know. First need to upgrade and try out the feature. --[[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 16:52, 7 February 2008 (PST))


(If this is inadequate (e.g. for dealing with images and references) then we have worked out some VB macro code, and will post everything we know. First need to upgrade and try out the feature. --[[User:Chriswaterguy|Chriswaterguy]] &middot; <small>[[User talk:Chriswaterguy|talk]]</small> 16:52, 7 February 2008 (PST))
Update: I can't get this function to work in OOO 2.5 for Linux. --[[User:Chriswaterguy|Chriswaterguy]] 03:35, 28 October 2009 (UTC)


===Images===
===Images===
Line 34: Line 45:


==Rich text editors for the wiki==
==Rich text editors for the wiki==
In the medium to long term, [[Appropedia:Rich text editing]] (i.e. WYSIWYG or some variation on that) might make this easier. There are problems, including fears that this will lead to non-standard markup being entered, and excess use of HTML tags if they are not converted effectively.  
In the medium to long term, [[Appropedia:Rich text editing]] (i.e. WYSIWYG or some variation on that) might make this easier. There are problems, including fears that this will lead to non-standard markup being entered, and excess use of HTML tags if they are not converted effectively.  
FCKEditor is already working well on Appropedia, '''however''' it doesn't allow pasting of formatted text (probably to avoid the problems mentioned above).


==Other methods==
==Other methods==

Revision as of 03:35, 28 October 2009

Suggestion: Merge with the manual on Mediawiki.org

Formatted text, including HTML, Word of OpenOffice documents, can be converted to MediaWiki markup, with formatting.

There are a few techniques which are now being trialed. It may be that wikEd is better for HTML files and OpenOffice is better for Word/rtf files (and Word/rtf files converted from PDF).[verification needed]

If you are starting with a PDF document, it must first be converted to formatted text in another application, before it can be converted to MediaWiki: see Help:Porting PDF files to MediaWiki.

Online conversion

The best solution is often diberri's this HTML2Wiki online converter. Insert the url (or raw HTML), and remember to select MediaWiki as the Wiki dialect.

Advantages:

  • No need to set anything up

Disadvantages:

  • In the output, you have to search past the header, sidebar code etc to find the actual content you're looking for in the wiki output. (Just a little inconvenient. Do a search, ctrl+f, for the title of the page, and it should bring you to the start.)
  • Image links are not converted correctly, assuming you want to convert the embedded images to links. (If you want to have the images on Appropedia, make sure the licenses are also suitably licensed However if the images are all stored in the one folder on the website.

wikEd

Another method is to use wikEd. It may be best to install this on another wiki you only use for this purpose You must install this on the account there, then convert the content there, then paste to Appropedia. (E.g. I use Wiki Species, and a sandbox in my userspace, i.e. User:Chriswaterguy/sandbox - but I don't actually save the page there. --Chriswaterguy 11:05, 23 September 2009 (UTC))Reply[reply]

Otherwise install on your Appropedia account - (but does this clash with our new WYSIWYG editor? --Chriswaterguy 11:05, 23 September 2009 (UTC)) you can easily copy formatted text to the edit box, hit [w] ("wikify"), and you're most of the way there.Reply[reply]

This seems to work well with HTML - how does it work with text pasted from various Wordprocessors? (I seem to recall having problems with this. --Chriswaterguy 03:35, 28 October 2009 (UTC))Reply[reply]

Handling images in HTML2Wiki and wikEd

Image links are not converted correctly:

  • If you want to have the actual images on the wiki page, make sure the images are also suitably licensed (sometimes the text is, but the images are not). Then upload with a suitable name, and use the same name to display it in the wiki page.
  • If you want to convert the embedded images to links (a good temporary option for some wikis, especially when converting many pages):
    • If the images are actually from a different domain than the content, then they should be converted correctly to links.
    • If they're on the same server as the content, the links will display as [[Image:imagefilename.jpg]] (or .png...). However if the images are all stored in the one folder on the website, you can do a search and replace, ( [[Image: for [http://domain.org/images/foldername/ ) either in a Wordprocessor or using the replace function in the wikEd toolbar.

OpenOffice

  • Open the file or copy the content in OpenOffice 2.3 or greater;
  • Export to MediaWiki format: File menu -> Export -> Under format type choose MediaWiki - this exports wikimarkup as a txt file.

(If this is inadequate (e.g. for dealing with images and references) then we have to work out some VB macro code, we will post everything we know. First need to upgrade and try out the feature. --Chriswaterguy · talk 16:52, 7 February 2008 (PST))

Update: I can't get this function to work in OOO 2.5 for Linux. --Chriswaterguy 03:35, 28 October 2009 (UTC)Reply[reply]

Images

Are images saved automatically during file export from OpenOffice? Tags to indicate image location?

Rich text editors for the wiki

In the medium to long term, Appropedia:Rich text editing (i.e. WYSIWYG or some variation on that) might make this easier. There are problems, including fears that this will lead to non-standard markup being entered, and excess use of HTML tags if they are not converted effectively.

FCKEditor is already working well on Appropedia, however it doesn't allow pasting of formatted text (probably to avoid the problems mentioned above).

Other methods

These haven't been tried yet:

Interwiki links

Some may be useful:

See also

Interwiki links

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