Proposal for Dynamic wiki content (tables etc) - page-components
V
Vinod Kulkarni
There are different variations of dynamically generated wiki content, content may come from other sites. Here, I am proposing a Vue based component approach, which will open totally new possibilities of what we can do in wiki pages. I have submitted a pull-request for this feature called page-components.
Will explain in detail in comments below.
V
Vinod Kulkarni
Attaching the screenshot of table, and the page source that gives that table. The source is using page-component feature to define this new GenericTable component.
V
Vinod Kulkarni
Many want to create good looking tables in wiki. How about a simple approach such as this?
<page-component>
<simple-table>
[ [ "Name", "Age", "City"],
[ "John", "23", "SFO"],
...
]
</simple-table>
</page-component>
And, in /Components/SimpleTable wiki page, this component is defined as Vue component. As such, one can adjust the styles there to their taste. A different component, "ComplexTable" may provide more involved options. Bootstrap tables are very powerful, and they can be customized for use by wiki users.
Components are for general purpose. By making them editable in wiki, we are directly enabling power users to help end users. As such, they can be used to create any kind of widgets (say, weather widget). Or one may use headless CMS like strapi or the new Microsoft Lists, and present data in nice form in the wiki page.
This has already been submitted as pull-request https://github.com/Requarks/wiki/issues/1895, but whether design is right needs to be discussed. Also, some issues need to be resolved to make it fully functional.