iddevnet/quake4/HelpOnSearching.html

254 lines
15 KiB
HTML
Raw Normal View History

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="robots" content="index,nofollow">
<title>HelpOnSearching - Quake 4 SDK Documentation</title>
<script type="text/javascript" src="wiki/common/js/common.js"></script>
<script type="text/javascript">
<!--// common functions
// We keep here the state of the search box
searchIsDisabled = false;
function searchChange(e) {
// Update search buttons status according to search box content.
// Ignore empty or whitespace search term.
var value = e.value.replace(/\s+/, '');
if (value == '' || searchIsDisabled) {
searchSetDisabled(true);
} else {
searchSetDisabled(false);
}
}
function searchSetDisabled(flag) {
// Enable or disable search
document.getElementById('fullsearch').disabled = flag;
document.getElementById('titlesearch').disabled = flag;
}
function searchFocus(e) {
// Update search input content on focus
if (e.value == 'Search') {
e.value = '';
e.className = '';
searchIsDisabled = false;
}
}
function searchBlur(e) {
// Update search input content on blur
if (e.value == '') {
e.value = 'Search';
e.className = 'disabled';
searchIsDisabled = true;
}
}
function actionsMenuInit(title) {
// Initialize action menu
for (i = 0; i < document.forms.length; i++) {
var form = document.forms[i];
if (form.className == 'actionsmenu') {
// Check if this form needs update
var div = form.getElementsByTagName('div')[0];
var label = div.getElementsByTagName('label')[0];
if (label) {
// This is the first time: remove label and do buton.
div.removeChild(label);
var dobutton = div.getElementsByTagName('input')[0];
div.removeChild(dobutton);
// and add menu title
var select = div.getElementsByTagName('select')[0];
var item = document.createElement('option');
item.appendChild(document.createTextNode(title));
item.value = 'show';
select.insertBefore(item, select.options[0]);
select.selectedIndex = 0;
}
}
}
}
//-->
</script>
<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="wiki/modern/css/common.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="wiki/modern/css/screen.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="print" href="wiki/modern/css/print.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="projection" href="wiki/modern/css/projection.css">
<!-- css only for MSIE browsers -->
<!--[if IE]>
<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="wiki/modern/css/msie.css">
<![endif]-->
<link rel="Start" href="./Quake4SDK.html">
2021-04-10 13:40:18 +00:00
<link rel="Alternate" title="Wiki Markup" href="./HelpOnSearching?action=raw">
<link rel="Alternate" media="print" title="Print View" href="./HelpOnSearching?action=print">
<link rel="Search" href="./FindPage.html">
<link rel="Index" href="./TitleIndex.html">
<link rel="Glossary" href="./WordIndex.html">
<link rel="Help" href="./HelpOnFormatting.html">
</head>
<body lang="en" dir="ltr">
<div id="header">
<div id="logo"><a href="./Quake4SDK.html"><img src="wiki/common/moinmoin.png" alt="MoinMoin Logo"></a></div>
<form id="searchform" method="get" action="">
<div>
<input type="hidden" name="action" value="fullsearch">
<input type="hidden" name="context" value="180">
<label for="searchinput">Search:</label>
<input id="searchinput" type="text" name="value" value="" size="20"
onfocus="searchFocus(this)" onblur="searchBlur(this)"
onkeyup="searchChange(this)" onchange="searchChange(this)" alt="Search">
<input id="titlesearch" name="titlesearch" type="submit"
value="Titles" alt="Search Titles">
<input id="fullsearch" name="fullsearch" type="submit"
value="Text" alt="Search Full Text">
</div>
</form>
<script type="text/javascript">
<!--// Initialize search form
var f = document.getElementById('searchform');
f.getElementsByTagName('label')[0].style.display = 'none';
var e = document.getElementById('searchinput');
searchChange(e);
searchBlur(e);
//-->
</script>
2021-04-10 13:40:18 +00:00
<ul id="username"><li><a href="./HelpOnSearching?action=login" id="login">Login</a></li></ul>
<div id="locationline">
<ul id="pagelocation">
2021-04-10 13:40:18 +00:00
<li><a class="backlink" title="Click to do a full-text search for this title" href="./HelpOnSearching?action=fullsearch&amp;value=linkto%3A%22HelpOnSearching%22&amp;context=180">HelpOnSearching</a></li>
</ul>
</div>
<ul id="navibar">
<li class="wikilink"><a href="./GettingStarted.html">GettingStarted</a></li><li class="wikilink"><a href="./ScriptFile.html">ScriptFile</a></li><li class="wikilink"><a href="./MakeAMod.html">MakeAMod</a></li><li class="wikilink"><a href="./LevelEditor.html">LevelEditor</a></li><li class="wikilink"><a href="./FXEditor.html">FXEditor</a></li><li class="wikilink"><a href="./GUIEditor.html">GUIEditor</a></li><li class="wikilink"><a href="./Sounds.html">Sounds</a></li><li class="wikilink"><a href="./Animations.html">Animations</a></li><li class="wikilink"><a href="./ArtReference.html">ArtReference</a></li><li class="wikilink"><a href="./DownloadableContent.html">DownloadableContent</a></li><li class="wikilink"><a href="./RecentChanges.html">RecentChanges</a></li><li class="wikilink"><a href="./FindPage.html">FindPage</a></li><li class="wikilink"><a href="./HelpContents.html">HelpContents</a></li><li class="current"><a href="./HelpOnSearching.html">HelpOnSearching</a></li>
</ul>
<div id="pageline"><hr style="display:none;"></div>
2021-04-10 13:40:18 +00:00
<ul class="editbar"><li><span class="disabled">Immutable Page</span></li><li><a href="./HelpOnSearching?action=info">Info</a></li><li><a href="./HelpOnSearching?action=AttachFile">Attachments</a></li><li>
<form class="actionsmenu" method="get" action="">
<div>
<label>More Actions:</label>
<select name="action"
onchange="if ((this.selectedIndex != 0) &&
(this.options[this.selectedIndex].disabled == false)) {
this.form.submit();
}
this.selectedIndex = 0;">
<option value="raw">Raw Text</option>
<option value="print">Print View</option>
<option value="RenderAsDocbook">Render as Docbook</option>
<option value="refresh">Delete Cache</option>
<option value="show" disabled class="disabled">------------</option>
<option value="SpellCheck">Check Spelling</option>
<option value="LikePages">Like Pages</option>
<option value="LocalSiteMap">Local Site Map</option>
<option value="show" disabled class="disabled">------------</option>
<option value="RenamePage" disabled class="disabled">Rename Page</option>
<option value="DeletePage" disabled class="disabled">Delete Page</option>
<option value="show" disabled class="disabled">------------</option>
<option value="MyPages">My Pages</option>
<option value="SubscribeUser">Subscribe User</option>
<option value="show" disabled class="disabled">------------</option>
<option value="Despam">Remove Spam</option>
<option value="PackagePages">Package Pages</option>
</select>
<input type="submit" value="Do">
</div>
<script type="text/javascript">
<!--// Init menu
actionsMenuInit('More Actions:');
//-->
</script>
</form>
</li></ul>
</div>
<div id="page" lang="en" dir="ltr">
<div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span>
<span class="anchor" id="line-8"></span><span class="anchor" id="line-9"></span><p class="line867">
<h1 id="head-e8b204d51c2b2ec78708e2ff72413e6178e1799f">Queries</h1>
<span class="anchor" id="line-10"></span><span class="anchor" id="line-11"></span><p class="line862">With the <a href="./MoinMoin.html">MoinMoin</a> search engine the same search patterns are allowed in the search and title search input fields as in the parameters for the <tt>FullSearch</tt> and the <tt>PageList</tt> macros. <span class="anchor" id="line-12"></span><span class="anchor" id="line-13"></span><ul><li>There may be several search term seperated by white space <span class="anchor" id="line-14"></span><ul><li>Terms are combined by default with an AND operation - only pages containing all search term are returned <span class="anchor" id="line-15"></span></li><li>Double or single quotes may be used to include white space into search terms. <span class="anchor" id="line-16"></span></li></ul></li><li><p class="line891"><tt>-</tt> before a search term means NOT - pages containing this term are excluded from the result <span class="anchor" id="line-17"></span></li><li><p class="line891"><tt>regex:TERM</tt> is treated as regular expression <span class="anchor" id="line-18"></span></li><li><p class="line891"><tt>title:TERM</tt> searches in pages that their titles match TERM <span class="anchor" id="line-19"></span><ul><li>Normal search terms do search the titles, too. Matches in titles get more weight as matches in pages. <span class="anchor" id="line-20"></span></li></ul></li><li><p class="line891"><tt>case:TERM</tt> searches case sensitive <span class="anchor" id="line-21"></span></li><li><p class="line891"><tt>linkto:TERM</tt> searches for links to TERM <span class="anchor" id="line-22"></span></li><li><p class="line891"><tt>title:</tt>, <tt>regex:</tt>, <tt>linkto:</tt> and <tt>case:</tt> may be used in combination in one search term <span class="anchor" id="line-23"></span><ul><li><p class="line862">these modifiers may be abbreviated to any length: e. g. <tt>re:</tt>, <tt>t:</tt>, <tt>reg:</tt>, <tt>cas:</tt>, <tt>l:</tt> <span class="anchor" id="line-24"></span></li><li><p class="line891"><tt>-</tt> must be put before any other modifiers <span class="anchor" id="line-25"></span></li></ul></li><li><p class="line891"><tt>or</tt> operator has a lower precedence than the implicit AND <span class="anchor" id="line-26"></span></li><li>Parentheses can be used for grouping <span class="anchor" id="line-27"></span><span class="anchor" id="line-28"></span></li></ul><p class="line867">
<h2 id="head-6f8e9e70d1510805dd3a13bb693142f256c5003d">Examples</h2>
<span class="anchor" id="line-29"></span><span class="anchor" id="line-30"></span><p class="line867"><span class="anchor" id="line-31"></span><pre>title:Help macro
<span class="anchor" id="line-32"></span></pre><span class="anchor" id="line-33"></span><p class="line874">searches for help pages that contain the word "macro". <span class="anchor" id="line-34"></span><span class="anchor" id="line-35"></span><p class="line867"><span class="anchor" id="line-36"></span><pre>apple (computer or "operating system")
<span class="anchor" id="line-37"></span></pre><span class="anchor" id="line-38"></span><p class="line874">searches for pages containing the word "apple" and at least one of "computer" or "operating system". <span class="anchor" id="line-39"></span><span class="anchor" id="line-40"></span><p class="line867"><span class="anchor" id="line-41"></span><pre>windows winamp or linux xmms
<span class="anchor" id="line-42"></span></pre><span class="anchor" id="line-43"></span><p class="line874">searches for pages containing both "windows" and "winamp", and also for pages containing both "linux" and "xmms". <span class="anchor" id="line-44"></span><span class="anchor" id="line-45"></span><p class="line867"><span class="anchor" id="line-46"></span><pre>"is text"
<span class="anchor" id="line-47"></span></pre><span class="anchor" id="line-48"></span><p class="line862">Will match "th<strong>is text</strong>" or "<strong>is text</strong>s". Quotes are used only to include whitespace, and do not mean "exactly this phrase". <span class="anchor" id="line-49"></span><span class="anchor" id="line-50"></span><p class="line867"><span class="anchor" id="line-51"></span><pre>linkto:WindowsPage title:Linux
<span class="anchor" id="line-52"></span></pre><p class="line862"> searches for pages that have "Linux" in the page name and that link to WindowsPage<span class="anchor" id="line-53"></span><span class="anchor" id="line-54"></span><p class="line867"><span class="anchor" id="line-55"></span><pre>r:\bdog\b
<span class="anchor" id="line-56"></span></pre><p class="line862"> searches for the word "dog" and does <em>not</em> find e.g. the word "doggy"<span class="anchor" id="line-57"></span><span class="anchor" id="line-58"></span><p class="line867">
<h2 id="head-c8ae2de9d1eed6db4bf9247c1c99f48d65958063">TitleSearch and PageList</h2>
<span class="anchor" id="line-59"></span><ul><li>uses the same patterns <span class="anchor" id="line-60"></span></li><li><p class="line891"><tt>title:</tt> is virtually added to every search term <span class="anchor" id="line-61"></span></li></ul><span class="anchor" id="bottom"></span></div><p id="pageinfo" class="info" lang="en" dir="ltr">HelpOnSearching (last modified 2007-04-08 01:53:22)</p>
<div id="pagebottom"></div>
</div>
<div id="footer">
2021-04-10 13:40:18 +00:00
<ul class="editbar"><li><span class="disabled">Immutable Page</span></li><li><a href="./HelpOnSearching?action=info">Info</a></li><li><a href="./HelpOnSearching?action=AttachFile">Attachments</a></li><li>
<form class="actionsmenu" method="get" action="">
<div>
<label>More Actions:</label>
<select name="action"
onchange="if ((this.selectedIndex != 0) &&
(this.options[this.selectedIndex].disabled == false)) {
this.form.submit();
}
this.selectedIndex = 0;">
<option value="raw">Raw Text</option>
<option value="print">Print View</option>
<option value="RenderAsDocbook">Render as Docbook</option>
<option value="refresh">Delete Cache</option>
<option value="show" disabled class="disabled">------------</option>
<option value="SpellCheck">Check Spelling</option>
<option value="LikePages">Like Pages</option>
<option value="LocalSiteMap">Local Site Map</option>
<option value="show" disabled class="disabled">------------</option>
<option value="RenamePage" disabled class="disabled">Rename Page</option>
<option value="DeletePage" disabled class="disabled">Delete Page</option>
<option value="show" disabled class="disabled">------------</option>
<option value="MyPages">My Pages</option>
<option value="SubscribeUser">Subscribe User</option>
<option value="show" disabled class="disabled">------------</option>
<option value="Despam">Remove Spam</option>
<option value="PackagePages">Package Pages</option>
</select>
<input type="submit" value="Do">
</div>
<script type="text/javascript">
<!--// Init menu
actionsMenuInit('More Actions:');
//-->
</script>
</form>
</li></ul>
<ul id="credits">
<li><a href="http://moinmoin.wikiwikiweb.de/">MoinMoin Powered</a></li><li><a href="http://www.python.org/">Python Powered</a></li><li><a href="http://validator.w3.org/check?uri=referer">Valid HTML 4.01</a></li>
</ul>
</div>
</body>
</html>