Description Usage Arguments Examples
get_nodes
retrieves nodes
of various (user-specified) types from a blob of
read-in wikitext. These are returned as a list
of node objects, which can be passed on to
other functions to retrieve components thereof.
1 2 |
wikitext |
a chunk of wikitext read in with
|
types |
which type(s) of node to read in. You can pass in whichever number of supported types you want. |
1 2 3 4 5 6 7 8 | ## Not run:
text <- "this [[is|some]] {{wikitext}}"
parsed_text <- read_wikitext(text)
some_nodes <- get_nodes(parsed_text, types = c("wikilinks", "templates"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.