wdpr
    Preparing search index...
    • Parse a boolean value from a Wikidot attribute string.

      Wikidot accepts both "yes"/"no" and "true"/"false" as boolean attribute values. If the value does not match any recognized boolean string, the default is returned.

      Parameters

      • value: string | undefined

        The attribute string value, or undefined if the attribute was not specified

      • defaultValue: boolean

        Value to return when the attribute is undefined or unrecognized

      Returns boolean

      The parsed boolean value