Add one Glossary page
Tags
W e l c o m e ! » Getting Started » Glossary
««Style |
Tags | Template»» |
Corresponding to the documentation:
Tags
Tags are in wikidot.com "extra indexes" for a page, manual keyed in by editors - if they are allowed to do so - by clicking on the tags - link at the page options buttons on bottom of a page.
Every tag can be max 64 characters long, are "space" separated and there is now the limit of tags per page in the summary of all tags together of 500 characters (in the input field).
Over a "Tag cloud" such pages can be found easy. Special tags are starting with an underline: they are not automatically shown in "tag-clouds", but they can be used as special limitations in [[iftag]] conditions. Tags can be used in ListPages Module with generic conditions ( +, - ) too. Known problems are combined words like "New York" which has to be keyed in as "New_York" ( with underscore) or "New-York" ( hyphen) , both is not optimal….
Iftags
iftags is a special condition question - you can use it on every page to "react" on tags - set up on the page used..
it has the forms:
[[iftags +tag1 -tag2 tag3]] ... [[/iftags]] where the +/-"tag#" stands for the requested tag-indexes.
+ before a tagname means - this tag has to be existent, is a must - works like a tag without a modifier
- before a tagname means - this tag must not exist.
and a tag without such modifiers is a must ( like the +tagxyz)
Examples:
Have a look:
http://helmuti-pdorf.wikidot.com/iftags-test or
http://helmuti-pdorf.wikidot.com/iftags-test1 or
http://sandbox.wikidot.com/iftags-test2
there is the code from iftags-test:
[[iftags news]]
++ Yes, it //is// tagged with ``news''
[[/iftags]]
..
..
[[iftags include]]
++ Yes, it //is// tagged with ``include''
+++ Therefore here is the page included "comments-test1":
----
[[div class="error-block"]]
Included page "comments-test1" does not exist ([/comments-test1/edit/true create it now])
[[/div]]
----
[[/iftags]]
Button Set Tags
button for tag update
There is in the wikidot syntax the "button for tag update" set tags available. with a click on such rendered button the tag value is set by predefined values (better "redefined" - the old values perhaps cleared before and so on ; see the documentation: http://www.wikidot.com/doc:wiki-syntax#toc62 ).
Here is an example of the usage with two (flip/flop) buttons;
( you can try to use them - switch from "_open" to "_completed" an vice versa)
|
Confirm COMPLETED |
Here is the code for this example:
[[table]]
[[row]]
[[cell]]
[[iftags -_completed]]
[[div style="border:2px solid green; text-align:center; width:200px;"]]
[[button set-tags -_open +_completed text="Confirm COMPLETED"]]
(set tags -_open +_completed)
[[/div]]
[[/iftags]]
[[/cell]]
[[cell]]
[[iftags -_open]]
[[div style="border:2px solid red; text-align:center; width:200px;"]]
[[button set-tags +_open -_completed text="Confirm OPEN"]]
(set tags +_open -_completed)
[[/div]]
[[/iftags]]
[[/cell]]
[[/row]]
[[/table]]
Note : in a (live) _template page you can use the %%dataform%% -values for such tags- updates!
( eitehr raw or data - se the example ikn the source on our playground : http://community-playground.wikidot.com/task:1
and in their _template page: http://community-playground.wikidot.com/task:_template





