User:ZabMilenko/sandbox

From Wikipedia, the free encyclopedia

{{{Name}}}
{{{Image}}}
{{{Image_caption}}}
Location {{{Location}}}
Time zone {{{Time}}}
Coordinates {{{Coordinates}}}
Capacity {{{Capacity}}}
Owner {{{Owner}}}
Operator {{{Operator}}}
Address {{{Address}}}
Broke ground {{{Broke_ground}}}
Opened {{{Opened}}}
Closed {{{Closed}}}
Construction Cost {{{Construction_cost}}}
Architect {{{Architect}}}
Former Names {{{Former_names}}}
Major Events {{{Events}}}
{{{Layout1}}}
Surface {{{Surface}}}
Circuit Length {{{Length_mi}}} mi ({{{Length_km}}} km)
Turns {{{Turns}}}
Banking {{{Banking}}}
Lap Record {{{Record_time}}} ({{{Record_driver}}}, {{{Record_team}}}, {{{Record_year}}})
{{{Layout2}}}
Surface {{{Surface2}}}
Circuit Length {{{Length_mi2}}} mi ({{{Length_km2}}} km)
Turns {{{Turns2}}}
Banking {{{Banking2}}}
Lap Record {{{Record_time2}}} ({{{Record_driver2}}}, {{{Record_team2}}}, {{{Record_year2}}} )
{{{Layout3}}}
Surface {{{Surface3}}}
Circuit Length {{{Length_mi3}}} mi ({{{Length_km3}}} km)
Turns {{{Turns3}}}
Banking {{{Banking3}}}
Lap Record {{{Record_time3}}} ({{{Record_driver3}}}, {{{Record_team3}}}, {{{Record_year3}}} )
{{{Layout4}}}
Surface {{{Surface4}}}
Circuit Length {{{Length_mi4}}} mi ({{{Length_km4}}} km)
Turns {{{Turns4}}}
Banking {{{Banking4}}}
Lap Record {{{Record_time4}}} ({{{Record_driver4}}}, {{{Record_team3}}}, {{{Record_year4}}} )




{{{Name}}}
Location {{{Location}}}



[edit] Documentation

Contents

[edit] Proposal

This document is part of a proposal to modify the following templates by adding the code shown:

[edit] Template:Coord

Under review

[edit] Template:Coor d

Tested

<includeonly>{{ #ifeq: {{{1|x}}}|x| [[Category:{{{category|Places}}} on Earth]] | [[Category:{{{category|Places}}} near {{ #expr: {{{1}}} round 0}}°{{ #ifeq: {{ #expr: {{{1}}} round 0 }} | 0 | |{{{2}}} }} {{ #expr: {{{3}}} round 0 }}°{{ #ifeq: {{ #expr: {{{3}}} round 0 }} | 180 | | {{ #ifeq: {{ #expr: {{{3}}} round 0 }} | 0 | | {{{4}}} }} }}]] }}</includeonly>

[edit] Template:Coor dm

In testing

<includeonly>{{ #ifeq: {{{1|x}}}|x| [[Category:{{{category|Places}}} on Earth]] | [[Category:{{{category|Places}}} near {{ #expr: {{{1}}} round 0}}°{{ #ifeq: {{ #expr: {{{1}}} round 0 }} | 0 | |{{{3}}} }} {{ #expr: {{{4}}} round 0 }}°{{ #ifeq: {{ #expr: {{{4}}} round 0 }} | 180 | | {{ #ifeq: {{ #expr: {{{4}}} round 0 }} | 0 | | {{{6}}} }} }}]] }}</includeonly>

[edit] Template:Coor dms

In testing

<includeonly>{{ #ifeq: {{{1|x}}}|x| [[Category:{{{category|Places}}} on Earth]] | [[Category:{{{category|Places}}} near {{ #expr: {{{1}}} round 0}}°{{ #ifeq: {{ #expr: {{{1}}} round 0 }} | 0 | |{{{4}}} }} {{ #expr: {{{5}}} round 0 }}°{{ #ifeq: {{ #expr: {{{5}}} round 0 }} | 180 | | {{ #ifeq: {{ #expr: {{{5}}} round 0 }} | 0 | | {{{8}}} }} }}]] }}</includeonly>

[edit] Usage

Articles using this template will be added to the category based on their position. For instance, an item using {{coor d|32.616|N|121.322|W}} will be added to the category Places near 33°N 121°W. Items near the equator, meridian, or date line will not have their directional component attached. For instance, {{coor d|0.410|N|179.669|W}} will be added to the category Places near 0° 180°.

If no coordinates are present, the category Places on Earth is used instead, though how to handle this more effectively can and should be by consensus.

The word Places is optional. By setting the category parameter, an editor can override the category. For instance: {{coor d|45.34|N|122.2|W|category=Commercial Buildings}} would add the category Commercial Buildings near 45°N 122°W. Please read the warnings at WP:OCAT.