ページの作成:「<noinclude> {{#cargo_declare: _table=Areas |area_id=Integer |name=String |kana=String |area_type=String |parent_id=Integer |prefecture=String |code=String |latitude=Float |longitude=Float |description=Text |seo_title=String |seo_description=Text }} </noinclude> <includeonly> {{#cargo_store: _table=Areas |area_id={{{area_id|}}} |name={{{name|}}} |kana={{{kana|}}} |area_type={{{area_type|}}} |parent_id={{{parent_id|}}} |pref…」
 
編集の要約なし
1行目: 1行目:
<noinclude>
<noinclude>
{{#cargo_declare:
{{#cargo_declare:
_table=Areas
_table=Areas


|area_id=Integer
|area_id=Integer
|name=String
|name=String
|kana=String
|area_type=String
|parent_id=Integer
|prefecture=String
|code=String
|latitude=Float
|longitude=Float
|description=Text
|seo_title=String
|seo_description=Text
}}
</noinclude>


<includeonly>


|kana=String
{{#cargo_store:
_table=Areas


|area_id={{{area_id|}}}
|name={{{name|}}}
|kana={{{kana|}}}
|area_type={{{area_type|}}}
|parent_id={{{parent_id|}}}
|prefecture={{{prefecture|}}}
|code={{{code|}}}
|latitude={{{latitude|}}}
|longitude={{{longitude|}}}
|description={{{description|}}}
|seo_title={{{seo_title|}}}
|seo_description={{{seo_description|}}}
}}


|area_type=String
<div class="area-page">


<div class="area-infobox">


|parent_id=Integer
{| class="wikitable"
|+ {{{name|地域情報}}}


|-
! 地域名
| {{{name|}}}


|prefecture=String
|-
! 読み方
| {{{kana|}}}


|-
! 地域区分
|
{{#switch:{{{area_type|}}}
|prefecture=都道府県
|city=市
|special_ward=特別区
|ward=行政区
|town=町
|village=村
|{{{area_type|}}}
}}


|code=String
|-
! 都道府県
| {{{prefecture|}}}


|-
! 地方公共団体コード
| {{{code|}}}


|latitude=Float
|-
! Area ID
| {{{area_id|}}}


|}


|longitude=Float
</div>




|description=Text
{{#if:{{{description|}}}
|
== {{{name|}}}について ==


{{{description}}}
|
}}


|seo_title=String


<!-- ===================================== -->
<!-- 親地域 -->
<!-- ===================================== -->


|seo_description=Text
{{#ifexpr: {{{parent_id|0}}} > 0
|
== 上位地域 ==


{{#cargo_query:
tables=Areas
|fields=_pageName=page,name,area_type
|where=area_id={{{parent_id}}}
|format=template
|template=AreaParentDisplay
|default=上位地域の情報はありません。
}}
|
}}


}}


</noinclude>
<!-- ===================================== -->
<!-- 子地域 -->
<!-- ===================================== -->


<includeonly>
== {{{name|}}}の地域一覧 ==


{{#cargo_store:
{{#cargo_query:
tables=Areas
|fields=_pageName=page,name,kana,area_type
|where=parent_id={{{area_id}}}
|order by=name ASC
|format=template
|template=AreaChildDisplay
|default=下位地域はありません。
}}


_table=Areas


<!-- ===================================== -->
<!-- 祭り一覧 -->
<!-- ===================================== -->


|area_id={{{area_id|}}}
== {{{name|}}}の祭り・イベント ==


{{#switch:{{{area_type|}}}


|name={{{name|}}}
|prefecture=


{{#cargo_query:
tables=Festivals
|fields=_pageName=page,name,start_date,end_date,festival_type
|where=prefecture='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}


|kana={{{kana|}}}
|city=


{{#cargo_query:
tables=Festivals
|fields=_pageName=page,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}


|area_type={{{area_type|}}}
|special_ward=


{{#cargo_query:
tables=Festivals
|fields=_pageName=page,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}


|parent_id={{{parent_id|}}}
|ward=


{{#cargo_query:
tables=Festivals
|fields=_pageName=page,name,start_date,end_date,festival_type
|where=town='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}


|prefecture={{{prefecture|}}}
|town=


{{#cargo_query:
tables=Festivals
|fields=_pageName=page,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}


|code={{{code|}}}
|village=


{{#cargo_query:
tables=Festivals
|fields=_pageName=page,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}


|latitude={{{latitude|}}}
}}




|longitude={{{longitude|}}}
<!-- ===================================== -->
<!-- 地図 -->
<!-- ===================================== -->


{{#if:{{{latitude|}}}
|
{{#if:{{{longitude|}}}
|


|description={{{description|}}}
== 地図 ==


{{#display_map:
{{{latitude}}},{{{longitude}}}
|service=openlayers
|zoom=11
|height=400px
|width=100%
}}


|seo_title={{{seo_title|}}}
[https://www.openstreetmap.org/?mlat={{{latitude}}}&mlon={{{longitude}}} OpenStreetMapで見る]


|
}}
|
}}


|seo_description={{{seo_description|}}}


<!-- ===================================== -->
<!-- SEO補助 -->
<!-- ===================================== -->


{{#if:{{{seo_description|}}}
|
<div class="area-seo-description">
{{{seo_description}}}
</div>
|
}}
}}
</div>


</includeonly>
</includeonly>

2026年8月9日 (日) 20:35時点における版

このテンプレートはテーブル「Areas」を定義しています。 テーブルを表示.