DotNetWikiBot Framework Documentation
Assembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Returns the number of modified values.
Sets the specified parameter of the specified template to new value.
If several instances of specified template are found in text of this page, either
first value can be set, or all values in all instances.
Namespace: DotNetWikiBotAssembly: DotNetWikiBot (in DotNetWikiBot.dll) Version: 0.0.0.0
Syntax
C# |
---|
public int SetTemplateParameter( string templateTitle, string templateParameter, string newParameterValue, bool firstTemplateOnly ) |
Parameters
- templateTitle
- Type: System..::..String
Title of template.
- templateParameter
- Type: System..::..String
Title of template's parameter.
- newParameterValue
- Type: System..::..String
New value to set the parameter to.
- firstTemplateOnly
- Type: System..::..Boolean
When set to true, only first found template instance is modified. When set to false, all found template instances are modified.
Return Value
Type: Int32Returns the number of modified values.
Remarks
Thanks to Eyal Hertzog and metacafe.com team for idea of this
function.