Différences entre les versions de « Issue/Default form »
De Semantic MediaWiki - Sandbox
Balise : Éditeur de wikicode 2017 |
Balise : Éditeur de wikicode 2017 |
||
(Une version intermédiaire par le même utilisateur non affichée) | |||
Ligne 5 : | Ligne 5 : | ||
}} | }} | ||
− | + | "Edit with form" should be set/appear directly when saving the page. This used to happen with older versions of Semantic Forms that used [[Property:Has default form]] (see example below). | |
− | + | Page Forms has a different way of defining the "Edit with form" tab, using a parser function instead of semantic properties. Now, when (novice) users create a page using a form then realise they have to amend and click 'Edit', they can get confused and frustrated by the viewing of source code. This is exacerbated when <code>$wgPageFormsRenameEditTabs = true;</code> is used. | |
− | "Edit with form" | ||
==Steps to reproduce== | ==Steps to reproduce== | ||
+ | (Assuming the mentioned forms [[Form:Article]] and [[Form:Author]] exist) | ||
===Scenario: Directly set default form and wait === | ===Scenario: Directly set default form and wait === | ||
#Save a new page with as content: <code><nowiki>{{#default_form:Article}}</nowiki></code> | #Save a new page with as content: <code><nowiki>{{#default_form:Article}}</nowiki></code> | ||
Ligne 37 : | Ligne 37 : | ||
#Make a dummy edit (ie add 'x' to the end of the contents) | #Make a dummy edit (ie add 'x' to the end of the contents) | ||
#The "Edit with form" link doesn't yet exist | #The "Edit with form" link doesn't yet exist | ||
+ | |||
+ | ==Older behaviour== | ||
+ | e.g. Semantic Forms 2.5.3, SMW 1.7.0.2 | ||
+ | #Have [[:Category:Tests]] contain <code><nowiki>[[Has default form::Author]]</nowiki></code> | ||
+ | #Save a new page with as content: <code><nowiki>[[Category:Tests]]</nowiki></code> | ||
+ | #The "Edit with form" link appears instantaneously. |
Dernière version du 16 mai 2018 à 17:18
Description | When saving a page with a set form, the 'edit with form' link doesn't get set |
Parent topic | Catégorie:Examples |
Extension(s) | |
Keyword(s) | not specified |
Other link(s) | not specified |
"Edit with form" should be set/appear directly when saving the page. This used to happen with older versions of Semantic Forms that used Property:Has default form (see example below).
Page Forms has a different way of defining the "Edit with form" tab, using a parser function instead of semantic properties. Now, when (novice) users create a page using a form then realise they have to amend and click 'Edit', they can get confused and frustrated by the viewing of source code. This is exacerbated when $wgPageFormsRenameEditTabs = true;
is used.
Steps to reproduce
(Assuming the mentioned forms Form:Article and Form:Author exist)
Scenario: Directly set default form and wait
- Save a new page with as content:
{{#default_form:Article}}
- The "Edit with form" link doesn't yet exist
- Refresh
- The "Edit with form" link doesn't yet exist
- Wait?
- The "Edit with form" link appears
Scenario: Directly set default form and do a dummy edit
- Save a new page with as content:
{{#default_form:Article}}
- The "Edit with form" link doesn't yet exist
- Refresh
- The "Edit with form" link doesn't yet exist
- Click 'edit' (editsource)
- The "Edit with form" link doesn't yet exist
- Make a dummy edit (ie add 'x' to the end of the contents)
- The "Edit with form" link doesn't yet exist
Scenario: form through category
- Have Category:Authors contain
{{#default_form:Author}}
- Save a new page with as content:
[[Category:Authors]]
- The "Edit with form" link doesn't yet exist
- Refresh
- The "Edit with form" link doesn't yet exist
- Click 'edit' (editsource)
- The "Edit with form" link doesn't yet exist
- Make a dummy edit (ie add 'x' to the end of the contents)
- The "Edit with form" link doesn't yet exist
Older behaviour
e.g. Semantic Forms 2.5.3, SMW 1.7.0.2
- Have Category:Tests contain
[[Has default form::Author]]
- Save a new page with as content:
[[Category:Tests]]
- The "Edit with form" link appears instantaneously.