Difference between revisions of "Template:CelestialRef/Extras"

From blackwiki
Jump to navigation Jump to search
imported>Robertinventor
imported>Jdaloner
m ("{{strip whitespace" --> "{{trim")
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
extrasep="{{{extrasep}}}", extrasep2="{{{extrasep2}}}",
 
 
<!--
 
<!--
   
+
  extrasep="{{{extrasep}}}"
 +
 
 
* SIMBAD lookup url using sim-basic
 
* SIMBAD lookup url using sim-basic
 
* object name shown in quotes, except for at=yes when it is shown not in quotes
 
* object name shown in quotes, except for at=yes when it is shown not in quotes
Line 9: Line 9:
  
 
-->{{#ifeq:{{{at}}}|yes<!--
 
-->{{#ifeq:{{{at}}}|yes<!--
-->| at the ''[[SIMBAD | SIMBAD Astronomical Database]]''<!--
+
-->|<!--
  
-->|, ''[[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}}}|show|1|0}}+<!--
+
--->{{#ifeq:{{{bwimage}}}|show|1|0}}<!--
--->{{#ifeq:{{{siblings}}}|show|1|0}}+<!--
 
--->{{#ifeq:{{{ids}}}|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|&#32;-&#32;}}} [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|&#32;-}}}|}}<!--
 +
--> [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|&#32;-&#32;}}} [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|&#32;-}}}<!-- 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|&#32;-}}}<!-- 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|&#32;-&#32;}}} [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|&#32;-}}}<!-- 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|&#32;-&}}}<!-- 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|&#32;-&#32;}}} [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|&#32;-}}}<!-- 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|&#32;-}}}<!-- 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|&#32;-&#32;}}} [http://aladin.u-strasbg.fr/java/alapre.pl?-c{{=}}{{urlencode:{{{1|M 31}}}}}&button=RGB Image]<!--  
+
 
 +
-->{{#ifeq:{{{extrasep}}}|<!-- extrasep = blank?
 +
-->|{{{sep|&#32;-}}}<!-- 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|&#32;-}}}<!-- 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|&#32;-&#32;}}} [http://aladin.u-strasbg.fr/java/alapre.pl?-c{{=}}{{urlencode:{{{1|M 31}}}}}&button=N%26B B&W Image]<!--  
+
 
 +
-->{{#ifeq:{{{extrasep}}}|<!-- extrasep = blank?
 +
-->|{{{sep|&#32;-}}}<!-- 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|&#32;-}}}<!-- 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]<!--  
 
-->}}<!--  
 
-->}}<!--  
 
-->.<!--  
 
-->.<!--  
 
-->
 
-->

Latest revision as of 02:35, 29 July 2020