From: Matt G. <go...@na...> - 2010-10-25 05:53:31
|
The wiki Yaron linked is one I own/run (it's closed since I don't expect very many edits generally, and I suspect I would have far more spamming going on than legitimate edits - that said, if it would be helpful to get a better look at what I've done, I can create an account for that purpose). I thought I would mention that I have things buried in layers of templates (both templates for the forms and templates for the pages) so it might not be straightforward to see what's going on from the page linked. Here are some links to the relevant Templates: http://wiki.seaknature.org/Template:TF_References (this is the template for the part of form where references are added as SIOs) http://wiki.seaknature.org/Template:SpeciesReferencesDisplay (this is the template used for displaying the references stored in SIOs) Matt On Sun, 24 Oct 2010 14:15:02 -0800, Yaron Koren <ya...@gm...> wrote: > Hi, > > Examples of multiple-instance templates that use SIO are surprisingly > difficult to find, even though I think multiple-instance templates and > SIO go hand-in-hand. But you can see one here: > > http://wiki.seaknature.org/w/index.php?title=Isoetes_maritima&action=formedit#tab=References > > Unfortunately it's on a closed-editing wiki, but you should be able to > see how it was done. > > As for the Referata issue, that looks like a bug - I've been reworking > the Javascript recently, so it's probably related to that. > > -Yaron > > > On Sun, Oct 24, 2010 at 4:06 PM, trueskew <tru...@gm...> wrote: >> That wasn't quite easy, but maybe this will make it easier for the next >> person: >> >> http://wiki.montcopa.org/TestWiki/index.php?title=Questions_-_Answers >> >> The form/template code works on my wiki, but Montcopa doesn't have SIO >> installed so it didn't work. It partially works here: >> >> <http://scratchpad.referata.com/wiki/Questions_-_Answers> >> http://scratchpad.referata.com/wiki/Questions_-_Answers >> >> but the caveat in that case is that Add Another doesn't work on the >> partial >> forms, nor does editing the Answer field. If it's pilot error, I can't >> figure it out, and that part works on the set of pages I made on >> Montcopa. >> I did one question and manually added a couple SIO answers to show >> displaying answers properly. >> >> Changes will show up eventually, or after you edit the main page (in the >> abscence of __NOCACHE__). >> >> Regards, >> - skew >> >> >> >> _____ >> >> From: trueskew [mailto:tru...@gm...] >> Sent: Friday, October 22, 2010 6:01 PM >> To: 'Semantic MediaWiki users' >> Subject: SIO / Form / Template Example >> >> >> If someone could send me a link to a good example of how to use a form >> to >> fill in an SIO which gets displayed using a query, I'd appreciate it. >> Particulalry if it involves a form with multiple templates. I don't >> need >> the form and template information, I'm just lacking in SIO usage >> information, and I wasn't able to figure it out from the SIO page. >> >> Thanks. >> - skew |