{# Copyright (C) 2006 Alec Thomas Copyright (C) 2010-2013 Steffen Hoffmann Copyright (C) 2021 Cinc This software is licensed as described in the file COPYING, which you should have received as part of this distribution. #} # extends 'layout.html' # block title # if page_title: ${page_title} # else: ${_("Tags")} # endif ${ super() } # endblock # block head ${ super() } # endblock # block content
# for realm in tag_realms: # endfor
# if tag_query_error:
${_("Error:")} ${tag_query_error}
# endif

${_("Query syntax:")}

    # trans
  • Use tag1 tag2 to match all tags.
  • tag1 or tag2 will match any tag.
  • Negate a tag with -tag1.
  • Group sub-queries with (tag1 or tag2).
  • Quote strings to include special characters.
  • Restrict search to a specific realm with realm:wiki.
  • # endtrans
# if tag_query and tag_page and tag_page.exists and 'WIKI_VIEW' in perm(tag_page.resource):

# set url = href.wiki(tag_page.name) # trans query = tag_query Showing objects tagged with '${query}' # endtrans

# elif tag_query and tag_page:

# trans query = tag_query Showing objects tagged with '${query}' # endtrans

# elif tag_query:

# trans query = tag_query Showing objects matching '${query}' # endtrans

# endif # if tag_page and not tag_page.exists and 'WIKI_CREATE' in perm:

# set url = href.wiki(tag_page.name, action='edit', text='= %s =\n\n[[ListTagged(%s)]]' % (tag_page.name, tag_page.name)) # trans Create Wiki page for this tag # endtrans

# endif ${tag_body} # if mincount > 1:

# set url = href.tags(realm_args, mincount=1) # trans mincount Showing only tags with ${mincount} or more occurrences (view all tags)

# endtrans # endif
# endblock