Changes between Version 1 and Version 2 of WikiFormsPlugin


Ignore:
Timestamp:
Jan 21, 2010, 2:02:49 PM (14 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiFormsPlugin

    v1 v2  
    2424
    2525{{{
     26
     27Normal wiki formatted stuff...
     28
    2629{{{
    2730#!WikiForms
    2831
     32== Selects ==
     33|| '''Description''' || '''Example'''                                      || '''Value'''
     34|| simple select     || <tf>select:simple_select:1 2 3 4</tf>              || <tf>value:simple_select</tf>
     35|| labeled select    || <tf>select:labeled_select:1=l1 2=l2 3=l3 4=l4</tf> || <tf>value:labeled_select</tf>
     36|| quoted select     || <tf>select:quoted_select:'"a"' "'b'" 'c c'</tf>    || <tf>value:quoted_select</tf>
     37|| complex select    || <tf>select:complex_select:
     38#
     39# keep in mind that
     40#  - comments are removed
     41#  - newlines are replaced with '' (empty string)
     42# prior to parsing. After all those the preformatting the
     43# fields still have to be separated by whitespace to be distinguishable.
     44# Further cfg-options are:
     45#   default
     46#   class
     47#   id
     48value0                            # label = value
     49 'v a l u e 1'                    # label = value, both containing whitespace
     50        value2='l a b e l 2'      #
     51 'v a l u e 3'=label3             #
     52 'val ue4'="lab el4"
     53 class=my_css_class
     54 id=my_css_id
     55 default=value2                   # this is the cfg option (not an entry for the selector-list)...
     56 :                                # separator, from now on everything becomes a selector-list entry even if the name matches a cfg-option
     57</tf>                                                                      || <tf>value:complex_select</tf>
     58
     59
     60== Checkboxes ==
     61|| '''Description''' || '''Example'''                                      || '''Value'''
     62|| simple checkbox   || <tf>checkbox:simple_checkbox</tf>                  || <tf>value:simple_checkbox</tf>
     63|| complex checkbox  || <tf>checkbox:complex_checkbox:
     64# Further cfg-options are:
     65# checked  : flag ('1','true' 'on' 'yes') used if there is no database entry available...
     66# value    : value stored when checkbox is checked
     67# class
     68# id
     69value=value_if_checked
     70checked=true
     71</tf>                                                                      || <tf>value:complex_checkbox</tf>
     72
     73== Inputs ==
     74|| '''Description''' || '''Example'''                                      || '''Value'''
     75|| simple input      || <tf>input:simple_input</tf>                        || <tf>value:simple_input</tf>
     76|| complex input     || <tf>input:complex_input:
     77# Further cfg-options are:
     78# value    : default value if no database entry is available
     79# size     : width in characters (defaults to 22)
     80# class
     81# id
     82value="   'foo'   "'"bar" 'baz 
     83size=30
     84</tf>                                                                      || <tf>value:complex_input</tf>
     85
     86
     87== Radios ==
     88|| '''Description''' || '''Example'''                                                                                                                                     || '''Value'''
     89|| simple radio      || <tf>radio:simple_radio:value='beer'</tf> [[BR]]<tf>radio:simple_radio:value=milk checked=true</tf> [[BR]] <tf>radio:simple_radio:value=water</tf> || <tf>value:simple_radio</tf>
     90|| complex radio     || <tf>radio:complex_radio:
     91# Further cfg-options are:
     92# checked  : flag ('1','true' 'on' 'yes') used if there is no database entry available...
     93# value    : value stored when this radio is selected
     94# class
     95# id
     96value=dummy1 
     97size=30
     98</tf> [[BR]] <tf>radio:complex_radio:
     99value=dummy2</tf>                                                                                                                                                         || <tf>value:complex_radio</tf>
     100
     101
     102
     103== Textareas ==
     104|| '''Description''' || '''Example'''                 || '''Value'''
     105|| simple text       || <tf>textarea:simple_text</tf> || <tf>value:simple_text</tf>
     106|| complex text      || <tf>textarea:complex_text:
     107# Further cfg-options are:
     108# rows     : defaults to 2
     109# cols     : defaults to 10
     110# value    : default value if no database entry is available, defaults to ''
     111# class
     112# id
     113cols=30 rows=5 value='Please fill your
     114approval
     115comment
     116in here'</tf>                                          || <tf>value:complex_text</tf>
     117
     118
     119== Submit Buttons ==
     120|| '''Description''' || '''Example'''
     121|| simple button     || <tf>submit</tf>
     122|| complex button    || <tf>submit:
     123# label    : label on the button, defaults to 'Send'
     124# class
     125# id
     126label='Commit'</tf>
     127
     128
     129
     130== Query Stuff ==
     131<tf>
     132# to have a value which is always there...
     133set:to_be_queried:magic_value</tf>
     134
     135=== Without Formatting ===
     136|| '''Value'''  || <tf>value:to_be_queried</tf>
     137|| '''Who'''    || <tf>who:to_be_queried</tf>
     138|| '''When'''   || <tf>when:to_be_queried</tf>
     139
     140=== With Formatting ===
     141|| '''Value''' (in bold)  || '''<tf>value:to_be_queried</tf>'''
     142|| '''Who''' (underlined) || __<tf>who:to_be_queried</tf>__
     143|| '''When''' (in italic) || ''<tf>when:to_be_queried</tf>''
     144
     145<tf>lastmodified</tf>
     146
     147
     148== Debug Stuff ==
     149
     150<tf>
     151# set an relative field
     152set:rel_name:rel_value
     153</tf>
     154
     155<tf>
     156# set an absolute field
     157set:/abs_name:abs_value
     158</tf>
     159
     160<tf>delete:/abs_name</tf>
     161
     162<tf>
     163# dump fields...
     164dump:.*
     165</tf>
    29166}}}
     167
     168Normal wiki formatted stuff...
    30169}}}
    31170