Wiki Help/Wiki Macros/Title Search
[[TitleSearch]] provides opportunities to do searches in the page titles on the current site. The result can be shown in different styles, and can be used several places. One use is to make a index of the whole site (see WikiTools/PagesIndex), another is to list out all pages related to a given subject.
Basic use
The basic use is to write [[TitleSearch <search-pattern>]] where search pattern can be constructed according to the following table:
| Pattern | Will return... |
| * | All pages |
| ^Tavi | All pages starting with Tavi |
| Tikki | All pages having Tikki within the page name |
| Pages$ | All pages ending with Pages |
| (*)/Intro$ | All pages ending in Intro, but only the leading part will show as the link |
| ^Blog/200303*:(*) | I.e. if having pages named: ((Blog/20030301: Extending titlesearch)) this pattern would match all entries from March 2004, and display the title, 'Extending titlesearch' |
Note that all alphanumeric characters and / are allowed in the search pattern, as well as the following characters: :;-_
Using styles
The result of the search can have different views. This is accomplished through the use of curly options, and the list of available options are:
| Option | Value | Description |
| delimiter | <string> | Uses <string> instead of ', ' between items |
| index | <number> | Changes the output to include headings (level 2) as shown on TitleSearch?. The <number>, if present, indicates which character to use for changing headers. See example |
| class | <string> | Names the class used for the <ul>-list the results are presented in |
| class | prelist | A special class which displays the list as the old macros presented results |
| style | <string> | Appends <string> to a style-attribute of the resulting <ul>-list |
| list | - | Displays the search result as a list |
| oneline | - | Displays the search result as a line to be used within a paragraph |