View previous topic :: View next topic |
Author |
Message |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Mar 27, 2008 4:49 am Post subject: A [command] tag |
|
|
Oh, here's an idea for plotscript command tags (named [command]? Maybe [cmd] or [plot]?), which creates a link to the wiki similarly to the wiki tag. The differences:
*You wouldn't have to type "plot:" as part of the link, and it could display just "command name" as the link, instead of "plot:command name".
*Mediawiki's case sensitivity is a real nuisance. The pages on the wiki have the same name as the display names in the xml, so there are pages like "Plot:Walk hero to x" and "Plot:Walk NPC to X". I wish for a case and space insensitive [plot] tag. You could strip whitespace and case and compare to he names of valid commands, from http://hamsterrepublic.com/ohrrpgce/docs/plotdict.xml, to get the real link. Admittedly there aren't many exceptions, but I can never even remember that the page names use whitespace. And the capitalisation and spacing of the name might change in future, and this is a forward compatible linking method.
*And you could even show the links in red if they don't match anything in the xml! Remembering exactly what a command is called is hard: this would be very helpful.
*(Bonus: correct links to 'plot:(AMP)(AMP)' and the other exceptions to the xml names)
If you did this, that would be great, but if you'd rather work on CP, I won't complain :)
Of course, the command pages on the wiki are currently out of date and are missing dozens of recent commands. I wish James uploaded the html version somewhere so that you could link to that instead? _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Bob the Hamster OHRRPGCE Developer

Joined: 22 Feb 2003 Posts: 2526 Location: Hamster Republic (Southern California Enclave)
|
Posted: Thu Mar 27, 2008 6:51 am Post subject: Re: A [command] tag |
|
|
The Mad Cacti wrote: | Of course, the command pages on the wiki are currently out of date and are missing dozens of recent commands. I wish James uploaded the html version somewhere so that you could link to that instead? |
What about linking to http://hamsterrepublic.com/ohrrpgce/docs/plotdict.xml ? The xml file displays fine on all the web browsers I have tested it with. |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Mar 27, 2008 9:10 pm Post subject: |
|
|
That would work, except it takes 15 seconds to load for me. So the html version would be a lot more convenient. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Inferior Minion Metric Ruler

Joined: 03 Jan 2003 Posts: 741 Location: Santa Barbara, CA
|
Posted: Fri Mar 28, 2008 10:46 am Post subject: |
|
|
I certainly think it's possible. Getting better versed in XML parsing via PHP and I'll give it a try. I really prefer [plot] over [command].
~IM _________________
|
|
Back to top |
|
 |
|