Template:Badge data/doc: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->


Sets data properties for badges that aren't set elsewhere on the page.
Sets data properties for badges that aren't set elsewhere on the page. Sets [[Property:Has sort position]] using data looked up in {{tl|sort order}}.
 
==Examples==
 
===No particular location===
On the [[Architect Badge]] page:
 
<pre>
{{badge data
| index    = 1081
| category = Day Jobs
| summary  = Log out inside [[Architect Entertainment]] buildings for 100 hours
}}
</pre>
 
Places the page in [[:Category:Day Job Badges]], and sets the properties:
 
{{#ask:[[Architect Badge]]|?Has index|?Has summary|?Has sort position}}
 
===Single zone, single location===
On the [[Top Dog Badge]] page:


==Example==
<pre>
<pre>
{{badge data
{{badge data
Line 13: Line 32:
| y        = 319.7
| y        = 319.7
| z        = -319.5
| z        = -319.5
}}</pre>
}}
</pre>
 
Places the page in [[:Category:Atlas Park Exploration Badges]], and sets the properties:
 
{{#ask:[[Top Dog Badge]]|?Has index|?Has coordinates|?Has sort position}}
 
===Single zone, multiple locations===
Up to three locations. On the [[Urban Spelunker]] page:
 
<pre>
{{badge data
| index    = 1642
| category = Exploration
| zone    = Underground Nova
| summary  = [[Underground Nova]] entrances
| x        = -3094.0
| y        = 704.0
| z        = 1616.0
| x 2      = -2976.0
| y 2      = 704.0
| z 2      = -323.0
| x 3      = -3839.0
| y 3      = 704.1
| z 3      = -2134.5
}}
</pre>
 
Places the page in [[:Category:Underground Nova Exploration Badges]], and sets the properties:
 
{{#ask:[[Urban Spelunker Badge]]|?Has index|?Has summary|?Has coordinates|?Has sort position}}
 
===Mutiple zones===
Up to three locations. On the [[Rail Rider Badge]] page:
 
<pre>
{{badge data
| index    = 1411
| category = Exploration
| zone    = Nova Praetoria
| x        = -4551.0
| y        = -187.6
| z        = 469.5
| zone 2  = Imperial City
| x 2      = -2384.0
| y 2      = -238.6
| z 2      = 755.5
| zone 3  = Neutropolis
| x 3      = 2226.0
| y 3      = -213.1
| z 3      = 1111.0
}}
</pre>
 
Places the page in [[:Category:Nova Praetoria Exploration Badges]], [[:Category:Imperial City Exploration Badges]], and [[:Category:Neutropolis Exploration Badges]], and sets the properties:
 
{{#ask:[[Rail Rider Badge]]|?Has index|?Has coordinates|?Has sort position}}


==See also==
==See also==
* {{tl|badge display}}
* [[Property:Has index]]
* [[Property:Has coordinates]]
* {{tl|sort order}} and [[Property:Has sort position]]
* {{tl|badge display}} - sets properties for visible data, e.g. icon, title, description


<includeonly><!--
<includeonly><!--

Latest revision as of 07:47, 8 June 2022

This is a documentation subpage for Template:Badge data (see that page for the template itself).
It contains usage information, categories and other content that is not part of the original template page.

Sets data properties for badges that aren't set elsewhere on the page. Sets Property:Has sort position using data looked up in {{sort order}}.

Examples

No particular location

On the Architect Badge page:

{{badge data
| index    = 1081
| category = Day Jobs
| summary  = Log out inside [[Architect Entertainment]] buildings for 100 hours
}}

Places the page in Category:Day Job Badges, and sets the properties:

 Has indexHas summaryHas sort position
Architect Badge1,081Log out in Architect Entertainment Buildings for 100 hours1,582

Single zone, single location

On the Top Dog Badge page:

{{badge data
| index    = 90
| category = Exploration
| zone     = Atlas Park
| x        = 131.0
| y        = 319.7
| z        = -319.5
}}

Places the page in Category:Atlas Park Exploration Badges, and sets the properties:

 Has indexHas coordinatesHas sort position
Top Dog Badge90Atlas Park (131.0, 319.7, -319.5)830

Single zone, multiple locations

Up to three locations. On the Urban Spelunker page:

{{badge data
| index    = 1642
| category = Exploration
| zone     = Underground Nova
| summary  = [[Underground Nova]] entrances
| x        = -3094.0
| y        = 704.0
| z        = 1616.0
| x 2      = -2976.0
| y 2      = 704.0
| z 2      = -323.0
| x 3      = -3839.0
| y 3      = 704.1
| z 3      = -2134.5
}}

Places the page in Category:Underground Nova Exploration Badges, and sets the properties:

 Has indexHas summaryHas coordinatesHas sort position
Urban Spelunker Badge1,642Underground Nova entrancesUnderground Nova (-3,094.0, 704.0, 1,616.0)
Underground Nova (-2,976.0, 704.0, -323.0)
Underground Nova (-3,839.0, 704.1, -2,134.5)
694

Mutiple zones

Up to three locations. On the Rail Rider Badge page:

{{badge data
| index    = 1411
| category = Exploration
| zone     = Nova Praetoria
| x        = -4551.0
| y        = -187.6
| z        = 469.5
| zone 2   = Imperial City
| x 2      = -2384.0
| y 2      = -238.6
| z 2      = 755.5
| zone 3   = Neutropolis
| x 3      = 2226.0
| y 3      = -213.1
| z 3      = 1111.0
}}

Places the page in Category:Nova Praetoria Exploration Badges, Category:Imperial City Exploration Badges, and Category:Neutropolis Exploration Badges, and sets the properties:

 Has indexHas coordinatesHas sort position
Rail Rider Badge1,411Nova Praetoria (-4,551.0, -187.6, 469.5)
Imperial City (-2,384.0, -238.6, 755.5)
Neutropolis (2,226.0, -213.1, 1,111.0)
721

See also