「テンプレート:施設」の版間の差分
改名に合わせて説明を修正 |
地図をleafletに変更 |
||
| (7人の利用者による、間の81版が非表示) | |||
| 1行目: | 1行目: | ||
{{#if:{{{名称|}}}| | |||
< | {{#if:{{{所在地|}}}| | ||
{{#if:{{{電話番号|}}}| | |||
{{#if:{{{緯度経度|}}}| | |||
| | {{#if:{{{よみ|}}}| | ||
|{{施設基本データ加筆待ち}} | |||
}} | |||
|{{施設基本データ加筆待ち}} | |||
}} | |||
|{{施設基本データ加筆待ち}} | |||
| | }} | ||
|{{施設基本データ加筆待ち}} | |||
|{{{ | }} | ||
| | |{{施設基本データ加筆待ち}} | ||
}}{{#ifexist:{{FULLPAGENAME}}/en|{{Other languages}}|{{#ifexist:{{FULLPAGENAME}}/zh|{{Other languages}}|{{#ifexist:{{FULLPAGENAME}}/ko|{{Other languages}}}}}}}} | |||
<table style="border: 1px solid; width:30em; clear: both; float: right; font-size: 90%; margin-left: 5px;"> | |||
<tr> | |||
<th colspan="2" style="text-align: center;">'''{{{名称}}}'''</th> | |||
</tr> | |||
| | <tr> | ||
<th>[[Property:NameYomi | よみ]]</th> | |||
|{{{ | <td>[[NameYomi::{{{よみ|}}}]]</td> | ||
|- | </tr> | ||
<tr> | |||
|{{{ | <th>[[Property:Address | 所在地]]</th> | ||
|} | <td>[[Address::{{{所在地}}}]]</td> | ||
{{DEFAULTSORT:{{{よみ|}}}}} | </tr> | ||
</ | <tr> | ||
<th>[[Property:Coordinates | 緯度経度]]</th> | |||
<td>[[Coordinates::{{{緯度経度|}}}]]</td> | |||
</tr> | |||
<tr> | |||
<th>[[Property:Tel | 電話番号 ]]</th> | |||
<td>[[Tel::{{{電話番号|}}}]]</td> | |||
</tr> | |||
{{#if:{{{FAX|}}}| | |||
<tr> | |||
<th>[[Property:Fax | FAX ]]</th> | |||
<td>[[Fax::{{{FAX|}}}]]</td> | |||
</tr>}} | |||
<tr> | |||
<th>[[Property:メールアドレス | メールアドレス ]]</th> | |||
<td>{{{メールアドレス|}}}</td> | |||
</tr> | |||
<tr> | |||
<th>[[Property:Website | ウェブサイト]]</th> | |||
<td style="word-break:break-all">[[Website::{{{URL|}}}]]</td> | |||
</tr> | |||
{{#if:{{{Twitterアカウント|}}}| | |||
<tr> | |||
<th>[[Property:Twitter | Twitter ]]</th> | |||
<td>{{{Twitterアカウント|}}}</td> | |||
</tr>}} | |||
{{#if:{{{ISIL|}}}| | |||
<tr> | |||
<th>[[Property:ISIL | ISIL ]]</th> | |||
<td>[[ISIL::{{{ISIL|}}}]]</td> | |||
</tr>}} | |||
<tr> | |||
<th>[[Property:Comment | 備考]]</th> | |||
<td>{{{備考|}}}</td> | |||
</table>{{#if:{{{緯度経度|}}}|<div style="clear:both;float:right;margin:0 0 5px 5px">{{#compound_query: | |||
[[Coordinates::{{{緯度経度}}}]];?Coordinates;icon=current_position.png | |||
|[[Coordinates::{{{緯度経度}}}(3km)]][[Category:類縁施設]][[:+]];?Coordinates;icon=Marker-relative.png | |||
|[[Coordinates::{{{緯度経度}}}(3km)]][[Category:公民館]][[:+]];?Coordinates;icon=Marker-kominkan.png | |||
|[[Coordinates::{{{緯度経度}}}(3km)]][[Category:文書館]][[:+]];?Coordinates;icon=Marker-archives.png | |||
|[[Coordinates::{{{緯度経度}}}(3km)]][[Category:図書館]][[:+]];?Coordinates;icon=Marker-library.png | |||
|[[Coordinates::{{{緯度経度}}}(3km)]][[Category:博物館]][[:+]];?Coordinates;icon=Marker-museum.png | |||
|format=leaflet | |||
|limit=20 | |||
|width=300 | |||
|height=300 | |||
}}</div>{{#ifexpr:{{#ask:[[Coordinates::{{{緯度経度}}} (3km)]] [[:+]]|format=count}}>1|<div style="clear:both;float:right;max-width:300px;">{{#ask:[[Coordinates::{{{緯度経度}}} (3km)]] [[:+]] | |||
|format=ul | |||
|limit=5 | |||
|intro='''近隣施設一覧''' | |||
}}</div>}}}}{{DEFAULTSORT:{{{よみ|}}}}}<includeonly>[[Category:施設]]{{#if:{{{よみ|}}}||[[Category:施設よみ未付与]]}}{{#if:{{{緯度経度|}}}||[[Category:施設緯度経度未付与]]}}{{#if:{{{メールアドレス|}}}|{{#set:Email={{{メールアドレス|}}} }} }}{{#if:{{{Twitterアカウント|}}}|{{#set:Twitter={{{Twitterアカウント|}}} }} }}{{#if:{{{備考|}}}|{{#set:Comment={{{備考|}}} }} }}</includeonly><noinclude> | |||
<!-- now some annotations that don't appear in the template --> | <!-- now some annotations that don't appear in the template --> | ||
< | 施設の基本情報を掲載するテンプレートです。新しい項目は[[Form:新しい施設|新しい施設]]から作成してください。 | ||
<pre> | |||
<nowiki> | |||
{{施設 | |||
|名称= ○○図書館 | |||
|よみ= ○○○○としょかん | |||
|所在地=〒XXX-XXXX ○○県○○市○○町X番XX号 | |||
(旧所在地:〒XXX-XXXX ○○県○○市○○町X番XX号) | |||
|電話番号= | |||
|FAX= | |||
|緯度経度= | |||
|メールアドレス= | |||
|URL= | |||
|備考= | |||
}}</nowiki></pre> | |||
[[Category:テンプレート]]</noinclude> | |||