Schang1146 (talk | contribs)
No edit summary
Schang1146 (talk | contribs)
Added a finished todos section
 
(22 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Useradmin}}
{{clear}}
Hey! I’m Sam ('''@schang1146''' in the Consumer Rights Wiki Discord server).
Hey! I’m Sam ('''@schang1146''' in the Consumer Rights Wiki Discord server).


I do development-y stuff. Hope I don't break anything too bad 😬.
I do development-y stuff.


==To-do list==
==To-do list==
*'''[Priority]''' Related Companies for Incident, Product, and Product Line forms need to allow freehand page names
*'''[Priority]''' Legal structure should be the current options but "other" can be manually input / Cargo table should take a string
*<s>'''[Priority]''' Separate infobox from Cargo table template for entities: Company, Product, Product Line</s>
*<s>'''[Priority]''' Update Company infobox field from <code>type</code> to <code>Legal structure</code></s>
*<s>'''[Priority]''' Change all date fields in forms for the entities: Company, Incident, Product, Product Line to be a text field w/ validation (if possible)</s>
*<s>'''[Priority]''' Fix uploading logos for the entities: Company, Product, Product Line</s> (somewhat fixed, there might be an issue between browsers and whether or not a user is logged in or not)
*<s>'''[Priority]''' For the Company form, make ParentCompany field not required to be an existing value and allow people to enter a value (with autocomplete help)</s>
*<s>'''[Priority]''' Add the following comments to the preload page of all entities with an infobox (Company, Product, Product Line)</s>
Sample:
<pre>
<!-- This table controls the infobox seen by the user -->
{{infoboxtable
| Founded      = {{{Founded|}}}
| Industry      = {{{Industry|}}}
| Logo          = {{{Logo|}}}
| ParentCompany = {{{ParentCompany|}}}
| Type          = {{{Type|}}}
| Website      = {{{Website|}}}
}}


<!-- This table stores data used by backend wiki functionality. please do not deviate from the data schema found in [[link to wherever]] -->
*Get Jake versions of MediaWiki + any extensions involved with file uploading from Wayne's MediaWiki prototype repo because the behaviors are different and works more on the prototype
{{#cargo_store:_table=Company
*Lookup if it's possible to redirect to edit article after creating article via Page Forms
| Founded      = {{{Founded|}}}
*Create diagrams on search requirements (it's a big bucket)
| Industry      = {{{Industry|}}}
*Look into why <nowiki><noinclude>...</noinclude></nowiki> is showing up when included in preloads
| Logo          = {{{Logo|}}}
**The preload templates should be marked with: "'''<nowiki>[[Category:Article sample templates]]</nowiki>'''"
| ParentCompany = {{{ParentCompany|}}}
**The actual article page created with the preload should be marked with "'''<nowiki>[[Category:{{PAGENAME}}]]</nowiki>'''"
| Type          = {{{Type|}}}
| Website      = {{{Website|}}}
| Description  = {{{Description|}}}
}}
</pre>
*<s>'''[Priority]''' Add comment at the bottom of each entities' form to say "Click 'Save Page' to submit"</s>
*Look into <templateparams> for better Cargo table template info
*Look into <templateparams> for better Cargo table template info
'''Finished todos (to be deleted anytime after 1 week):'''
* ¯\_(ツ)_/¯


==Some random notes==
==Contribution==
*When making the swap on the "Create a Page" flow to use the new forms, instead of using:
<pre>
{{#tag:inputbox |
type=create
editintro=Project:Sample/Company/Help
placeholder=John Deere
break=no
useve=true
preload=Project:Sample/Company
}}
</pre>
swap out the above with:
<pre>
{{#forminput:form=Company
            |button text=Create page
            |preload=Template:CompanyPreload
}}
</pre>


{| class="wikitable"
{| class="wikitable"