On Wed, Nov 18, 2009 at 11:01 PM, Jeremy <[email protected]> wrote:

>
>
> On Nov 18, 4:17 pm, Jan Schoonderbeek <[email protected]> wrote:
> > On Wed, Nov 18, 2009 at 6:43 PM, Jeremy <[email protected]>
> wrote:
> >
> > > On Nov 18, 11:07 am, Ralf Schmitt <[email protected]> wrote:
> [snip]
> >
> > Ralf, if you've already declared the following not possible, then my
> > apologies for not understanding this stuff properly.
> >
> > It looks to me like a possible solution to the problem of mwlib not
> > interpreting things like DPL and SMW might be the upcoming MW function
> > "expand templates", found e.g. athttp://
> www.mediawiki.org/wiki/Special:ExpandTemplates
> > I could imagine the following construction (while knowing zilch about how
> > mwlib/Collection actually operate):
> > * I tell Collection that I want to render page Somepage
> > * Collection fetches the wikitext at Somepage
> > * Collection visits Special:ExpandTemplates on the originating wiki,
> feeds
> > the location Somepage and the fetched page content, and virtually presses
> OK
> > * Collection harvests the resulting expanded text, which now contains the
> > answers to all queries, expanded templates etc., and feeds ''that'' into
> > mwlib
> > * mwlib does not find any awkward {{#ask: or {{#dpl: code, but clean
> > freshly-generated wikitext where the queries originally were. Rendering
> goes
> > like usual.
> > Of course this also depends on people using MW1.16, as 1.15.x do not have
> > Expand Templates...
> >
> > --
> > Jan S.
> > "I'm a stream of noughts and crosses in your R.A.M."- Hide quoted text -
> >
> > - Show quoted text -
>
> actually expand templates is an extension available to versions prior
> to 1.16, i currently have it installed. how will mwlib access it,
> through the mw api?
>
> --
>
> Hmmm I didn't notice that expand template was a separate extension; thanks
Jeremy, I'll be doing some experimenting this weekend to see if it correctly
expands Semantic MediaWiki syntax! :-)

I don't know how mwlib would access the extension; I only recognize
technical possibilities - my programming skillz are currently limited to
bash scripting (I don't even know how to spell PHP).

I could see someone modifying the ExpandTemplates extension so as to be
machine-addressable, or adding code to Collection to be able to recognize
and use the HTML pages from ExpandTemplates, and fetching the processed
output from it. I'd be happy to help testing and documenting, but
programming for MW or its extensions is way out of my league :-(

-- 
Jan S.
"I'm a stream of noughts and crosses in your R.A.M."

--

You received this message because you are subscribed to the Google Groups 
"mwlib" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at http://groups.google.com/group/mwlib?hl=.


Reply via email to