Template:Infobox telescope: Difference between revisions

no edit summary
m (1 revision imported)
No edit summary
 
Line 3: Line 3:
| titleclass = fn org
| titleclass = fn org
| child = {{{child|no}}}
| child = {{{child|no}}}
|    title = {{#if:{{{child|}}}||{{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}}}}
|    title = {{PAGENAMEBASE}}
|  header1 = {{#if:{{{child|}}}|{{{name|{{#invoke:WikidataIB |getLabel |{{{qid|}}}}}}}}}}
|  header1 = {{#if:{{{child|}}}|{{{name|{{#invoke:WikidataIB |getLabel |{{{qid|}}}}}}}}}}
|  image1 = {{#if:{{{child|}}}||{{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|<noinclude>image</noinclude>}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}}}
|  image1 = {{#if:{{{child|}}}||{{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB |getValue|rank=best|P18 |name=image |qid={{{qid|}}} |suppressfields={{{suppressfields|<noinclude>image</noinclude>}}} |fetchwikidata={{{fetchwikidata|ALL}}} |onlysourced=no |noicon=yes|{{{image|}}}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}}}
Line 12: Line 12:


|  label2  = Alternative&nbsp;names
|  label2  = Alternative&nbsp;names
|  data2  = {{#if:{{{child|}}}||{{#if:{{#invoke:WikidataIB|getValue|rank=best|P1813|name=alt_names|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{alt_names|}}} }}|{{#invoke:WikidataIB|getValue|rank=best|P1813|name=alt_names|qid={{{qid|}}}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{alt_names|}}} }}|{{#if:{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}|{{#invoke:Wikidata|ViewSomething|aliases|en|1|value}}{{EditAtWikidata|qid={{{qid|}}} }}|}} }}}}
|  data2  = {{{other names|{{{other_names|{{{othername|{{{nickname|{{{alias|}}}}}}}}}}}}}}}


|  label3  = Named&nbsp;after
|  label3  = Named&nbsp;after
Line 19: Line 19:
| label4  = Part of
| label4  = Part of
| data4  = {{#if:{{{child|}}}||{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P361|name=observatory|qid={{{qid|}}}|sep="<br />"|sorted=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{observatory|{{{observatory|}}}}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P361}} }} }}}}
| data4  = {{#if:{{{child|}}}||{{If first display both|{{#invoke:WikidataIB|getValue|rank=best|P361|name=observatory|qid={{{qid|}}}|sep="<br />"|sorted=yes|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|{{{observatory|{{{observatory|}}}}}}}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P361}} }} }}}}
| label5  = Location(s)
| class5  = label
|  data5  = {{If then show | <!--
-->{{#ifeq:{{#invoke:WikidataIB | getValue | rank=best | P131 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | maxvals=1}}|{{#invoke:WikidataIB | getValue | rank=best | P131 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}}}}|<!--
  -->{{#ifeq:{{#invoke:WikidataIB | getValue | rank=best | P276 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}} | maxvals=1}}|{{#invoke:WikidataIB | getValue | rank=best | P276 | name=adminunit | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }} | spf={{{spf|}}} | fwd={{{fwd|ALL}}} | osd={{{osd|no}}}}}|<!--
  -->{{If then show|{{#invoke:WikidataIB | location | {{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}}}|{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }}}} |<!--
  -->{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }} }} | <!--
  -->{{Wikidata location | qid={{#invoke:WikidataIB |getQid |qid={{{qid|}}} }}|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}|location={{{location|}}} }} }}<!--
--> }}


| label6  = Coordinates
| label6  = Coordinates
|  data6  = {{#if:{{{coords|}}}{{{coordinates|}}} | {{if empty|{{{coordinates|}}}|{{{coords|}}}}} | {{#if:{{#Property:P625}} | {{If first display both|{{Coord|display=inline,title|format=dms}}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|P625}} }}{{EditAtWikidata|pid=P625}} }} }} }}
|  data6  = {{#ifeq: {{lc: {{{pushpin_label_position|}}} }} | none | | {{#if:{{{pushpin_label|}}}|{{{pushpin_label}}}|{{#if:{{{name|}}}|{{{name}}}|{{{official_name|}}}}}}} }}


| label7  = Organization
| label7  = Organization
Line 118: Line 108:


|    label33 = Website
|    label33 = Website
|    data33 = {{{website|{{#if:{{#property:P856|from={{{qid|}}}}}|{{If first display both|{{Url|1={{#invoke:Wikidata|getValue|P856|qid={{{qid|}}}|FETCH_WIKIDATA}} }}|{{#ifeq:{{{refs|no}}}|yes|{{wikidata|references|normal+|{{{qid|}}}|P856}} }}{{EditAtWikidata|pid=P856|qid={{{qid|}}} }} }} }} }}}
|    data33 = {{#if:{{{website|}}}|{{{website}}}}}
 
|    data34 = {{#if:{{{nomap|}}}||{{Wikidata location map|locmapin={{{locmapin|}}}|map_caption={{{map_caption|}}}|name={{{name|}}}}}}}


|  header35 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}}
|  header35 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}}
|    data36 = {{{commons_category | {{#if:{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}| {{cclink|{{#invoke:String|replace|{{#invoke:WikidataIB |getCommonsLink|qid={{{qid|}}}|onlycat=True|fallback=False}}|Category:|}}|Related media on Wikimedia Commons}} }}}}}
|      below = {{#if:{{{child|}}}||{{EditOnWikidata}}}}


}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox telescope with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox telescope]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | altitude | angular_resolution | area | built | caption | child | code | commons | coordinates | coords | decommissioned | diameter | diameter2 | diameter3 | discovered | dome | embedded | first_light | focal_length | illuminatedarea | illuminateddiameter | image | image_size | length | location | locmapin | logo | map_caption | module | mounting | name | nomap | nrhp | namedafter | onlysourced | observatory | organisation | organization | qid | refs | style | suppressfields | wavelength | website | width}}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|locmapin}}|[[Category:Articles using Infobox telescope using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}</includeonly><noinclude>
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox telescope with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox telescope]] with unknown parameter "_VALUE_"|ignoreblank=y| alt | altitude | angular_resolution | area | built | caption | child | code | commons | coordinates | coords | decommissioned | diameter | diameter2 | diameter3 | discovered | dome | embedded | first_light | focal_length | illuminatedarea | illuminateddiameter | image | image_size | length | location | locmapin | logo | map_caption | module | mounting | name | nomap | nrhp | namedafter | onlysourced | observatory | organisation | organization | qid | refs | style | suppressfields | wavelength | website | width}}<includeonly>{{main other|{{#if:{{safesubst:#invoke:Check for unknown parameters|check|unknown=1|preview=1|locmapin}}|[[Category:Articles using Infobox telescope using locally defined parameters]]|[[Category:Articles with infoboxes completely from Wikidata]]}}}}</includeonly><noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>