Handbook
Glossary
page-content ( title -- content )
MediaWiki API
Prev:
query ( params -- seq )
Next:
token-call ( params -- assoc )
Vocabulary
mediawiki
.
api
Inputs
title
a page title
Outputs
content
a page content
Word description
Gets the page content of the most current revision.
Definition
USING:
assocs
assocs.extras
kernel
mediawiki.api.private
namespaces
sequences
;
IN:
mediawiki.api
::
page-content
( title -- content )
{
{
"action"
"query"
}
{
"prop"
"revisions"
}
{
"rvprop"
{
"content"
"timestamp"
}
}
{
"rvlimit"
1
}
{
"rvslots"
"main"
}
{
"titles"
title
}
{
"curtimestamp"
t
}
}
api-call
[
"curtimestamp"
of
curtimestamp
set-global
]
[
"query"
of
"pages"
"revisions"
[
of
first
]
bi@
[
"timestamp"
of
basetimestamp
set-global
]
[
{
"slots"
"main"
"content"
}
deep-of
]
bi
]
bi
;