| WikiSiteExtensionsParseContentAsync(WikiSite, String, String, String, ParsingOptions) Method |
This is preliminary documentation and is subject to change.
Parsing the specific page content and/or summary, gets HTML and more information. (MediaWiki 1.12)
Namespace: WikiClientLibrary.Pages.ParsingAssembly: WikiClientLibrary (in WikiClientLibrary.dll) Version: 0.9.0-int.2+447d1d590e6726b7881f750a0a0e42908f3e417e
Syntax public static Task<ParsedContentInfo> ParseContentAsync(
this WikiSite site,
string? content,
string? summary,
string? title,
ParsingOptions options
)
<ExtensionAttribute>
Public Shared Function ParseContentAsync (
site As WikiSite,
content As String,
summary As String,
title As String,
options As ParsingOptions
) As Task(Of ParsedContentInfo)
Dim site As WikiSite
Dim content As String
Dim summary As String
Dim title As String
Dim options As ParsingOptions
Dim returnValue As Task(Of ParsedContentInfo)
returnValue = site.ParseContentAsync(content,
summary, title, options)
public:
[ExtensionAttribute]
static Task<ParsedContentInfo^>^ ParseContentAsync(
WikiSite^ site,
String^ content,
String^ summary,
String^ title,
ParsingOptions options
)
[<ExtensionAttribute>]
static member ParseContentAsync :
site : WikiSite *
content : string *
summary : string *
title : string *
options : ParsingOptions -> Task<ParsedContentInfo>
Parameters
- site WikiSite
- The MediaWiki site to execute the request on.
- content String
- The content to parse.
- summary String
- The summary to parse. Can be null.
- title String
- Act like the wikitext is on this page.
This only really matters when parsing links to the page itself or subpages,
or when using magic words like {{PAGENAME}}.
If null is given, the default value "API" will be used.
- options ParsingOptions
- Options for parsing.
Return Value
TaskParsedContentInfoUsage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
WikiSite. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks If both title and contentModel is null, the content model will be assumed as wikitext.
See Also