User:Schang1146: Difference between revisions
Appearance
Schang1146 (talk | contribs) No edit summary |
Schang1146 (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
I do development-y stuff. Hope I don't break anything too bad 😬. | I do development-y stuff. Hope I don't break anything too bad 😬. | ||
==To-do list== | |||
* | *'''[Priority]''' Separate infobox from Cargo table template for entities: Company, Product, Product Line | ||
* For the | *'''[Priority]''' Update Company infobox field from <code>type</code> to <code>Legal structure</code> | ||
* | *'''[Priority]''' Change all date fields in forms for the entities: Company, Incident, Product, Product Line to be a text field w/ validation (if possible) | ||
*'''[Priority]''' Fix uploading logos for the entities: Company, Product, Product Line | |||
*'''[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) | |||
*'''[Priority]''' Add the following comments to the preload page of all entities with an infobox (Company, Product, Product Line) | |||
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]] --> | |||
{{#cargo_store:_table=Company | |||
| Founded = {{{Founded|}}} | |||
| Industry = {{{Industry|}}} | |||
| Logo = {{{Logo|}}} | |||
| ParentCompany = {{{ParentCompany|}}} | |||
| Type = {{{Type|}}} | |||
| Website = {{{Website|}}} | |||
| Description = {{{Description|}}} | |||
}} | |||
</pre> | |||
*'''[Priority]''' Add comment at the bottom of each entities' form to say "Click 'Save Page' to submit" | |||
*Look into <templateparams> for better Cargo table template info | |||
==Some random notes== | |||
* 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" | ||
|+ Contribution Scores | |+Contribution Scores | ||
! Score !! Pages !! Changes | !Score!!Pages!!Changes | ||
|- | |- | ||
| {{#cscore:Schang1146|score}} || {{#cscore:Schang1146|pages}} || {{#cscore:Schang1146|changes}} | |{{#cscore:Schang1146|score}}||{{#cscore:Schang1146|pages}}||{{#cscore:Schang1146|changes}} | ||
|} | |} |
Revision as of 17:13, 5 July 2025
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 😬.
To-do list
- [Priority] Separate infobox from Cargo table template for entities: Company, Product, Product Line
- [Priority] Update Company infobox field from
type
toLegal structure
- [Priority] Change all date fields in forms for the entities: Company, Incident, Product, Product Line to be a text field w/ validation (if possible)
- [Priority] Fix uploading logos for the entities: Company, Product, Product Line
- [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)
- [Priority] Add the following comments to the preload page of all entities with an infobox (Company, Product, Product Line)
Sample:
<!-- 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]] --> {{#cargo_store:_table=Company | Founded = {{{Founded|}}} | Industry = {{{Industry|}}} | Logo = {{{Logo|}}} | ParentCompany = {{{ParentCompany|}}} | Type = {{{Type|}}} | Website = {{{Website|}}} | Description = {{{Description|}}} }}
- [Priority] Add comment at the bottom of each entities' form to say "Click 'Save Page' to submit"
- Look into <templateparams> for better Cargo table template info
Some random notes
- When making the swap on the "Create a Page" flow to use the new forms, instead of using:
{{#tag:inputbox | type=create editintro=Project:Sample/Company/Help placeholder=John Deere break=no useve=true preload=Project:Sample/Company }}
swap out the above with:
{{#forminput:form=Company |button text=Create page |preload=Template:CompanyPreload }}
Score | Pages | Changes |
---|---|---|
51 | 27 | 168 |