Talk:WikiDB/Tutorial

From TestWiki
< Talk:WikiDB
Revision as of 06:56, 24 July 2008 by Jimmyyami (Talk | contribs) (Work with Parsar function ?)

Jump to: navigation, search

Data types

Could you provide a list with all data types?

  • Good idea. I have added the page WikiDB/Data types, which covers the currently implemented core types. WikiDB includes an API for adding your own data types, e.g. you could add a URL data type which only accepts valid URLs, and automatically displays them as links. --HappyDog 18:39, 1 December 2006 (GMT)

Templated queries

I can declare data with a template, is there any way to pull data into a template?

Something like: <repeat table="Companies" template="Infobox company"></repeat>

It would look just like

{{Infobox company |name=Microsoft |founded=1492 |revenue=$8 }}

<data table="Companies" template="Infobox company"> name=Microsoft founded=1492 revenue=$8 </data>

Hi - I'm not sure I quite understand your question. Could you please try rephrasing it? Cheers --HappyDog 16:31, 10 July 2008 (BST)

Can we use it within Template??......

I ever tried to use this extension in dynamic... but always shows error message no matter within or not within Templates.

<data table="{{{something}}}"> </data>

how can I perform it? Please help!!!

In the current version, it extracts tags from the page before templates are expanded. I'm pretty sure I've fixed this in my local copy, but unfortunately my main PC died recently and I haven't had time to put the hard disks into a new PC yet (I know they're OK, so nothing's been lost - just need to find time to do it!). Once I do I'll check this and update the site with the latest version, which will hopefully fix the problem.
If you register on this site, set up your preferences to allow e-mail notification and add the main WikiDB page to your watchlist then you will get an e-mail when the update comes on-line.
Cheers --HappyDog 14:04, 23 July 2008 (BST)

Work with Parsar function ?

This is what I'm trying to do...

Here is Template: Template:Something Input={{{input}}}


Here is page: <repeat table="Abc" template="Something"> {{#expr: {{{a}}} * {{{input}}} }} </repeat>

But I got error message only.

Work with Parsar function ?

This is what I'm trying to do...

Here is Template:
Template:Something
Input={{{input}}}


Here is page:
<repeat table="Abc" template="Something">
{{#expr: {{{a}}} * {{{input}}} }}
</repeat>

But I got error message only. It's real an great extension, HappyDog  :)