Helmut_pdorfHelmut_pdorf 25 Mar 2011 11:43

A syntax implementation makes it possible: We can use a new standalone [[button set-tags +_tag1 -_tag2 text="Change tags"]] to update tags of a page with predefined settings.. - Documentation is here: Button for tag update and some examples of usage now following :

=> Look at the "tags" displayed after the tweet button!

Done with

[[module CSS]]

.site-actions div {
    float: left;
    margin-right: 10px;
}

.site-actions div a {
    color: #fff;
    background: #f7f;
    border: 1px solid #999;
    padding: 2px 10px 3px;
    text-decoration: none;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    text-shadow: 1px 1px 1px #bbb;
    opacity: 0.8;
}

.site-actions div a:hover {
    opacity: 1;
}

.site-actions div.redcolor a {
    background: #7ff;
}

.site-actions div.greencolor a {
    background: #f7f;
}

[[/module]]

A syntax implementation makes it possible: We can use a new standalone @@[[@@**button set-tags +_tag1 -_tag2 text="Change tags"**@@]]@@ to update tags of a page with predefined settings.. - Documentation is here: [*http://www.wikidot.com/doc:wiki-syntax#toc61 Button for tag update]  and some examples of usage now following :
[[div class="site-actions"]]
[[iftags -good -notgood]]
[[div class="greencolor"]]
||~ Good ? || [[button set-tags +good -notgood text="mark as good or:"]] ||
||~ Notgood ? || [[button set-tags +notgood -good text="mark as notgood"]] ||
[[/div]]
[[/iftags]]

[[iftags -open -closed]]
[[div class="greencolor"]]
||~ Open ?|| [[button set-tags +open -closed text="mark as open or:"]] ||
||~ Closed ?|| [[button set-tags +closed -open text="mark as closed "]] ||
[[/div]]
[[/iftags]]

[[iftags +good]]
[[div class="redcolor"]]
||~ Notgood ?|| [[button set-tags +notgood -good text="mark as notgood (+ clear good)"]] ||
[[/div]]
[[/iftags]]

[[iftags +open]]
[[div class="redcolor"]]
||~ Closed ?|| [[button set-tags +closed -open text="mark as closed (+ clear open)"]] ||
[[/div]]
[[/iftags]]

[[iftags +closed]]
[[div class="greencolor"]]
||~ Open ? || [[button set-tags +open -closed text="mark as open (+ clear closed)"]] ||
[[/div]]
[[/iftags]]

[[iftags +notgood]]
[[div class="greencolor"]]
||~ Good ?|| [[button set-tags +good -notgood text="mark as good (+ clear notgood)"]] ||
[[/div]]
[[/iftags]]
[[/div]]
~~~~

Recommend this post?

rating: +1+x

What do you think? Give us your thoughts!

Add a New Comment