1,801
การแก้ไข
| บรรทัดที่ 716: | บรรทัดที่ 716: | ||
*#* '''The submission fails''' ('''{{code|lang=javascript|1= data.data === 'failure'}}'''), set the page flag '''will_proceed_editmode''' to {{code|lang=javascript|false}}. ''(This flag prevents a multi-component page from proceeding through a failed step.)'' | *#* '''The submission fails''' ('''{{code|lang=javascript|1= data.data === 'failure'}}'''), set the page flag '''will_proceed_editmode''' to {{code|lang=javascript|false}}. ''(This flag prevents a multi-component page from proceeding through a failed step.)'' | ||
*#* '''The submission succeeds''' ('''{{code|lang=javascript|1= data.data === 'success'}}'''): | *#* '''The submission succeeds''' ('''{{code|lang=javascript|1= data.data === 'success'}}'''): | ||
*#*# | *#*# If the form must be repopulated ('''{{code|data.repop}}''': ''dict''), do so. | ||
*#*# If other tables and forms on the page are affected ('''{{code|data.crossfill}}''': ''dict''), re-populate them. ''(See note.)'' | |||
'''{{code|data.crossfill}}''' assumes the following format: | |||
<syntaxhighlight lang='python'> | |||
data.crossfill = {'<table_or_form_id0>':<table_or_form_data0>, | |||
'<table_or_form_id1>':<table_or_form_data1>, | |||
...} | |||
# For CuneiTables, table_or_form_data takes the following format. The order of | |||
# each member list is dictated by the attribute 'cnames' of the CuneiTable instance. | |||
table_data = [ [<row0_value0>, <row0_value1>, <row0_value2>, ...], | |||
[<row1_value0>, <row1_value1>, <row1_value2>, ...], | |||
... ] | |||
</syntaxhighlight> | |||
: {{code|lang=python|{'<table_or_form_id0>':'<table_or_form_data0>'} }} | |||
{{The Tenko Shrine}} | {{The Tenko Shrine}} | ||