Шаблон:Loc — различия между версиями

Материал из Энциклопедия EverQuest II
Перейти к: навигация, поиск
м
 
Строка 1: Строка 1:
<includeonly>{{#if: {{{1|}}}|{{#switch: {{uc:{{{1}}}}}
+
<includeonly>{{#switch:{{uc:{{{1}}}}}
 
| X = <!-- suppress all output -->
 
| X = <!-- suppress all output -->
 
| * = см.&nbsp;ниже
 
| * = см.&nbsp;ниже
| #default = (&nbsp;{{#if: {{{1|}}}|{{#replace:{{{1}}}|,|}}|[[:Category:Не указана координата X|?]][[Category:Не указана координата X]]}},&nbsp;{{#if: {{{2|}}}|{{#replace:{{{2}}}|,|}}|[[:Category:Не указана координата Z|0]][[Category:Не указана координата Z]]}},&nbsp;{{#if: {{{3|}}}|{{#replace:{{{3}}}|,|}}|[[:Category:Не указана координата Y|?]][[Category:Не указана координата Y]]}}&nbsp;)&nbsp;{{#if:{{{1|}}}{{{2|}}}{{{3|}}}|{{Push2CB|/waypoint {{#if:{{{1|}}}|{{#replace:{{{1}}}|,|}}|0}}, {{#if:{{{2|}}}|{{#replace:{{{2}}}|,|}}|0}}, {{#if:{{{3|}}}|{{#replace:{{{3}}}|,|}}|0}}}}|}}}}}}{{#if: {{{uid|}}}{{{zid|}}}|&nbsp;{{Link2EQ2Map|{{{uid|}}}|zid={{{zid|}}}}}}}</includeonly><noinclude>
+
| #default = (&nbsp;{{#if: {{{1|}}}|{{#expr:{{#replace:{{{1}}}|,|}} round 0}}|[[:Category:Не указана координата X|?]][[Category:Не указана координата X]]}},&nbsp;{{#if: {{{2|}}}|{{#expr:{{#replace:{{{2}}}|,|}} round 0}}|[[:Category:Не указана координата Z|0]][[Category:Не указана координата Z]]}},&nbsp;{{#if: {{{3|}}}|{{#expr:{{#replace:{{{3}}}|,|}} round 0}}|[[:Category:Не указана координата Y|?]][[Category:Не указана координата Y]]}}&nbsp;)&nbsp;{{#if:{{{1|}}}{{{2|}}}{{{3|}}}|{{Push2CB|/waypoint {{#if:{{{1|}}}|{{#replace:{{{1}}}|,|}}|0}}, {{#if:{{{2|}}}|{{#replace:{{{2}}}|,|}}|0}}, {{#if:{{{3|}}}|{{#replace:{{{3}}}|,|}}|0}}}}|}}}}{{#if: {{{uid|}}}{{{zid|}}}|&nbsp;{{Link2EQ2Map|{{{uid|}}}|zid={{{zid|}}}}}}}</includeonly><noinclude>
 
{{Loc/Doc}}
 
{{Loc/Doc}}
  
 
{{TemplateHelper}}
 
{{TemplateHelper}}
 
</noinclude>
 
</noinclude>

Текущая версия на 22:21, 18 октября 2012

Use this template to include a location in an article. This is preferred so that all coords on this system maintain a standardized appearance.

Location Coordinates in EverQuest II are mapped using an inverted Cartesian Coordinates system. When you use the /loc command in-game, the results appear in the form (x,z,y), but unlike the normal Cartesian system, x and y grow smaller as you move East or North, and larger as you move West or South.

 
Region IV
+x, -y
 
 
Region III
-x, -y
 
 
Region I
+x, +y
 
 
Region II
-x, +y
 

Parameters

  1. x coordinate: This is the East-West location, but values grow larger as you go West.
  2. z coordinate: This is the Elevation, in the normal orientation. Lower is smaller, higher is larger.
  3. y coordinate: This is the North-South location, but values grow larger as you go South.
  • uid - (Optional) If set, a link to EQ2MAP will appear to the right of the Location.

If the x coord is an Asterisk (*), ( see below ) will be displayed. This is useful when a mob has multiple locations. Be sure to include a section on the page with the locations!

If the x coord is an X (upper or lower case) this template will return with no output and no links created! This is useful when a mob has no fixed spawn point and roams all over, or has so many spawn points that any specific location is pointless.

Usage

{{Loc|x|z|y|uid=}}

Examples

{{Loc|-490|-40|-89|uid=597}}

Output: ( -490, -40, -89 ) /waypoint -490, -40, -89 Eq2map.gif

{{Loc|*}}

Output: см. ниже

{{Loc|x}}

Output:

{{Loc|-490|-40|}}

Output: ( -490, -40, ? ) /waypoint -490, -40, 0 - Created link to Category:Не указана координата Y

{{Loc|-490||-89}}

Output: ( -490, 0, -89 ) /waypoint -490, 0, -89 - Created link to Category:Не указана координата Z

  • NOTE: If you are in-game and need to find something that only shows the x-y and not the z, substitute 0 for z and use /waypoint x,0,y then look at your map... X marks the spot and the wisp trail will point the way although it may be a little off!
{{Loc||-40|-89}}

Output:?, -40, -89 ) /waypoint 0, -40, -89 - Created link to Category:Не указана координата X

{{Loc|X|uid=1005}}

Output:  Eq2map.gif - x,z,y supressed, link to eq2map project made

Полезные ссылки по шаблонам: Все шаблоны Информация о шаблонах


Use this template to include a location in an article. This is preferred so that all coords on this system maintain a standardized appearance.

Location Coordinates in EverQuest II are mapped using an inverted Cartesian Coordinates system. When you use the /loc command in-game, the results appear in the form (x,z,y), but unlike the normal Cartesian system, x and y grow smaller as you move East or North, and larger as you move West or South.

 
Region IV
+x, -y
 
 
Region III
-x, -y
 
 
Region I
+x, +y
 
 
Region II
-x, +y
 

Parameters

  1. x coordinate: This is the East-West location, but values grow larger as you go West.
  2. z coordinate: This is the Elevation, in the normal orientation. Lower is smaller, higher is larger.
  3. y coordinate: This is the North-South location, but values grow larger as you go South.
  • uid - (Optional) If set, a link to EQ2MAP will appear to the right of the Location.

If the x coord is an Asterisk (*), ( see below ) will be displayed. This is useful when a mob has multiple locations. Be sure to include a section on the page with the locations!

If the x coord is an X (upper or lower case) this template will return with no output and no links created! This is useful when a mob has no fixed spawn point and roams all over, or has so many spawn points that any specific location is pointless.

Usage

{{Loc|x|z|y|uid=}}

Examples

{{Loc|-490|-40|-89|uid=597}}

Output: ( -490, -40, -89 ) /waypoint -490, -40, -89 Eq2map.gif

{{Loc|*}}

Output: см. ниже

{{Loc|x}}

Output:

{{Loc|-490|-40|}}

Output: ( -490, -40, ? ) /waypoint -490, -40, 0 - Created link to Category:Не указана координата Y

{{Loc|-490||-89}}

Output: ( -490, 0, -89 ) /waypoint -490, 0, -89 - Created link to Category:Не указана координата Z

  • NOTE: If you are in-game and need to find something that only shows the x-y and not the z, substitute 0 for z and use /waypoint x,0,y then look at your map... X marks the spot and the wisp trail will point the way although it may be a little off!
{{Loc||-40|-89}}

Output:?, -40, -89 ) /waypoint 0, -40, -89 - Created link to Category:Не указана координата X

{{Loc|X|uid=1005}}

Output:  Eq2map.gif - x,z,y supressed, link to eq2map project made

Полезные ссылки по шаблонам: Все шаблоны Информация о шаблонах