Not logged in. · Lost password · Register
Forum: General Discussion Plugins Plugin Wishlist RSS
Quick tip box with DokuWiki Syntax
When editing a page, a box that has the common syntax
ucffool #1
Member for a month · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Quick tip box with DokuWiki Syntax
I'm trying to find the wikiesque website that had something like this, something I saw on digg that was basically an actress/hot babe wiki run by hi-5 or one of those sites.
Oh well.

Anyway, the idea is that for those unfamiliar with wiki syntax, and without them having to have a second window open with the :syntax, a small box below the editing window with common things, like [[pagename|text]] and other useful tidbits not addressed with the quickbuttons at the top of the editor.

I couldn't find anything like this, and wondering if I'm missing it or it just doesn't exist yet.
This post was edited on 2008-04-22, 18:59 by ucffool.
ucffool #2
Member for a month · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: More info...
So I've done some hacking to give you an idea of what I'm talking about (See a screenshot).
The following was changed within my template (I use masa) to make this show up.

main.php (around line 112)
    <?php } else { ?>

        <div class="page">

            <!-- wikipage start -->

            <?php tpl_content()?>

            <!-- wikipage stop -->

        </div>

<!-- new content start -->
<div id='syntax_help'>
    <h2>Common Syntax</h2>
    [[ http://www.example.com | link text ]]
        <ul><li>Link to a specific external URL while displaying different link text</li></ul>
    [[ pagename | link text ]]
        <ul><li>Link to a specific pagename while displaying different link text</li></ul>
    [[ pagename:namespace ]]
        <ul><li>Link to a specific namespace on pagename</li></ul>
    [[ pagename:namespace | link text ]]
        <ul><li>Link to a specific namespace on pagename while displaying different link text</li></ul>
    ((This is a footnote))
        <ul><li>Create a footnote</li></ul>
    * This is an unordered list item
        <ul><li>Create an unordered list with the asterisk (*)</li></ul>
    - This is an ordered list item
        <ul><li>Create an ordered list with the hyphen (-)</li></ul>
</div>
<div id='plugins_help'>
    <h2>Plugins available</h2>
    <ul>
    <li><a href="http://wiki.splitbrain.org/plugin:gallery">Gallery</a></li>
        <ul><li>[[ gallery>namespace ]]</ul></li>
    <li><a href="http://wiki.splitbrain.org/plugin:code2">Code2</a></li>
        <ul><li>&#60;code lang linenum&#62;&#60;/code&#62;</ul></li>
        <ul><li><b>Example:</b> &#60;code php 7&#62;&#60;/code&#62;</ul></li>
    <li><a href="http://wiki.splitbrain.org/plugin:poll">Poll</a></li>
    <li><a href="http://www.wikidesign/en/plugin/pagelist/start">Pagelist</a></li>
    <li><a href="http://wiki.splitbrain.org/plugin:note">Note</a></li>
        <ul><li>&#60;note&#62;&#60;/note&#62;</ul></li>
        <ul><li>&#60;note warning&#62;&#60;/note&#62;</ul></li>
        <ul><li>&#60;note tip&#62;&#60;/note&#62;</ul></li>
        <ul><li>&#60;note important&#62;&#60;/note&#62;</ul></li>
    <li><a href="http://wiki.splitbrain.org/plugin:keywords">Keywords</a></li>
        <ul><li>{{keywords>word1 word2 wordN}}</ul></li>
    </ul>
</div>
<!-- new content end -->
    <?php } ?>


masa_design.css (at the bottom)

#syntax_help {
    clear: both;
    display: block;
    width: 40%;
    border: 1px dashed;
    margin-left: 10px;
    padding: 0 5px 0 15px;
    float: left;
}

#plugins_help {
    display: block;
    border: 1px dashed;
    width: 40%;
    margin-right: 30px;
    padding: 0 5px 0 15px;
    float: right;
}

#plugins_help a:link {
    text-decoration: underline;
}
#plugins_help a:visited {
    text-decoration: underline;
}

Realistically, the plugins sections would be dynamic based upon the stored info about installed plugins. Secondly, the current placement shows up only when you are on the EDIT page, but it does also show up on the ADMIN page. I suppose it would best fit inside the tpl_content() function.

Thoughts?
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 1.6.4, © 2003-7 by Yves Goergen
Current time: 2008-05-17, 03:12:42 (UTC +02:00)
WikiForumIRCBugsTranslate