ഫലകം:Lunar quadrangle/0-30S
LQപ്രയോഗരീതിയിൽ പിഴവ്: തിരിച്ചറിയാൻ കഴിയാത്ത വിരാമചിഹ്നം "{"
This ഫലകം employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
തിരുത്തുകThis template is for automatically generating the name of the Lunar quadrangle that a point on the surface is in. It takes four parameters:
{{Lunar quadrangle |latitude= |N_or_S= |longitude= |E_or_W= }}
So, for example, the point at "59.7° S, 21.5° E" would be input as:
"{{Lunar quadrangle|latitude=59.7|N_or_S=S|longitude=21.5|E_or_W=E}}"
Which would give us: "LQ27"
This template is intended primarily for use in conjunction with infoboxes and such, to allow categories such as Category:Craters on the Moon to be automatically divided into smaller geographically-grouped subcategories. It shouldn't be substed since that brings a bunch of intricate template coding into the article rather than the simple text name.
Structure
തിരുത്തുകThis template makes extensive use of comparison parser functions. A #switch statement couldn't be used for most of it because it deals with floating-point numeric ranges rather than discrete integers. To simplify the code, latitude is dealt with in the main template and then one of four sub-templates dealing solely with longitude may be called.
- Template:Lunar quadrangle/30-65N
- Template:Lunar quadrangle/0-30N
- Template:Lunar quadrangle/0-30S
- Template:Lunar quadrangle/30-65S
Each of these sub-templates has two complete lists of quadrangles that lie in the range of latitudes it's dealing with, the second list sorted in reverse from the first list to account for using east longitude instead of west longitude. So one should be able to use the full 0-360° range for both E and W longitude.
No similar provision was made for using negative latitude to indicate southern latitudes.
മുകളിൽ കാണുന്ന വിവരണം Template:Lunar quadrangle/doc എന്ന ഉപതാളിൽ നിന്ന് ഉൾപ്പെടുത്തിയിട്ടുള്ളതാണ്. (തിരുത്തുക | നാൾവഴി) താങ്കൾക്ക് പരീക്ഷണങ്ങൾ ഫലകത്തിന്റെ എഴുത്തുകളരി (നിർമ്മിക്കുക) താളിലോ testcases (നിർമ്മിക്കുക) താളിലോ നടത്താവുന്നതാണ്. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ. |