「テンプレート:組織」の版間の差分

Twitterアカウントが省略の場合に対応
tableタグを使い、Twitterアカウントのパラメータが空の場合には項目を表示しないよう微調整。
1行目: 1行目:
<onlyinclude>{|style="border: 1px solid; width:25em; float: right; font-size: 90%;" ;
<table style="border: 1px solid; width:25em; float: right; font-size: 90%;">
|-
<tr>
! colspan="2" | {{{名称}}}
<th colspan="2">{{{名称}}}</th>
|-
</tr>
! [[Property:Address | 所在地]]
<tr>
| [[Address::{{{所在地}}}]]
<th>[[Property:Address | 所在地]]</th>
|-
<td>[[Address::{{{所在地}}}]]</td>
! [[Property:Website | ウェブサイト]]
</tr>
| [[Website::{{{URL}}}]]
<tr>
|-
<th>[[Property:Website | ウェブサイト]]</th>
!Twitter
<td>[[Website::{{{URL|}}}]]</td>
|{{{Twitterアカウント|}}}
</tr>
|}{{DEFAULTSORT:{{{よみ|}}}}}<includeonly>[[Category:組織・団体]]</includeonly>
{{#if:{{{Twitterアカウント|}}}|
</onlyinclude>
<tr>
<th>Twitter</th>
<td>{{{Twitterアカウント|}}}</td>
|}}</table>{{DEFAULTSORT:{{{よみ|}}}}}<includeonly>[[Category:組織・団体]]</includeonly><noinclude>
組織用テンプレートです。
<!-- now some annotations that don't appear in the template -->
<!-- now some annotations that don't appear in the template -->
<noinclude>
<pre>{{組織
<pre>{{組織
|名称=
|名称=