DotNetWikiBot Framework Documentation
Formats a template with the specified title and parameters, allows extended format options to be specified.

Namespace: DotNetWikiBot
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version:


public static string FormatTemplate(
	string templateTitle,
	Dictionary<string, string> templateParams,
	bool inline,
	bool withoutSpaces,
	int padding


Type: System..::..String
Template's title.
Type: System.Collections.Generic..::..Dictionary<(Of <(<'String, String>)>)>
Template's parameters in Dictionary <string, string> object, where keys are parameters titles and values are parameters values.
Type: System..::..Boolean
When set to true, template is formatted in one line, without any line breaks. Default value is false.
Type: System..::..Boolean
When set to true, template is formatted without spaces. Default value is false.
Type: System..::..Int32
When set to positive value, template parameters titles are padded on the right with specified number of spaces, so "=" characters could form a nice straight column. When set to -1, the number of spaces is calculated automatically. Default value is 0 (no padding). The padding will occur only when "inline" option is set to false and "withoutSpaces" option is also set to false.

Return Value

Type: String
Returns the complete template in double braces.

See Also