Board Thread:Support Requests - Designing Your Wiki/@comment-20755501-20130927112340

Ok, I have gone so far and created my own wiki, so I can mess around without messing somones work up. And I have admin rights which is also a big help.

The page I create a template for is: http://kos.wikia.com/wiki/List_of_all_Commands, half of it is in my first (somehow ... more or less ... well I think is not "more or less" its more  "more less") usable template. *²

It contains the styles:
 * http://kos.wikia.com/wiki/Templates:Com which is dealing generally with the looks (and the hiding of stuff.)
 * http://kos.wikia.com/wiki/Templates:Ex which contain the the hidden explanations (the page is designed to be a show overview, but with the ability to display more if needed.
 * http://kos.wikia.com/wiki/Templates:Co: which formats the Commands. I figured out that might be unnecessary. Basically I can reduce it that much that all is left is a
 * http://kos.wikia.com/wiki/Templates:Arg which formats Arguments with a fixed name. (as given within the program)
 * http://kos.wikia.com/wiki/Templates:Darg which formats Arguments with a describing name. like: &lt;look_what_a_wonderfull_describing_name_I_had_thought_off&gt;

But the usage is a huge mess.

What you have to enter looks like e.g. : or like

Ok, what I try to achieve would be easy with regexp and arrays. I want that all command parts are formatted in one way. Named arguments* in another. (different Background color) and describing arguments* in a third way (same background color as named arguments, but a different font color, and all lower case). Beyond that everything but DA should be converted to upper case. and DA to lower case, also every whitespace to underline. Finally should every < > [ ] and | have also their own format. It finally should look like here *³

With regexp It would be no trouble at all and I would make the template usage like this (more or less, its a first draft):

I basically use the § to not run in conflicts with any namespace. a§ would be the beginning of an NA, d§ of an DA. §a would be an end. And § would replacing the |. | might be fine if you only uses a few times but it happens very regular in here.

'''The Problem is that I am currently stuck here in almost endless {{#replace: chains... and even more if I try to improve the usability.'''

'''And I don't find a way to convert most, but not all to uppercase and the rest to lowercase. And I think more arguments within the the template would not work.'''

* = Named arguments will be shortend to NA  and describing arguments will be shortend to DA
 * ² = Not the best example because of the missing admin rights I am not able to access the CSS. So some of the Formats are not visible right now. A fast copy of it can be found here (with all the looks, but without function) *³= got Admin rights so it looks like it should.  