|This page documents Help for users on Grand Theft Wiki.|
Grand Theft Wiki is a Semantic Wiki. This means we collect data within a page into a searchable/displayable format.
The basic principle of semantic data is setting properties on pages. Those properties are little facts, such as the nationality or gender of the character. We can then do a search or query on those properties.
For example, on each character's page, we can specify the nationality of the character. Then we can do a search for all characters from each nationality. We can also display that search on a country page using an inline query.
Properties are set in a similar way to links and categories. You need the name of the property and the data (answer) for it.
To set the 'Nationality' property to 'British':
Types of Properties
Every property has a page, listed at Special:Properties.
By default, a property is type=page. This can be changed by adding a datatype to the properties page (just like a category).
If you select a datatype, such as 'date', anything that doesn't fit that input will generate an error. The data will have a yellow warning triangle next to it, and page will show up in Property:Has improper value for.
- Standard answers
Be careful to use a standard answer whenever you mean the same thing, rather than a slightly different one.
For example, For a gender, always use 'Male' or 'Female' - don't sometimes use boy/man/woman/lady/girl.
How Properties Display
If you simply use
[[Nationality::British]] (as above), it will show a link to page 'British'.
Properties can be changed like links. You can specify an alternative place to link to:
[[Nationality::British|United Kingdom]] or use a space to hide the link completely:
Queries can be built and run on Special:Ask.
You can easily search on properties and categories, exactly the same way as setting them. This is an AND query.
- So to search for all Russian characters in GTA IV:
- We want to search for all pages in Category:Characters in GTA IV and with Nationality::Russia
- So we just search for those two things, exactly the same way as we would set them on a page:
[[Category:Characters in GTA IV]] [[Nationality::Russia]]
If you need to use an OR, you need to do this within the [[square brackets]] of the links, and use || as an OR operator
[[Category:Characters in GTA IV || Category:Characters in GTA III Era]]