tag button
syntax:
[[button set-tags +some-tag -some-other-tag text="remove some-other-tag and add some-tag"]]
With the following cheats:
[[button set-tags -* +abc text="set abc"]]
The above will clear all visible tags (i.e. not starting with "_") and add abc tag.
[[button set-tags -_* +_abc text="set _abc"]]
The above will clear all hidden tags (i.e. starting with "_") and add _abc tag.
The +tag, -tag, -* and -_* can be mixed of course. The actual code will first delete all the requested tags, then add, so it's safe to add "-*" or "-_*" at the end of the list.
Change button state
Using iftags you can change the button state:
[[iftags -_offline]]
Your current status is: **//Online//**
[[button set-tags +_offline text="Change status to offline"]]
[[/iftags]]
[[iftags _offline]]
Your current status is: **//Offline//**
[[button set-tags -_offline text="Change status to online"]]
[[/iftags]]
[[iftags -completed]]
[[button set-tags +completed text="Tag Completed"]]
[[/iftags]]
[[iftags completed]]
This event has taken place.
[[/iftags]]
The CSS for the following button is:
.wiki-standalone-button {
-moz-border-radius: 5px 5px 5px 5px;
background: url("http://themes.wikidot.com/local--files/rainbow-base/button_2.png") repeat-x scroll 0 0 #F4F4F4;
border: 1px solid #DDDDDD;
padding: 5px;
}