Difference between revisions of "Help:Search Terms"
imported>DragoonWraith m (formatting) |
imported>DragoonWraith m (Portal:Scripting/Search Terms moved to Help:Search Terms: this is really a general thing, not just a Scripting thing.) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
"Search Terms" are words that a page ''ought'' to be searchable for, but for whatever reason the page is not showing up for that search. There are a number of reasons why this might happen; most notably, substrings do not return in searches. This means that, for example, [[GetItemCount]] | "Search Terms" are words that a page ''ought'' to be searchable for, but for whatever reason the page is not showing up for that search. There are a number of reasons why this might happen; most notably, substrings do not return in searches. This means that, for example, [[GetItemCount]] would not come up in a search of "Item", because the search function does not check parts of words. | ||
However, this can be fixed by adding these words to the page. For the most part, if these words are not already in use it would probably be awkward to add them, so they are added behind the scenes with an HTML comment - like this: | However, this can be fixed by adding these words to the page. For the most part, if these words are not already in use it would probably be awkward to add them, so they are added behind the scenes with an HTML comment - like this: | ||
Line 6: | Line 6: | ||
elephant | elephant | ||
Sears | Sears | ||
End Search Terms --></nowiki> | |||
Now this page will show up in a search for "banana", "elephant", or "Sears". The <nowiki><!-- and --></nowiki> tags are the beginnings an end of the HTML comment, and the "Begin" and "End" notes are added to explain what the comment is being used for. | Now this page will show up in a search for "banana", "elephant", or "Sears", but visitors would never see this list. The <nowiki><!-- and --></nowiki> tags are the beginnings an end of the HTML comment, and the "Begin" and "End" notes are added to explain what the comment is being used for. | ||
One of the most important places to add search terms is to each of the functions in the game. Because functions are all a single word, a Search Term list should be made for each one, with each part of the function name in it. | One of the most important places to add search terms is to each of the functions in the game. Because functions are all a single word, a Search Term list should be made for each one, with each part of the function name in it. | ||
For example, | For example, this was added to the top of [[GetItemCount]]: | ||
<nowiki><!-- Begin Search Terms | <nowiki><!-- Begin Search Terms | ||
Get | Get | ||
Item | Item | ||
Count | Count | ||
End Search Terms --> | |||
'''Syntax:''' | |||
[''ActorID''|''ContainerID''.]GetItemCount ''ObjectID''</nowiki> | |||
Now a search for "Get", "Item", or "Count" will return GetItemCount. Of course, once this project is completed, many other things will too, but it should make the Search function far more robust. | Now a search for "Get", "Item", or "Count" will return GetItemCount. Of course, once this project is completed, many other things will too, but it should make the Search function far more robust. |
Latest revision as of 08:24, 25 April 2008
"Search Terms" are words that a page ought to be searchable for, but for whatever reason the page is not showing up for that search. There are a number of reasons why this might happen; most notably, substrings do not return in searches. This means that, for example, GetItemCount would not come up in a search of "Item", because the search function does not check parts of words.
However, this can be fixed by adding these words to the page. For the most part, if these words are not already in use it would probably be awkward to add them, so they are added behind the scenes with an HTML comment - like this:
<!-- Begin Search Terms banana elephant Sears End Search Terms -->
Now this page will show up in a search for "banana", "elephant", or "Sears", but visitors would never see this list. The <!-- and --> tags are the beginnings an end of the HTML comment, and the "Begin" and "End" notes are added to explain what the comment is being used for.
One of the most important places to add search terms is to each of the functions in the game. Because functions are all a single word, a Search Term list should be made for each one, with each part of the function name in it.
For example, this was added to the top of GetItemCount:
<!-- Begin Search Terms Get Item Count End Search Terms --> '''Syntax:''' [''ActorID''|''ContainerID''.]GetItemCount ''ObjectID''
Now a search for "Get", "Item", or "Count" will return GetItemCount. Of course, once this project is completed, many other things will too, but it should make the Search function far more robust.