Template:Infobox observatory[ウィキデータを編集
]Luaモジュールを使用しています:
Module:Infobox
Module:InfoboxImage
Module:Wikidata
Module:Location map
.mw-parser-output .side-box{margin:4px 0;box-sizing:border-box;border:1px solid #aaa;font-size:88%;line-height:1.25em;background-color:#f9f9f9;display:flow-root}.mw-parser-output .side-box-abovebelow,.mw-parser-output .side-box-text{padding:0.25em 0.9em}.mw-parser-output .side-box-image{padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .side-box-imageright{padding:2px 0.9em 2px 0;text-align:center}@media(min-width:500px){.mw-parser-output .side-box-flex{display:flex;align-items:center}.mw-parser-output .side-box-text{flex:1}}@media(min-width:720px){.mw-parser-output .side-box{width:238px}.mw-parser-output .side-box-right{clear:right;float:right;margin-left:1em}.mw-parser-output .side-box-left{margin-right:1em}}このテンプレートは1つもしくは複数のウィキデータプロパティを使用しています。詳細は§ 引数を参照。
天文台の基礎情報を表示するテンプレートです。英語版記事から転記する場合、冒頭のテンプレート名を「Infobox Observatory」から「Infobox 天文台」に変更してください。 ウィキデータを読み込んで表示します。 {{{name}}}[[File:{{{image}}}|frameless|border|upright=1.1]]{{{caption}}} {{{telescope1_name}}}{{{telescope1_type}}} 内容がウィキデータに入力されている場合はウィキデータのを読み込んで表示しますが、関連する引数に記事で直接指定することで上書きすることができます。 引数既定値説明
使用法
最低限{{Infobox 天文台}}
全引数
運営者{{{organization}}}
コード{{{code}}}
略称{{{abbreviation}}}
所在地{{{location}}}
座標{{{coords}}}
標高{{{altitude}}}
天候{{{weather}}}
開設{{{established}}}
閉鎖{{{closed}}}
ウェブサイト{{{website}}}
望遠鏡
{{{telescope2_name}}}{{{telescope2_type}}}
......
{{{telescope30_name}}}{{{telescope30_type}}}
[ウィキデータを編集
テンプレートを表示
{{Infobox 天文台|name = |image = |caption = |organization = |code = |abbreviation = |location = |coords = <!-- {{Coord|LAT|LONG|type:landmark|display=inline,title}} -->|altitude = |weather = |established = <!-- {{Start date|YYYY|MM|DD}} -->|closed = |website = <!-- {{URL|example.com}} -->|telescope1_name = |telescope1_type = |telescope2_name = |telescope2_type = |telescope3_name = |telescope3_type = |telescope4_name = |telescope4_type = }}
引数
name記事名天文台名
imageP18
caption?画像の説明
organizationP137運営している組織
codeP717天文台コード
abbreviationP1813略称
locationP276所在地
coordsP625位置座標。{{coord}}をdisplay=inline,title指定で使用。
altitudeP2044標高
establishedP1619開設日。{{Start date}}を使用。
closed閉鎖日
telescopesP527望遠鏡名
websiteP856天文台のウェブサイトを{{URL}}を使って指定。
telescope1_name天文台の1番目の望遠鏡名
telescope1_type1番目の望遠鏡の仕様(及び追加の情報)
telescope2_name天文台の2番目の望遠鏡名
telescope2_type2番目の望遠鏡の仕様(及び追加の情報)
中略.
telescope29_name天文台の29番目の望遠鏡名
telescope29_type29番目の望遠鏡の仕様(及び追加の情報)
telescope30_name天文台の30番目の望遠鏡名
telescope30_type30番目の望遠鏡の仕様(及び追加の情報)
commonsP373ウィキメディア・コモンズのページ名かカテゴリ名
関連項目プロジェクト 天体
カテゴリ:天文台
この解説は、Template:Infobox 天文台/docから呼び出されています。 (編集 | 履歴)
編集者は、このテンプレートをサンドボックス (編集 | 差分)とテストケース (作成)で試すことができます。(解説)
/docのサブページにカテゴリを追加してください。 このテンプレートのサブページ一覧。