changeset 1935:de876a893568

Improve the map search help texts.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Nov 2017 05:36:09 +0200
parents 7315a0943084
children fe32111858f6
files www/search.php
diffstat 1 files changed, 16 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/www/search.php	Mon Nov 13 05:35:47 2017 +0200
+++ b/www/search.php	Mon Nov 13 05:36:09 2017 +0200
@@ -20,6 +20,7 @@
 <div id="locSearchBox">
   <h2>Location name search</h2>
   <input type="text" id="locPattern" autocomplete="off" maxlength="30" size="30">
+  Quick location name search. For example try typing "ferry".
 </div>
 
 <div id="mapSearchBox">
@@ -41,17 +42,26 @@
 <div id="note">
   <ol>
     <li>The following characters act as wildcards (they match any character):
-      <b>*</b>, <b>@</b>, <b>?</b>, <b>%</b>, <b>C</b>, <b>X</b> and
-      whitespace, thus searching <i>exact</i> matches for player cities
-      (C), shrine (%) and location markers (?) is not possible.</li>
+      <b>*</b>, <b>@</b>, <b>X</b>, <b>?</b>, <b>%</b>, <b>C</b> and
+      <b>whitespace</b>, thus searching <i>exact</i> matches for player cities
+      (C), shrines (%) and location markers (?) is not possible.
+    </li>
     <li><b>*</b>, <b>@</b> and <b>X</b> will be used to center the
       search coordinates if they are present in the pattern. If no such
       character is present, the coordinates listed in search results
-      will be for the <i>top-left corner of the search pattern</i>.</li>
-    <li>Obviously the search pattern must be "clean", e.g. output from
+      will be for the <i>top-left corner of the search pattern</i>.
+    </li>
+    <li>The search pattern must be "clean", e.g. output from
       'look' with ships/NPCs/etc or direct copy-paste with anything
       extranous other than the map data itself <b>will not work</b>.
-      </li>
+      Output of 'map' command is good, also 'wizard eye' spell.
+      For other sources you will have to be creative and careful with copy-pasting.
+      <button id="btnExample" type="button" title="Show random example search.">Click for random example search pattern</button>
+    </li>
+    <li>Remember that only the selected maps will be searched for matches.
+      If you get no results, perhaps you have unselected the one that has
+      the spot?
+    </li>
   </ol>
 </div>