Extension talk:Wiki Object Model
- [History↑]
Contents
| Thread title | Replies | Last modified |
|---|---|---|
| 'Download snapshot' gives a subversion error | 1 | 10:19, 1 March 2012 |
| Does this use the MW parser internally? | 2 | 22:05, 5 February 2012 |
| 'Special Charaters' when querying template fields | 0 | 16:46, 30 November 2011 |
| Is SMW really a dep? | 1 | 08:14, 15 November 2011 |
Subversion encountered an error: svn: Working copy '/mnt/upload6/private/ExtensionDistributor/mw-snapshot/trunk/extensions' locked svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
Or is it a totally new parser built independently of the MW parser? I'm curious for sustainability reasons. I've done something similar (less extensive) in Perl, and I'm wondering weather to abandon my work and switch to WOM.
Cheers,
Sorry, this extension do not use MW parser.
WOM is targeting to parse wiki objects of wiki pages 'before rendering'.
- it is designed to have an open development framework, to make wiki objects' parser/model easy to upgrade
Hope this can help.
Thanks,
Hi,
I query a template field as follows:
api.php?action=womget&title=Alexander_Gesinn&xpath=//template[@name="Person_01_00"]/template_field[@key="Username"]
Template:
{{Person_01_00
|Username=Alex
}}
As a result I get:
<?xml version="1.0"?>
<api>
<womget result="Success">
<return>
<id15 xml:space="preserve">Username=Alex
|</id15>
</return>
</womget>
</api>
Why do I get a \n| at the end of the returned value? When I remove the CRLF in the template I still get the Pipe symbol. Is this a bug?
MW 1.16.x, WOM r104210
How come it can't work with or without SMW? Is listing SMW as a dep really correct? Cheers,
SMW is optional.
- WOM will test the wiki instance.
- If SMW extension is deployed, 'Property' object model will thus be parsed, otherwise, the 'property object' parser will cancel its work.
Thanks,