Function
docutils.parsers.rst.roles.role

Signature

role(role_name, language_module, lineno, reporter)

Documentation String

Locate and return a role function from its language-dependent name, along with a list of system messages. If the role is not found in the current language, check English. Return a 2-tuple: role function (None if the named role cannot be found) and a list of system messages.