page.save()
Purpose
Method page.save() saves (changes) any or all of the following data to a page:
- page source (Wikidot syntax),
- page title,
- the parent page's name, and/or
- the page tags.
As of 1241776860|today|agohover method page.save() is not yet enabled; it can be called, but it does nothing.
For more information see Piotr's API page.save blog.
All information presented here — syntax, arguments, return data — has to be verified.
Syntax
- page.save(
- {'site': 'site-name', 'page': 'page-name'
<, 'source': 'wikidot-source'>
<, 'title': 'page-title'>
<, 'parent_page': 'parent-page-name'>
<, 'tags': [tag-1 <, tag-2 <, …> > ]>
<, 'tags': 'tag-string'>
})
where “< … >” denote optional arguments.
Arguments
- site-name
- the name of the site to which the page belongs
- page-name
- the name of the page to save; either of the form category:page, or, page if the page is in the default category
- wikidot-source
- the new Wikidot source that the page should be changed to
- page-title
- the new page title to be set
- parent-page-name
- the name of the new parent page to be set
- tag-x
- a list of new tags to be set
- tag-string
- a string of new tags to be set
Returns
Currently None is returned — this may be due to the fact that page.save() has not been enabled yet.