rehamaltamimi / gwtwiki

Automatically exported from code.google.com/p/gwtwiki
0 stars 0 forks source link

RFE: {{cite web}} ref would be great #42

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Currently with something like

<ref>{{cite web|author=John Resig
|url=http://ejohn.org/blog/versions-of-javascript |title=Versions of
JavaScript |publisher=Ejohn.org |date= |accessdate=2009-05-19}}</ref>

the result is empty:

<li id="_note-4"><b><a href="#_ref-4">&#8593;</a></b> </li>

(from http://de.wikipedia.org/wiki/JavaScript)

Original issue reported on code.google.com by ullenb...@gmail.com on 13 May 2010 at 9:19

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 14 May 2010 at 5:01

GoogleCodeExporter commented 8 years ago
JUnit test testProgrammiersprachen() for issue #42 seems to work, but rendering 
of
the complete de:JavaScript page doesn't?
Any idea what could be the cause?
http://code.google.com/p/gwtwiki/source/detail?r=1325

Original comment by axelclk@gmail.com on 16 May 2010 at 2:31

GoogleCodeExporter commented 8 years ago
The problem seems to be related to a cached template in the WikiDB.
After deleting C:\temp\WikiDB and recreating the de:JavaScript page, it now 
works
with the current SVN sources.

Original comment by axelclk@gmail.com on 16 May 2010 at 2:44

GoogleCodeExporter commented 8 years ago
My testcase was:

String[] listOfTitleStrings = { "JavaScript" };
User user = new User( "", "", "http://de.wikipedia.org/w/api.php" );
user.login();

List<Page> queryContent = user.queryContent( listOfTitleStrings );

for ( Page page : queryContent )
{
  String string = page.getCurrentContent();

  WikiModel wikiModel = new WikiModel( "http://de.wikipedia.org/wiki/${image}",
                                       "http://de.wikipedia.org/wiki/${title}" );

    String htmlStr = wikiModel.render( string );
    System.out.println( htmlStr );
  }
}

Then the result for the <ref> is not really empty but

<li id="_note-4"><a href="#_ref-4" title="">↑</a> {{cite web}}</li>

So a default macro expansion would be great.

Original comment by ullenb...@gmail.com on 16 May 2010 at 2:57

GoogleCodeExporter commented 8 years ago
Sorry, I thought you used:
info.bliki.api.creator.HTMLCreatorExample
like in this example:
http://code.google.com/p/gwtwiki/source/detail?r=1326

The example loads the templates content through the Wikipedia API and caches it 
in a
Derby database.

http://code.google.com/p/gwtwiki/wiki/MediaWikiAPISupport

Original comment by axelclk@gmail.com on 16 May 2010 at 5:49

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 27 May 2010 at 5:45

GoogleCodeExporter commented 8 years ago

Original comment by axelclk@gmail.com on 3 Jul 2012 at 5:39