1 <a name="VarMETASEARCH"></a>
3 ### <a name="METASEARCH -- special search of"></a><a name="METASEARCH -- special search of "></a> METASEARCH -- special search of meta data
5 - Syntax: `%METASEARCH{...}%`
6 - Supported parameters: <table border="1" cellpadding="0" cellspacing="0">
8 <th bgcolor="#99CCCC"><strong> Parameter: </strong></th>
9 <th bgcolor="#99CCCC"><strong> Description: </strong></th>
10 <th bgcolor="#99CCCC"><strong> Default: </strong></th>
13 <td><code>type="topicmoved"</code></td>
14 <td> What sort of search is required? <br /><code>"topicmoved"</code> if search for a topic that may have been moved <br /><code>"parent"</code> if searching for topics that have a specific parent i.e. its children <br /><code>"field"</code> if searching for topics that have a particular form field value (use the <code>name</code> and <code>value</code> parameters to specify which field to search) </td>
18 <td><code>web="%WEB%"</code></td>
19 <td> Wiki web to search: A web, a list of webs separated by whitespace, or <code>all</code> webs. </td>
20 <td> current web </td>
23 <td><code>topic="%TOPIC%"</code></td>
24 <td> The topic the search relates to, for <code>topicmoved</code> and <code>parent</code> searches </td>
25 <td> current topic </td>
28 <td><code>name</code></td>
29 <td> form field to search, for <code>field</code> type searches. May be a regular expression (see [[Main/WebHome#VarSEARCH]]). </td>
33 <td><code>value</code></td>
34 <td> form field value, for <code>field</code> type searches. May be a regular expression (see [[Main/WebHome#VarSEARCH]]). </td>
38 <td><code>title="Title"</code></td>
39 <td> Text that is prefixed to any search results </td>
43 <td><code>default="none"</code></td>
44 <td> Default text shown if no search hit </td>
48 - Example: `%METASEARCH{type="topicmoved" web="%WEB%" topic="%TOPIC%" title="This topic used to exist and was moved to: "}%`
49 - Example: You may want to use this in [[WebTopicViewTemplate]] and [[WebTopicNonWikiTemplate]]:<br />`%METASEARCH{type="parent" web="%WEB%" topic="%TOPIC%" title="Children: "}%`
50 - Example: `%METASEARCH{type="field" name="Country" value="China"}%`
51 - Related: [[SEARCH|Main/WebHome#VarSEARCH]], [[META|Main/WebHome#VarMETA]]
53 **_Related Topics:_** [[UserDocumentationCategory]]
55 **_Note:_** This topic is included by [[TWikiVariables]]