Template:Infobox astronomical object and Template:Infobox astronomical object/sandbox: Difference between pages
(Difference between pages)
imported>1234qwer1234qwer4 m avoid creating unwanted line breaks |
imported>GKFX Sync with main template. |
||
Line 1: | Line 1: | ||
{{Infobox | {{Infobox | ||
| headerstyle = background:#C0C0C0; | | headerstyle = background:#C0C0C0; | ||
| title = {{{name|{{#if:{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{#invoke:Wikidata|ViewSomething|labels|en|value}}|{{PAGENAMEBASE}}}}}}} | | 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}}} }}| | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P18|{{{image|FETCH_WIKIDATA}}} }}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt|}}}}} {{#if:{{{credit|}}}|<br/>Credit: {{{credit}}} }} | ||
| caption = {{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}} | | caption = {{{caption|{{#invoke:Wikidata|getImageLegend|FETCH_WIKIDATA}}}}} | ||
| image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P242|{{{map|FETCH_WIKIDATA}}} }}| | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:Wikidata|getValue|P242|{{{map|FETCH_WIKIDATA}}} }}|size={{{image_size|}}}|sizedefault=frameless|alt={{{alt2|}}}}} | ||
| caption2 = {{{caption2|Location map}}} | | caption2 = {{{caption2|Location map}}} | ||
Line 12: | Line 13: | ||
| label1 = Object type | | label1 = Object type | ||
| data1 = {{{type|{{#invoke:String2| | | data1 = {{{type|{{#invoke:String2|sentence|{{#invoke:WikidataIB|getValue|P31|name=event_type|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|ALL}}}|onlysourced={{{onlysourced|no}}}}}}}}}} | ||
| label2 = Other designations | | label2 = Other designations | ||
| data2 = {{#invoke:Wikidata|getRawValue|P528|{{{names|FETCH_WIKIDATA}}}}} | | data2 = {{#invoke:Wikidata|getRawValue|P528|{{{names|FETCH_WIKIDATA}}}}} |