Demo VisualData 1.0
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{#pagepropertiesprint: {{FULLPAGENAME}} | |||
|?cover | |||
|?title | |||
|?authors/name | |||
|?authors/email | |||
|schema=Book | |||
|template=Book | |||
|template?authors=Book authors | |||
}} | |||
This is a page with an infobox that demonstrates the use of PageProperties ([https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageProperties/+/968230 latest version]) used as a [https://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD] | This is a page with an infobox that demonstrates the use of PageProperties ([https://gerrit.wikimedia.org/r/c/mediawiki/extensions/PageProperties/+/968230 latest version]) used as a [https://en.wikipedia.org/wiki/Create,_read,_update_and_delete CRUD] | ||
Line 72: | Line 82: | ||
</pre> | </pre> | ||
Revision as of 12:22, 26 October 2023
{{#pagepropertiesprint: Demo VisualData |?cover |?title |?authors/name |?authors/email |schema=Book |template=Book |template?authors=Book authors }}
This is a page with an infobox that demonstrates the use of PageProperties (latest version) used as a CRUD
Click the button below to edit the article's metadata through a popup or the tab "Edit semantic" among the article's actions.
{{#pagepropertiesform: Book
|title = edit infobox and page
|action = edit
|edit-page = Demo VisualData
|return-page =
|view = popup
|popup-size = medium
|css-class =
|pagename=formula =
|edit-freetext = true
|edit-categories = false
|edit-content-model = false
|default-categories =
|default-content-model = wikitext
|layout-align = top
|popup-help = true
|submit-button-text =
|layout = tabs
|submit-button-text =
|validate-button-text =
}}
The popup is rendered using the following code
{{#pagepropertiesform: Book |title = edit infobox and page |action = edit |edit-page = {{FULLPAGENAME}} |return-page = |view = popup |popup-size = medium |css-class = |pagename=formula = |edit-freetext = true |edit-categories = false |edit-content-model = false |default-categories = |default-content-model = wikitext |layout-align = top |popup-help = true |submit-button-text = |layout = tabs |submit-button-text = |validate-button-text = }}
A Pageproperties' form can edit whatever page (through the parameter edit-page
and create new pages using a pagename formula. It is json/schema compliant and can handle subitems, multiple fields and multiple sub items. It is deeply integrated with the OOUI library and uses a lot or most of its features.
The infobox is rendered through the following code
{{#pagepropertiesprint: {{FULLPAGENAME}} |?cover |?title |?authors/name |?authors/email |schema=Book |template=Book |template?authors=Book authors }}
pageproperties
schemas |
| ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
schemas-data |
|