kinyelo / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
1 stars 2 forks source link

Patch for MediaWiki rendering #327

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi

I've updated my Vosao dev environment now to bliki-core 3.0.15

In the attached patch you can find 

a) an extension activated to use the Google Chart API.
See http://code.google.com/p/gwtwiki/wiki/TagExtensions

b) an overriden method getRawWikiContent() to get the source text of Mediawiki 
templates which are stored as "Normal pages" in the content tree (are there 
better "places to store these Mediawiki templates?).
See http://en.wikipedia.org/wiki/Help:Template for the template handling

c) the isMathtranRenderer() method now always returns true and thus triggers 
the rendering of <math>...</math> tags through the http://www.mathtran.org 
websites service.

Original issue reported on code.google.com by axelclk@gmail.com on 27 Aug 2010 at 3:45

Attachments:

GoogleCodeExporter commented 9 years ago
Could you please provide wiki article example for checking new features work.

Original comment by kinyelo@gmail.com on 28 Aug 2010 at 10:13

GoogleCodeExporter commented 9 years ago
For case a)
The following "chart" tag should be rendered as a barchart through the Google 
Chart API:
>>>>>
<chart cht=bvs chs=800x300 chbh=20,1 chxt=x,y chco=76A4FB chls=2.0 
chd=t:1,2,3,6,9,13,20,28,37,49,60,72,83,92,98,100,98,92,83,72,60,49,37,28,20,13,
9,6,3,2,1 />
<<<<<

For case b)
Assuming I've created a wiki page called "name" as template with this text:
>>>>>
I am a template example, my first name is {{{firstName}}} and my last name is 
{{{lastName}}}. See the Wikipedia article 
[[en:{{{firstName}}}_{{{lastName}}}|{{{firstName}}} {{{lastName}}}]].
<<<<<

In a second wiki page which should be published I can use the "name" template 
like this:
>>>>>
A list of Wikipedia articles
* {{name |firstName=Tina|lastName=Turner}}
* {{name |firstName=Tom|lastName=Hanks}}
<<<<<

This page has some more examples for (nested) templates:
http://meta.wikimedia.org/wiki/Help:Template

For cas c)
The LaTeX formula input:
>>>>>
<math>\sin x</math>
<<<<<

should render as an image created from the mathtran.org server

Original comment by axelclk@gmail.com on 28 Aug 2010 at 6:54

GoogleCodeExporter commented 9 years ago

Original comment by kinyelo@gmail.com on 25 Sep 2010 at 9:21

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r920.

Original comment by kinyelo@gmail.com on 26 Sep 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by kinyelo@gmail.com on 26 Sep 2010 at 7:19