Changes

Jump to navigation Jump to search
Initialized the documentation of the tasks.
Line 11: Line 11:     
=== Intermediate goals ===
 
=== Intermediate goals ===
* Replace the popup to instead introduce content in the DOM where [[User:Podehaye/mwhtml.js]] does.
+
# Replace the popup to instead introduce content in the DOM where [[User:Podehaye/mwhtml.js]] does.  
* Replace the mailto link by a basic form asking to enter first name, last name.  
+
# Replace the mailto link by a basic form asking to enter first name, last name.  
* Improve the (auto generated) form to ask also for the data specified in the page through {{P|122}}.
+
# Improve the (auto generated) form to ask also for the data specified in the page through {{P|122}}.
* Rely on data stored somewhere in protected user script space to autocomplete.
+
# Rely on data stored somewhere in protected user script space to autocomplete.
* Rely on LocalStorage.  
+
# Rely on LocalStorage.  
    
There have been some initial efforts at using LocalStorage, detailed in [[Development of SAR service]]. However, this relied on some initial fairly nasty code. I think the code behind [[MediaWiki:Gadget-QuickPresets.js]] is much more neatly structured and helpful for the non-LocalStorage parts.  
 
There have been some initial efforts at using LocalStorage, detailed in [[Development of SAR service]]. However, this relied on some initial fairly nasty code. I think the code behind [[MediaWiki:Gadget-QuickPresets.js]] is much more neatly structured and helpful for the non-LocalStorage parts.  
Line 25: Line 25:  
* Read through [[User:Podehaye/mwhtml.js]], [[MediaWiki:Gadget-QuickPresets.js]], [[Architecture of SAR service]], [[Development of SAR service]] (and scripts documented therein) to see all the different ways already used to implement at the interface of Javascript, SPARQL and Wikibase. This *needs* to happen on the wiki, ideally in the MediaWiki namespace (but we can easily start here and then cannibalize). Link heavily to Wikidata/Wikipedia/WikiMedia Foundation properties wherever possible. There should be two layers to this doc: the different ways one can use (atomic techniques), and how these ways are bundled to create specific solutions (e.g. described at [[MediaWiki:Gadget-QuickPresets/doc]]). Currently the doc mixes both layers often, which reduces modularity.  
 
* Read through [[User:Podehaye/mwhtml.js]], [[MediaWiki:Gadget-QuickPresets.js]], [[Architecture of SAR service]], [[Development of SAR service]] (and scripts documented therein) to see all the different ways already used to implement at the interface of Javascript, SPARQL and Wikibase. This *needs* to happen on the wiki, ideally in the MediaWiki namespace (but we can easily start here and then cannibalize). Link heavily to Wikidata/Wikipedia/WikiMedia Foundation properties wherever possible. There should be two layers to this doc: the different ways one can use (atomic techniques), and how these ways are bundled to create specific solutions (e.g. described at [[MediaWiki:Gadget-QuickPresets/doc]]). Currently the doc mixes both layers often, which reduces modularity.  
 
* Get started on intermediate goals.
 
* Get started on intermediate goals.
 +
 +
== Process documentation ==
 +
 +
The development process for each task will be documented, to be used as a blueprint / todo list for future implementations.
 +
 +
=== Replace pop-up with DOM modification ===
 +
 +
=== Replace mailto link with a form ===
 +
 +
=== Integrate in the form data specified in the page ===
 +
 +
=== Use data stored in a protected script to autocomplete  ===
 +
 +
=== Use LocalStorage ===
 +
 +
== Product documentation ==
 +
 +
The finished products (templates, gadgets) will be documented in their own pages, with links included here for completeness.

Navigation menu