OK, embed code generator is now in the trunk, feel free to update.
Let me know if you'll notice any problems with it.

Thank you,

        Sergey


On Mon, Apr 6, 2009 at 11:46 PM, Sergey Chernyshev <
sergey.chernys...@gmail.com> wrote:

> I didn't see any complaints about this functionality so I'll go ahead and
> check it into the repository.
>
> Thank you,
>
>         Sergey
>
>
> --
> Sergey Chernyshev
> http://www.sergeychernyshev.com/
>
>
> On Fri, Mar 27, 2009 at 3:07 PM, Sergey Chernyshev <
> sergey.chernys...@gmail.com> wrote:
>
>> As promised, I added "Show embed code" link to Special:Ask page:
>>
>> http://www.techpresentations.org/Special:Ask?title=Special%3AAsk&q=[[Category%3ARFC]]&po=%3FRFC+date%0D%0A%3FRFC+title%0D%0A%3FRFC+author%0D%0A%3FRFC+document+URL%0D%0A&eq=yes&p=format%3Dbroadtable&eq=yes<http://www.techpresentations.org/Special:Ask?title=Special%3AAsk&q=%5B%5BCategory%3ARFC%5D%5D&po=%3FRFC+date%0D%0A%3FRFC+title%0D%0A%3FRFC+author%0D%0A%3FRFC+document+URL%0D%0A&eq=yes&p=format%3Dbroadtable&eq=yes>
>>
>> When clicked, it shows the code for {{#ask:...}} parser function that you
>> can use to embed current results (including format) into a page anywhere on
>> your wiki.
>>
>> I think that together with format selector, it'll help people create more
>> data-driven wikis. So if nobody objects, I'll check it in for all to enjoy.
>> Patch can be seen here:
>> http://www.techpresentations.org/SMW_Ask_embed.patch /
>> http://www.techpresentations.org/SMW_Ask_embed.patch.html (colorized)
>>
>> Also, during development, I noticed a few bugs or missing features of
>> Special:Ask page:
>>
>>    - Not all formatters work on Special:Ask, for example googlemap,
>>    debug, count and calendar don't work or display something different from
>>    what I'd expect them to do
>>    - count and order parameters always get set in the code so even when
>>    they are not defined, in the embed code they appear with empty values. I
>>    decided not to filter out parameters with empty values as some parameters
>>    might actually be meaningful. It's possible that count and order are just
>>    not initialized properly when $wgRequest->getVal( 'order' ) and
>>    $wgRequest->getText( 'sort' ) are used unconditionally
>>    - there is no way to display any meaningful title for a formatter or
>>    know whenever to include one in the list or not (debug) - current 
>> formatter
>>    classes are limited in this sense
>>    - there is no way to configure formatter on Special:Ask page except
>>    for just asking user for a list of additional attributes similar how
>>    printouts are asked for. This is limiting the use of formatting feature 
>> and
>>    renders some formatters completely useless (template, for example). I 
>> think
>>    it's worth looking into expanding SMWResultPrinter to carry more metadata
>>    and maybe form definition for accepted parameters.
>>
>> I hope to have time in the future to address some of these, but don't know
>> when I'll have more time for it.
>>
>> Markus, Denny, let me know if it's a good idea to add these into Bugzilla
>> to keep track of them.
>>
>> BTW, is SMW participating in GSoC?
>>
>> Thank you,
>>
>>         Sergey
>>
>>
>> --
>> Sergey Chernyshev
>> http://www.sergeychernyshev.com/
>>
>
>
------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Semediawiki-devel mailing list
Semediawiki-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/semediawiki-devel

Reply via email to