Jump to content

Test/DropDown: Difference between revisions

From RiskiPedia
Update for new <dropdown> syntax
No edit summary
Tag: Reverted
Line 13: Line 13:
</datatable2>
</datatable2>


<DropDown title="Method" table="dropdowntest1"></DropDown>
<DropDown title="Method" table="Test:DropDown:dropdowntest1"></DropDown>


<datatable2 table="dropdowntest2" columns="choice" class="wikitable">
<datatable2 table="dropdowntest2" columns="choice" class="wikitable">
Line 25: Line 25:
</datatable2>
</datatable2>


<DropDown title="Choose One" table="dropdowntest2"></DropDown>
<DropDown title="Choose One" table="Test:DropDown:dropdowntest2"></DropDown>


Testing selecting using different columns from the table:
Testing selecting using different columns from the table:
Line 44: Line 44:
</datatable2>
</datatable2>


<DropDown title="One's column" table="dropdowntest3"></DropDown>
<DropDown title="One's column" table="Test:DropDown:dropdowntest3"></DropDown>


<DropDown title="Two's column" table="dropdowntest3" label_column=l2 value_column=v2></DropDown>
<DropDown title="Two's column" table="Test:DropDown:dropdowntest3" label_column=l2 value_column=v2></DropDown>


<DropDown title="Three's column" table=dropdowntest3 label_column=l3 value_column=v3></DropDown>
<DropDown title="Three's column" table=Test:DropDown:dropdowntest3 label_column=l3 value_column=v3></DropDown>




Line 55: Line 55:
No datatable2 name given: <DropDown title=NoTable></DropDown>
No datatable2 name given: <DropDown title=NoTable></DropDown>


Non-exisistent table: <DropDown title="NoSuch" table="nosuchtable"></DropDown>
Non-exisistent table: <DropDown title="NoSuch" table="Test:DropDown:nosuchtable"></DropDown>


Bad column names: <DropDown title="Oopsie column" table="dropdowntest3" label_column=typo value_column=v2></DropDown>
Bad column names: <DropDown title="Oopsie column" table="Test:DropDown:dropdowntest3" label_column=typo value_column=v2></DropDown>




<DropDown title="Oopsie column" table=dropdowntest3 label_column=l2 value_column=oopsie></DropDown>
<DropDown title="Oopsie column" table=Test:DropDown:dropdowntest3 label_column=l2 value_column=oopsie></DropDown>

Revision as of 20:50, 8 August 2025

method effectiveness

None

0

Rhythm

90

Condom

95

IUD

99.9

Tubal Ligation

99.99

dropdown: cannot find DataTable2 table Test:DropDown:dropdowntest1

choice

First

Second

Third

dropdown: cannot find DataTable2 table Test:DropDown:dropdowntest2

Testing selecting using different columns from the table:

l1 v1 l2 v2 l3 v3

1_One

1

2_One

100

3_One

1000

1_Two

2

2_Two

101

3_Two

1003

1_Three

3

2_Three

102

3_Three

1003

dropdown: cannot find DataTable2 table Test:DropDown:dropdowntest3

dropdown: cannot find DataTable2 table Test:DropDown:dropdowntest3

dropdown: cannot find DataTable2 table Test:DropDown:dropdowntest3


Test some error conditions:

No datatable2 name given: dropdown: missing table attribute

Non-exisistent table: dropdown: cannot find DataTable2 table Test:DropDown:nosuchtable

Bad column names: dropdown: cannot find DataTable2 table Test:DropDown:dropdowntest3


dropdown: cannot find DataTable2 table Test:DropDown:dropdowntest3