Difference between revisions of "Template:CelestialRef/Extras"
Jump to navigation
Jump to search
imported>Robertinventor |
imported>Jdaloner m ("{{strip whitespace" --> "{{trim") |
||
| (7 intermediate revisions by 3 users not shown) | |||
| Line 9: | Line 9: | ||
-->{{#ifeq:{{{at}}}|yes<!-- | -->{{#ifeq:{{{at}}}|yes<!-- | ||
| − | -->| | + | -->|<!-- |
| − | -->|, ''[[SIMBAD]], <!-- | + | * at SIMBAD (short or long form) |
| + | --->{{#ifeq:{{{simbad|long}}}|short<!-- | ||
| + | --->|at ''[[SIMBAD]]''<!-- | ||
| + | --->|at the ''[[SIMBAD | SIMBAD Astronomical Database]]''<!-- | ||
| + | --->}}<!-- ends simbad=long? | ||
| + | |||
| + | -->|, ''[[SIMBAD]]'', <!-- | ||
* CDS (short or long form) | * CDS (short or long form) | ||
| Line 31: | Line 37: | ||
--->{{#ifeq:{{{ids}}}|show|1|0}}+<!-- | --->{{#ifeq:{{{ids}}}|show|1|0}}+<!-- | ||
--->{{#ifeq:{{{bib}}}|show|1|0}}+<!-- | --->{{#ifeq:{{{bib}}}|show|1|0}}+<!-- | ||
| + | --->{{#ifeq:{{{siblings}}}|show|1|0}}+<!-- | ||
--->{{#ifeq:{{{plot|}}}||0|1}}+<!-- | --->{{#ifeq:{{{plot|}}}||0|1}}+<!-- | ||
--->{{#ifeq:{{{image}}}|show|1|0}}+<!-- | --->{{#ifeq:{{{image}}}|show|1|0}}+<!-- | ||
| − | --->{{#ifeq:{{{bwimage | + | --->{{#ifeq:{{{bwimage}}}|show|1|0}}<!-- |
| − | |||
| − | |||
--->|{{{extrasep|}}}<!-- | --->|{{{extrasep|}}}<!-- | ||
--->|<!--none set to show | --->|<!--none set to show | ||
| Line 41: | Line 46: | ||
* Ids | * Ids | ||
| − | -->{{#ifeq:{{{ids}}}|show<!-- | + | -->{{#ifeq:{{{ids}}}|show|<!-- |
| − | -->|{{{sep| - | + | |
| + | * No need for sep if extrasep set e.g. after Links: don't want Links: - | ||
| + | -->{{#ifeq:{{{extrasep}}}||{{{sep| -}}}|}}<!-- | ||
| + | --> [http://simbad.u-strasbg.fr/simbad/sim-basic?protocol=html&Ident{{=}}{{urlencode:{{{1|M 31}}}}}&submit=submit+id#lab_ident Ids]<!-- | ||
-->|}}<!-- | -->|}}<!-- | ||
* Bibliography | * Bibliography | ||
| − | -->{{#ifeq:{{{bib}}}|show<!-- | + | -->{{#ifeq:{{{bib}}}|show|<!-- |
| − | -->|{{{sep| - }}} [http://simbad.u-strasbg.fr/simbad/sim-id?submit=display&bibdisplay=refsum&bibyear1=1850&bibyear2=%24currentYear&Ident={{urlencode:{{{1|M 31}}}}}#lab_bib Bibliography]<!-- | + | |
| + | -->{{#ifeq:{{{extrasep}}}|<!-- extrasep = blank? | ||
| + | -->|{{{sep| -}}}<!-- extrasep is blank so need sep | ||
| + | |||
| + | * Hide sep for first in line after the extrasep if set | ||
| + | * e.g. after Links: don't want Links: - | ||
| + | -->|{{#ifexpr:<!-- | ||
| + | ---->{{#ifeq:{{{ids}}}|show|1|0}}<!-- | ||
| + | ---->|{{{sep| -}}}<!-- one of the previous options is set to show | ||
| + | ---->|<!--none set to show | ||
| + | --->}}<!-- ends #ifexpr test to see if any of the below options are set | ||
| + | -->}}<!-- ends extrasep=blank? | ||
| + | |||
| + | --> [http://simbad.u-strasbg.fr/simbad/sim-id?submit=display&bibdisplay=refsum&bibyear1=1850&bibyear2=%24currentYear&Ident={{urlencode:{{{1|M 31}}}}}#lab_bib Bibliography]<!-- | ||
-->|}}<!-- | -->|}}<!-- | ||
* Siblings | * Siblings | ||
| − | -->{{#ifeq:{{{siblings}}}|show<!-- | + | -->{{#ifeq:{{{siblings}}}|show|<!-- |
| − | -->|{{{sep| - }}} [http://simbad.u-strasbg.fr/simbad/sim-id?Ident={{urlencode:{{{1|M 31}}}}}&NbIdent=query_hlinks&submit=siblings&hlinksdisplay=h_all Siblings]<!-- | + | |
| + | -->{{#ifeq:{{{extrasep}}}|<!-- extrasep = blank? | ||
| + | -->|{{{sep| -}}}<!-- extrasep is blank so need sep | ||
| + | |||
| + | * Hide sep for first in line after the extrasep if set | ||
| + | * e.g. after Links: don't want Links: - | ||
| + | -->|{{#ifexpr:<!-- | ||
| + | ---->{{#ifeq:{{{ids}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{bib}}}|show|1|0}}<!-- | ||
| + | ---->|{{{sep| -&}}}<!-- one of the previous options is set to show | ||
| + | ---->|<!--none set to show | ||
| + | --->}}<!-- ends #ifexpr test to see if any of the below options are set | ||
| + | -->}}<!-- ends extrasep=blank? | ||
| + | |||
| + | --> [http://simbad.u-strasbg.fr/simbad/sim-id?Ident={{urlencode:{{{1|M 31}}}}}&NbIdent=query_hlinks&submit=siblings&hlinksdisplay=h_all Siblings]<!-- | ||
-->|}}<!-- | -->|}}<!-- | ||
* Star plot | * Star plot | ||
| − | -->{{#ifeq: {{{plot|}}} | |<!-- | + | -->{{#ifeq: {{{plot|}}} |||<!-- |
| − | -->|{{{sep| - }}} [http://simbad.u-strasbg.fr/simbad/sim-plot?target=_BLANK&ident{{=}}{{urlencode:{{{1|M 31}}}}}&radius.unit={{ | + | |
| + | -->{{#ifeq:{{{extrasep}}}|<!-- extrasep = blank? | ||
| + | -->|{{{sep| -}}}<!-- extrasep is blank so need sep | ||
| + | |||
| + | * Hide sep for first in line after the extrasep if set | ||
| + | * e.g. after Links: don't want Links: - | ||
| + | -->|{{#ifexpr:<!-- | ||
| + | ---->{{#ifeq:{{{ids}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{bib}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{siblings}}}|show|1|0}}<!-- | ||
| + | ---->|{{{sep| -}}}<!-- one of the previous options is set to show | ||
| + | ---->|<!--none set to show | ||
| + | --->}}<!-- ends #ifexpr test to see if any of the below options are set | ||
| + | -->}}<!-- ends extrasep=blank? | ||
| + | |||
| + | --> [http://simbad.u-strasbg.fr/simbad/sim-plot?target=_BLANK&ident{{=}}{{urlencode:{{{1|M 31}}}}}&radius.unit={{trim|{{{units|arcmin}}}}}&radius={{trim|{{{plot}}}}} Star plot]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
* Image | * Image | ||
| − | -->{{#ifeq:{{{image}}}|show<!-- | + | -->{{#ifeq:{{{image}}}|show|<!-- |
| − | -->|{{{sep| - }}} [http://aladin.u-strasbg.fr/java/alapre.pl?-c{{=}}{{urlencode:{{{1|M 31}}}}}&button=RGB Image]<!-- | + | |
| + | -->{{#ifeq:{{{extrasep}}}|<!-- extrasep = blank? | ||
| + | -->|{{{sep| -}}}<!-- extrasep is blank so need sep | ||
| + | |||
| + | * Hide sep for first in line after the extrasep if set | ||
| + | * e.g. after Links: don't want Links: - | ||
| + | -->|{{#ifexpr:<!-- | ||
| + | ---->{{#ifeq:{{{ids}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{bib}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{siblings}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{plot|}}}||0|1}}<!-- | ||
| + | ---->|{{{sep| -}}}<!-- one of the previous options is set to show | ||
| + | ---->|<!--none set to show | ||
| + | --->}}<!-- ends #ifexpr test to see if any of the below options are set | ||
| + | -->}}<!-- ends extrasep=blank? | ||
| + | |||
| + | --> [http://aladin.u-strasbg.fr/java/alapre.pl?-c{{=}}{{urlencode:{{{1|M 31}}}}}&button=RGB Image]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
* B&W Image | * B&W Image | ||
| − | -->{{#ifeq:{{{bwimage}}}|show<!-- | + | -->{{#ifeq:{{{bwimage}}}|show|<!-- |
| − | -->|{{{sep| - }}} [http://aladin.u-strasbg.fr/java/alapre.pl?-c{{=}}{{urlencode:{{{1|M 31}}}}}&button=N%26B B&W Image]<!-- | + | |
| + | -->{{#ifeq:{{{extrasep}}}|<!-- extrasep = blank? | ||
| + | -->|{{{sep| -}}}<!-- extrasep is blank so need sep | ||
| + | |||
| + | * Hide sep for first in line after the extrasep if set | ||
| + | * e.g. after Links: don't want Links: - | ||
| + | -->|{{#ifexpr:<!-- | ||
| + | ---->{{#ifeq:{{{ids}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{bib}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{siblings}}}|show|1|0}}+<!-- | ||
| + | ---->{{#ifeq:{{{plot|}}}||0|1}}+<!-- | ||
| + | ---->{{#ifeq:{{{image}}}|show|1|0}}<!-- | ||
| + | ---->|{{{sep| -}}}<!-- one of the previous options is set to show | ||
| + | ---->|<!--none set to show | ||
| + | --->}}<!-- ends #ifexpr test to see if any of the below options are set | ||
| + | -->}}<!-- ends extrasep=blank? | ||
| + | |||
| + | --> [http://aladin.u-strasbg.fr/java/alapre.pl?-c{{=}}{{urlencode:{{{1|M 31}}}}}&button=N%26B B&W Image]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->.<!-- | -->.<!-- | ||
--> | --> | ||