View topic - SpoilerTag (WagaWiki)
SpoilerTag (WagaWiki)
8 posts
• Page 1 of 1
SpoilerTag (WagaWiki)
AFAIK, this forum has spoiler tags
[spoiler]like this?[/spoiler]
Is there something similar that can be used in WagaWiki?
It would be useful for (for example) simple self test quizzes for the lesson pages.
e.g.
Q. What is the ~masu form of する ?
A. [spoiler]します[/spoiler]
[Edit]I suppose I might try <font color=white>stuff here</font>
[spoiler]like this?[/spoiler]
Is there something similar that can be used in WagaWiki?
It would be useful for (for example) simple self test quizzes for the lesson pages.
e.g.
Q. What is the ~masu form of する ?
A. [spoiler]します[/spoiler]
[Edit]I suppose I might try <font color=white>stuff here</font>
Last edited by paul_b on Sun 08.06.2006 11:27 am, edited 1 time in total.
-

paul_b - Posts: 3210
- Joined: Thu 06.01.2006 9:35 am
RE: SpoilerTag (WagaWiki)
there isn't at the moment, but it could probably be added without much difficulty. it would just take some experimentation. i've looked over the customization hooks for wikipedia and it looks much easier to hack than PHP-Fusion.
along the same line... i sorta stalled on trying to make an EDICT lookup tag for the forums because of some oddness where the database is SJIS encoded but javascript (and browser) are UTF encoded which means that any EDICT lookup for the Fusion side of things has to be done in javascript in the browser, or painful characterset conversions are needed on the server side... since wiki is UTF it should be easier to do EDICT lookup for the wiki.
only difficulty is the tagging. there will have to be redundancy in the markup, a 'key' value for the link to EDICT part, and a 'display' value for the text itself...
<edict lookup="読む">読みます</edict>
which seems a bit painful... i haven't checked (don't use the WWW interface much) whether or not the backend can handle de-conjugating words before looking them up....
spoiler can probably be added easier, and make a good test case for modifying wiki... spolier is just some CSS style manipulation. probably end up like:
<spoiler text="click for answer">the answer.</spoiler>
i know there are easy hooks into wiki for <tag> like tags, i'm not sure how hard adding BBCode ([tag]) or new wiki markup would be.
along the same line... i sorta stalled on trying to make an EDICT lookup tag for the forums because of some oddness where the database is SJIS encoded but javascript (and browser) are UTF encoded which means that any EDICT lookup for the Fusion side of things has to be done in javascript in the browser, or painful characterset conversions are needed on the server side... since wiki is UTF it should be easier to do EDICT lookup for the wiki.
only difficulty is the tagging. there will have to be redundancy in the markup, a 'key' value for the link to EDICT part, and a 'display' value for the text itself...
<edict lookup="読む">読みます</edict>
which seems a bit painful... i haven't checked (don't use the WWW interface much) whether or not the backend can handle de-conjugating words before looking them up....
spoiler can probably be added easier, and make a good test case for modifying wiki... spolier is just some CSS style manipulation. probably end up like:
<spoiler text="click for answer">the answer.</spoiler>
i know there are easy hooks into wiki for <tag> like tags, i'm not sure how hard adding BBCode ([tag]) or new wiki markup would be.
-

zengargoyle - Posts: 1200
- Joined: Sun 05.29.2005 10:16 pm
RE: SpoilerTag (WagaWiki)
It would be useful for (for example) simple self test quizzes for the lesson pages.
Yeah it would be useful.. And maybe you could use it for romanji too.. LOL jk romaji I know! Don't yell at me
私はカナダ人です - watashi wa kanadajin desu.
Maybe you could use the spoiler for the romaji.. Becuase everytime i try to read the kana I always end up reading the romaji.. It's like I would have to put my hand on my computer screen to block out the romaji..
-

kanadajin - Posts: 1528
- Joined: Wed 05.04.2005 7:04 pm
RE: SpoilerTag (WagaWiki)
Just for info I've used the 'white font' trick to make a [wiki=Quiz 1]simple quiz[/wiki] for the [wiki=Grammar page 1]first lesson[/wiki].
-

paul_b - Posts: 3210
- Joined: Thu 06.01.2006 9:35 am
RE: SpoilerTag (WagaWiki)
zengargoyle wrote:
only difficulty is the tagging. there will have to be redundancy in the markup, a 'key' value for the link to EDICT part, and a 'display' value for the text itself...
<edict lookup="読む">読みます</edict>
which seems a bit painful... i haven't checked (don't use the WWW interface much) whether or not the backend can handle de-conjugating words before looking them up....
I don't think it can, at least not 100% reliably.
You can make your tag a bit simplier though.
<edict=読む>読みます</edit> (not dictionary form)
<edict>読む</edit> (dictionary form).
-

paul_b - Posts: 3210
- Joined: Thu 06.01.2006 9:35 am
RE: SpoilerTag (WagaWiki)
Just for info I've used the 'white font' trick to make a simple quiz for the first lesson.
Slick.. I guess we don't really need the spoiler..
-

kanadajin - Posts: 1528
- Joined: Wed 05.04.2005 7:04 pm
RE: SpoilerTag (WagaWiki)
kanadajin wrote:Just for info I've used the 'white font' trick to make a simple quiz for the first lesson.
Slick.. I guess we don't really need the spoiler..
Hmm, some people may have overridden the default colours in which case it won't work. Although [spoiler]spoilertags[/spoiler] rely on Javascript (I assume) which some people disable.
Incidentally [wiki]Grammar page 1[/wiki] now has a [wiki=Quiz 2]second quiz[/wiki] up.
-

paul_b - Posts: 3210
- Joined: Thu 06.01.2006 9:35 am
RE: SpoilerTag (WagaWiki)
<edict=読む>読みます</edit> (not dictionary form)
hrmm. don't think that would work, it's not valid XML. would probably have to be:
<edict>読む</edict> or <edict>読む 読みます</edict> (whitespace to separate).
you could also probably do this for spoiler:
<span style="backgound-color: #FFFFFF; color: #FFFFFF">spoiler here</span>
that is spoiler could be a scripted color change instead of visibility change so the select trick would still work for non-javascript people...
-

zengargoyle - Posts: 1200
- Joined: Sun 05.29.2005 10:16 pm
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests







Click to sign up
