Parameter: |
Description: |
Default: |
type="topicmoved" |
What sort of search is required?
"topicmoved" if search for a topic that may have been moved
"parent" if searching for topics that have a specific parent i.e. its children
"field" if searching for topics that have a particular form field value (use the name and value parameters to specify which field to search) |
Required |
web="%WEB%" |
Wiki web to search: A web, a list of webs separated by whitespace, or all webs. |
Current web |
topic="%TOPIC%" |
The topic the search relates to, for topicmoved and parent searches |
All topics in a web |
name |
form field to search, for field type searches. May be a regular expression (see [[Main/VarSEARCH]]). |
|
value |
form field value, for field type searches. May be a regular expression (see [[Main/VarSEARCH]]). |
|
title="Title" |
Text that is prefixed to any search results |
empty |
format="..." |
Custom format results. Supports same format strings as [[Main/VarSEARCH]]. See [[Main/FormattedSearch]] for usage, variables & examples |
Results in table |
default="none" |
Default text shown if no search hit |
Empty |
- Example: `%METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%`
- Example: You may want to use this in [[WebTopicViewTemplate]] and [[WebTopicNonWikiTemplate]]: