Difference between revisions of "Template:CelestialRef/Extras"
Jump to navigation
Jump to search
imported>Robertinventor |
imported>Robertinventor (added test to hide the - sep for first in line after the extrasep if set) |
||
| Line 31: | Line 31: | ||
--->{{#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}}}|show|1|0}}+<!-- | --->{{#ifeq:{{{bwimage}}}|show|1|0}}+<!-- | ||
| − | |||
| − | |||
--->|{{{extrasep|}}}<!-- | --->|{{{extrasep|}}}<!-- | ||
--->|<!--none set to show | --->|<!--none set to show | ||
| Line 41: | Line 40: | ||
* Ids | * Ids | ||
| − | -->{{#ifeq:{{{ids}}}|show<!-- | + | -->{{#ifeq:{{{ids}}}|show|<!-- |
| − | -->|{{{sep| - }}} [http://simbad.u-strasbg.fr/simbad/sim-basic?protocol=html&Ident{{=}}{{urlencode:{{{1|M 31}}}}}&submit=submit+id#lab_ident Ids]<!-- | + | |
| + | * 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={{strip whitespace|{{{units|arcmin}}}}}&radius={{strip whitespace|{{{plot}}}}} Star plot]<!-- | + | |
| + | -->{{#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={{strip whitespace|{{{units|arcmin}}}}}&radius={{strip whitespace|{{{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? | ||
| + | |||
| + | --> {{{sep| - }}} [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]<!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->.<!-- | -->.<!-- | ||
--> | --> | ||
Revision as of 05:50, 24 July 2013
"M 31" , SIMBAD, Centre de données astronomiques de StrasbourgExpression error: Missing operand for +..