DotNetWikiBot Framework Documentation
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Returns the complete template in double braces.
Formats a template with the specified title and parameters, allows extended
format options to be specified.
Namespace: DotNetWikiBotAssembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Syntax
C# |
---|
public static string FormatTemplate( string templateTitle, Dictionary<string, string> templateParams, bool inline, bool withoutSpaces, int padding ) |
Parameters
- templateTitle
- Type: System..::..String
Template's title.
- templateParams
- 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.
- inline
- Type: System..::..Boolean
When set to true, template is formatted in one line, without any line breaks. Default value is false.
- withoutSpaces
- Type: System..::..Boolean
When set to true, template is formatted without spaces. Default value is false.
- padding
- 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: StringReturns the complete template in double braces.