DotNetWikiBot Framework Documentation
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Returns parameter as string or empty string "".
This helper method returns specified parameter of a first found instance of
specified template. If no such template or no such parameter was found,
empty string "" is returned.
Namespace: DotNetWikiBotAssembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Syntax
C# |
---|
public string GetFirstTemplateParameter( string templateTitle, string templateParameter ) |
Parameters
- templateTitle
- Type: System..::..String
Title of template to get parameter of.
- templateParameter
- Type: System..::..String
Title of template's parameter. If parameter is untitled, specify it's number as string. If parameter is titled, but it's number is specified, the function will return empty List <string> object.
Return Value
Type: StringReturns parameter as string or empty string "".
Remarks
Thanks to Eyal Hertzog and metacafe.com team for idea of this
function.