Help:Properties
Properties are used in pages throughout this wiki to identify common types of information that may be used to define the results of data queries. Properties must be added to the wiki before they can be used in a page.
Contents
Properties[edit]
Properties may be used in multiple places.
Infobox Properties[edit]
Some properties are defined as rows in a member's infobox.
Infobox row | What you see | Options | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
| country = ? |
|
Use the full, capitalized, name of the country where the member lives | ||||||||
| gender =? |
Use the appropriate initial, eg. M or F |
Page Properties[edit]
Some properties are contained within a members page.
What you type | What you see | Options |
---|---|---|
[[Server::MindCrack]] |
MindCrack | MindCrack or MindCrack Fan Server. When written correctly the property will link to the servers page. |
[[Status::active]] |
active | active, inactive, "former", "former active" or "former inactive". See Property:Status for use. |
[[Join date::December 2010]] |
December 2010 | Dates should written in the Month YYYY format. |
[[Invited by::Guude]] |
Guude | Use the Minecraft name(s) of the individual(s) that held the contest or invited the member onto the server. When written correctly the property will link to the members page. |
[[Contest by::Guude]] |
Guude |
Video Properties[edit]
Properties used in the video lists. See Help:Videos for more information
Database row | What you see | Options |
---|---|---|
| Page is=Guude |
These properties are used for querying the video database, and do not appear in the result. | Use the Minecraft name of the individual who created the video. In cases such as the Mindcrack Podcast and Weekly Recap "MindCrack Network" would be used. |
| Server is= MindCrack 4 |
The map on which the video was recorded. See Map Codes for a list. | |
Series is= Mindcrack Podcast |
The series for a video, only required for simultaneous series on the same map. | |
| Video is= {{yt|id=Gub7YEAGWo4|title=Mindcrack Podcast - Episode 1}} |
The video id and title | |
| Has date= 19 Jun 2012}} |
The date the video was published | |
| Has events= |
What happened in the video | |
| Is featuring= Guude |
Which other members appear in the video | |
| Activity is= Death Games Attack |
Key events, used to identify relevant videos for use elsewhere in the wiki |
Prank Wars Properties[edit]
Some properties are used within the Prank Wars and [[Prank_wars/Fan_Server|Fan Server Prank Wars] databases.
Database row | What you see | Options |
---|---|---|
| Has date= 2011/1/14 |
These properties are used for querying the prank wars databases, and do not appear in the result. | The date the prank video was released, in YYYY/M/DD format. |
| Perpetrator= Guude |
Use the Minecraft name of the individual or the team name as listed on the Teams page. One individual or team per row. Use as many rows as required for each prank. | |
| Victim= Guude |
Use the Minecraft name of the individual or the team name as listed on the Teams page. One individual or team per row. Use as many rows as required for each prank. | |
| Joined team= Guude |
Use the Minecraft name of the individual joining teams renowned for pranking. One individual per row. |
Image Properties[edit]
Image properties are partially defined using the #set command.
Infobox row | What you see | Options |
---|---|---|
[[Page is::Guude]] |
Guude | Use the Minecraft name of the individual |
Activity is=UHC 5 |
These properties are used for querying the images, and do not appear on the image page. | Defines the relationship of the image to an activity. Duplicate for each activity, for example a skin worn for multiple UHC matches would have one entry for each match. |
Has caption=Text to appear |
Set text that will appear when a query is formatted as a gallery | |
Id=skin |
What the image is: skin (will show up in previous/alternate skin galleries), main skin, avatar, etc. |
External links[edit]
See Template:List for information on how to implement.
Properties | Use |
---|---|
YouTube | These properties are set within the template |
Twitch | |
Querying the Wiki[edit]
Basic Query[edit]
What you type | What you see | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{#ask:[[Category:Members]][[Server::MindCrack]][[Status::active]] | ?Country | ?Join date | mainlabel = Members | limit=5 }} |
|
Explanation of a basic query
What you type | What it means |
---|---|
{{#ask:[[Category:Members]][[Server::MindCrack]][[Status::Active]] | Main query Restrictions to main query This part of the query is asking the Members category to returen results only for active members from the MindCrack server. |
| ?Country | ?Join date |
Defines a question Property This part of the query asks for the Country and Join date of active, MindCrack members. |
| mainlabel = Members | Defines the label for the main column in the result |
| limit=5 | Asks the query to only return the first 5 results |
}} | Closes the query |
Prank Wars Query[edit]
What you type | What you see |
---|---|
{{#ask:[[Prank wars::+]][[Perpetrator::Team America]] | mainlabel = - | link = none | sort = Has date | order = ascending | ?Has date#ISO = Date | ?Description | ?Execution = Perpetrator(s) and execution video(s) | ?Reaction = Victim(s) and reaction video(s) }} |
Explanation of a Prank Wars query
What you type | What it means |
---|---|
{{#ask:[[Prank wars::+]][[Perpetrator::Team America]] | Main query Restrictions to main query This part of the query is asking the Prank Wars database to returen results only for pranks where Team America was one of the perpetrators. |
| mainlabel = - | Asks the query not to display a column for the main query. In this case it prevents the pranks number in the database (e.g. "Prank wars#105") from being the first column in the result. |
| link = none | ? |
| sort = Has date | Asks the query to sort the results by what has been input for each pranks "Has date" field. |
| order = ascending | Asks the query to sort the results in ascending order (oldest - newest pranks) |
| ?Has date#iso = Date | ?Description |
Defines a question Property = (Optional) defines header for the results of the question This part of the query asks for the Has date, Description, Execution and Reaction for Team America pranks. The Has date, Execution and Reaction columns have been given more descriptive headers. |
}} | Closes the query |
Query Components[edit]
What can be queried?[edit]
Possible main queries
What you type | Result |
---|---|
{{#ask:[[Category:Members]] |
A query against all the pages in the Members category of this wiki |
{{#ask:[[Prank wars::+]] |
A query against all the pranks in the Prank wars database |
{{#ask:[[Fan Server pranks::+]] |
A query against all the pranks in the Fan Servers prank wars database |
Possible restrictions to the main query
What you type | Result | Restrictions |
---|---|---|
[[Country::_________]] |
Restricts query results to members from the specified country | [[Category:Members]] |
[[Gender::_________]] |
Restricts query results to members of the specified gender | [[Category:Members]] |
[[Server::_________]] |
Restricts query results to members from the specified server | [[Category:Members]] |
[[Status::_________]] |
Restricts query results to members who are active or inactive | [[Category:Members]] |
[[Join date::_________]] |
Restricts query results to members who joined within the specified date range Format as >Month YYYY, <Month YYYY or Month YYYY - Month YYYY. |
[[Category:Members]] |
[[Invited by::_________]] |
Restricts query results to members invited by a specific individual | [[Category:Members]] |
[[Contest by::_________]] |
Restricts query results to members who won a contest by a specific individual | [[Category:Members]] |
[[Has date::_________]] |
Restricts query to pranks within the specified date range Format as >YYYY/M/DD, <YYYY/M/DD or YYYY/M/DD - YYYY/M/DD. |
[[Prank wars::+]] and [[Fan Server pranks::+]] |
[[Perpetrator::_________]] |
Restricts query to pranks by a specific perpetrator. | [[Prank wars::+]] and [[Fan Server pranks::+]] |
[[Victim::_________]] |
Restricts query to pranks with a specific victim. | [[Prank wars::+]] and [[Fan Server pranks::+]] |
[[Joined team::_________]] |
Restricts query to the prank a specific member joined a team Specify + to indicate pranks where any member joined a team |
[[Prank wars::+]] and [[Fan Server pranks::+]] |
Query formats[edit]
Format | Add row | Result | |||||
---|---|---|---|---|---|---|---|
Table (Default result) | | format = table |
| |||||
Bulleted list | | format = ul |
||||||
List | | format = list |
Aureylian, AvidyaZEN, BdoubleO100 … further results | |||||
Total | | format = count |
21 |