Difference between revisions of "Template:Infobox telescope/optin"

From blackwiki
Jump to navigation Jump to search
imported>RexxS
(close })
imported>Mike Peel
(redirect to main template)
 
Line 1: Line 1:
{{infobox
+
#REDIRECT [[Template:Infobox telescope]]
| bodyclass  = vcard
 
| aboveclass = fn org
 
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}
 
 
 
| image  = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P18|{{{image|FETCH_WIKIDATA}}} }}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}}
 
| caption = {{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}}
 
 
 
| label2 = Organisation
 
| data2  = {{#invoke:WikidataIB|getValue|P137|name=organisation|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|{{{organization|{{{organisation|}}}}}}}}
 
 
 
| label3 = Location(s)
 
| class3 = label
 
| data3  = {{#invoke:WikidataIB|getValue|P276|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|{{{location|}}}}}{{#if:{{#Property:P276}}|{{#if:{{#Property:P17}}|{{#if:{{{location|}}}| |, {{#invoke:WikidataIB|getValue|P17|name=location|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}}} }} }} }}
 
 
 
| label4 = Coordinates
 
| data4  = {{#invoke:WikidataIB |getCoords |name=coords |suppressfields={{{suppressfields|}}} |fetchwikidata={{{fetchwikidata|}}} |{{{coords|}}} }}
 
 
 
| label5 = Altitude <!-- needs corresponding call in WikidataIB - to do -->
 
| data5  = {{{altitude|{{#if:{{#property:P2044}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2386|FETCH_WIKIDATA}}|feet|{{convert|input=P2044|m|abbr=on}}|{{convert|input=P2044|ft|abbr=on}} }} }} }}}
 
 
 
| label6 = Weather
 
| data6  = {{{weather|}}}
 
 
 
| label7 = [[Wavelength]]
 
| data7  = {{#invoke:WikidataIB|getValue|P2808|name=wavelength|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|{{{wavelength|}}}}}
 
 
 
| label8    = Built <!-- needs corresponding call in WikidataIB - to do -->
 
| rowclass8 = note
 
| data8    = {{{built|{{#if:{{#Property:P793}} | {{Start date|{{#invoke:Wikidata|claim|P793|qualifier=P580|FETCH_WIKIDATA}}–{{#invoke:Wikidata|claim|P793|qualifier=P582|FETCH_WIKIDATA}} }} }}}}}
 
 
 
| label9 = [[First light (astronomy)|First light]]
 
| data9  = {{#invoke:WikidataIB|getValue|P729|name=first_light|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|{{{first_light|}}}}}
 
 
 
| label10    = Telescope&nbsp;style
 
| rowclass10 = note
 
| class10    = category
 
| data10    = {{#invoke:WikidataIB|getValue|P31|name=style|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|{{{style|}}}}}
 
 
 
| label11    = Diameter <!-- needs corresponding call in WikidataIB - to do -->
 
| rowclass11 = note
 
| data11    = {{{diameter|{{#if:{{#property:P2386}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2386|FETCH_WIKIDATA}}|inch|{{convert|input=P2386|m|abbr=on}}|{{convert|input=P2386|ftin|abbr=on}} }} }} }}}
 
 
 
| label12    = Secondary dia.
 
| rowclass12 = note
 
| data12    = {{{diameter2|}}}
 
 
 
| label13    = Tertiary dia.
 
| rowclass13 = note
 
| data13    = {{{diameter3|}}}
 
 
 
| label14 = [[Angular resolution]]
 
| data14  = {{{angular_resolution|}}}
 
 
 
| label15 = Collecting&nbsp;area <!-- needs corresponding call in WikidataIB - to do -->
 
| data15  = {{{area|{{#if:{{#property:P2046}}|{{#ifeq:{{#invoke:Wikidata|getUnits|P2046|FETCH_WIKIDATA}}|square inch|{{convert|input=P2046|sqm|abbr=on}}|{{convert|input=P2046|sqft|abbr=on}} }} }} }}}
 
 
 
| label16 = [[Focal length]] <!-- needs corresponding call in WikidataIB - to do -->
 
| data16  = {{{focal_length|{{#if:{{#property:P2151}}|{{convert|input=P2151|ft|abbr=on}} }} }}}
 
 
 
| label17 = [[Telescope mount|Mounting]]
 
| data17  = {{{mounting|}}}
 
 
 
| label18 = Enclosure
 
| data18  = {{#invoke:WikidataIB|getValue|P3158|name=dome|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|{{{dome|}}}}}
 
 
 
| label19 = Website <!-- needs corresponding call in WikidataIB that can return just a url - to do -->
 
| data19  = {{{website|{{#invoke:URLWD|url|1={{#invoke:WikidataIB|getValue|P856|name=website|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|noicon=yes}} }} }}}
 
 
 
| header20  = {{{nrhp|{{{embedded|{{{module|}}}}}}}}}
 
 
 
| data21 = <div style="text-align: center;">{{#if:{{#invoke:WikidataIB|getValue|P373|name=commons|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|{{{commons|}}}}} | {{icon|Commons}} [[Commons:{{#if:{{{commons|}}} | {{{commons}}} | Category:{{#invoke:WikidataIB|getValue|P373|name=commons|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|}}}|onlysourced={{{onlysourced|}}}|noicon=yes}} }} |Related media on Wikimedia Commons]]}}</div>
 
 
 
| below    = <div style="text-align: right;">&#91;[[d:{{#invoke:Wikidata|pageId}}|edit on Wikidata]]]</div>
 
 
 
}}<includeonly>{{#invoke:check for unknown parameters|check|unknown=[[Category:Articles using Infobox telescope using locally defined parameters]]}}</includeonly><noinclude>
 
{{documentation}}
 
</noinclude>
 

Latest revision as of 18:02, 18 December 2016