Demo VisualData 1.0
No edit summary |
No edit summary |
||
Line 54: | Line 54: | ||
</pre> | </pre> | ||
A Pageproperties' form can edit whatever page (through the parameter <code>edit-page</code>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 | The infobox is rendered through the following code |
Revision as of 12:22, 26 October 2023
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 }}
{{#pagepropertiesprint: Demo VisualData |?cover |?title |?authors/name |?authors/email |schema=Book |template=Book |template?authors=Book authors }}
pageproperties
schemas |
| ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
schemas-data |
|