Difference between revisions of "Talk:WikiDB/Tutorial"
From TestWiki
(Templated queries) |
(→Templated queries: not sure I understood...) |
||
Line 24: | Line 24: | ||
revenue=$8 | revenue=$8 | ||
</data></nowiki> | </data></nowiki> | ||
+ | |||
+ | : Hi - I'm not sure I quite understand your question. Could you please try rephrasing it? Cheers --[[User:HappyDog|HappyDog]] 16:31, 10 July 2008 (BST) |
Revision as of 16:31, 10 July 2008
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)