Render an inline formset of tags.
    
    Usage:
        {% zotero_inline_tags formset[ option] %}
        option = "all" | "media" | "formset"

def zotero_inline_tags(parser, token):
    """
    Render an inline formset of tags.
    
    Usage:
        {% zotero_inline_tags formset[ option] %}
        option = "all" | "media" | "formset"
    """
    
    args = token.split_contents()
    length = len(args)
    if length == 2:
        rendered_node = RenderedAllNode(args[1])
    elif length == 3 and args[2].lower() == u'all':
        rendered_node = RenderedAllNode(args[1])
    elif length == 3 and args[2].lower() == u'media':
        rendered_node = RenderedMediaNode(args[1])
    elif length == 3 and args[2].lower() == u'formset':
        rendered_node = RenderedFormsetNode(args[1])
    else:
        raise t.TemplateSyntaxError('Incorrect arguments in %s.' % args[0])
    
    return rendered_node