編集の要約なし
Area V1.4: remove leading transclusion whitespace
 
(2人の利用者による、間の10版が非表示)
7行目: 7行目:
|area_type=String
|area_type=String
|parent_id=Integer
|parent_id=Integer
|prefecture=String
|code=String
|code=String
|latitude=Float
|longitude=Float
|description=Text
|description=Text
|seo_title=String
|seo_description=Text
}}
}}
</noinclude>
</noinclude><includeonly>__NOTOC__<div style="display:none">{{#default_form:Area}}</div><!-- Cargo保存 -->{{#cargo_store:
 
<includeonly>
 
{{#cargo_store:
_table=Areas
_table=Areas
|area_id={{{area_id|}}}
|area_id={{{area_id|}}}
26行目: 17行目:
|area_type={{{area_type|}}}
|area_type={{{area_type|}}}
|parent_id={{{parent_id|}}}
|parent_id={{{parent_id|}}}
|prefecture={{{prefecture|}}}
|code={{{code|}}}
|code={{{code|}}}
|latitude={{{latitude|}}}
|longitude={{{longitude|}}}
|description={{{description|}}}
|description={{{description|}}}
|seo_title={{{seo_title|}}}
}}<div class="area-page area-v1"><div class="area-infobox area-v1-infobox">
|seo_description={{{seo_description|}}}
}}
 
<div class="area-page">
 
<!-- ============================= -->
<!-- 基本情報 -->
<!-- ============================= -->
 
<div class="area-infobox">
 
{| class="wikitable"
{| class="wikitable"
|+ {{{name|地域情報}}}
|+ {{{name|地域情報}}}
|-
|-
! 地域名
! 地域名
| {{{name|}}}
| {{{name|}}}
|-
|-
! 読み方
! 読み方
| {{{kana|}}}
| {{{kana|}}}
|-
|-
! 地域区分
! 地域区分
66行目: 40行目:
|{{{area_type|}}}
|{{{area_type|}}}
}}
}}
|-
|-
! 都道府県
! 都道府県
| {{{prefecture|}}}
|
 
{{#switch:{{{area_type|}}}
|prefecture={{{name|未登録}}}
|ward=
{{#cargo_query:
tables=Areas=C,Areas=P
|join on=C.parent_id=P.area_id
|fields=P.name
|where=C.area_id={{{parent_id|0}}}
|format=list
|delimiter=
|more results text=
|default=未登録
}}
|#default=
{{#cargo_query:
tables=Areas=P
|fields=P.name
|where=P.area_id={{{parent_id|0}}}
|format=list
|delimiter=
|more results text=
|default=未登録
}}
}}
|-
|-
! 地方公共団体コード
! 地方公共団体コード
| {{{code|}}}
| {{{code|}}}
|-
|-
! Area ID
! Area ID
| {{{area_id|}}}
| {{{area_id|}}}
|}
|}
</div>
</div>
<!-- ============================= -->
<!-- 概要 -->
<!-- ============================= -->
{{#if:{{{description|}}}
{{#if:{{{description|}}}
|
|
== {{{name|}}}について ==
== {{{name|}}}について ==
{{{description}}}
{{{description}}}
|
|
}}
}}
 
== {{{name|}}}の祭り・イベント ==
 
<div class="area-v1-festival-grid">
<!-- ============================= -->
{{#cargo_query:
<!-- 上位地域 -->
tables=FestivalAreas=FA,Festivals=F
<!-- ============================= -->
|join on=FA.festival_id=F.festival_id
 
|fields=F._pageName,F.name,F.festival_id
|where=FA.area_id={{{area_id}}}
|group by=F._pageName,F.name,F.festival_id
|order by=F.name ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭り・イベントはありません。
}}
</div>
{{#ifexpr:{{{parent_id|0}}} > 0
{{#ifexpr:{{{parent_id|0}}} > 0
|
|
== 上位地域 ==
== 上位地域 ==
{{#cargo_query:
{{#cargo_query:
tables=Areas
tables=Areas
113行目: 106行目:
|default=上位地域の情報はありません。
|default=上位地域の情報はありません。
}}
}}
|}}{{#ifeq:{{{area_type|}}}|prefecture
|
|
}}
<!-- ================================================= -->
<!-- 都道府県 -->
<!-- ================================================= -->
{{#ifeq:{{{area_type|}}}|prefecture
|
== {{{name|}}}の地域 ==
== {{{name|}}}の地域 ==
 
<div class="area-v1-child-grid area-v1-child-grid-special_ward">
 
=== 特別区 ===
 
{{#cargo_query:
{{#cargo_query:
tables=Areas
tables=Areas
136行目: 117行目:
|format=template
|format=template
|template=AreaChildDisplay
|template=AreaChildDisplay
|intro=<h3>特別区</h3>
|default=
|default=
}}
}}
 
</div>
 
<div class="area-v1-child-grid area-v1-child-grid-city">
=== 市 ===
 
{{#cargo_query:
{{#cargo_query:
tables=Areas
tables=Areas
149行目: 129行目:
|format=template
|format=template
|template=AreaChildDisplay
|template=AreaChildDisplay
|intro=<h3>市</h3>
|default=
|default=
}}
}}
 
</div>
 
<div class="area-v1-child-grid area-v1-child-grid-town">
=== 町 ===
 
{{#cargo_query:
{{#cargo_query:
tables=Areas
tables=Areas
162行目: 141行目:
|format=template
|format=template
|template=AreaChildDisplay
|template=AreaChildDisplay
|intro=<h3>町</h3>
|default=
|default=
}}
}}
 
</div>
 
<div class="area-v1-child-grid area-v1-child-grid-village">
=== 村 ===
 
{{#cargo_query:
{{#cargo_query:
tables=Areas
tables=Areas
175行目: 153行目:
|format=template
|format=template
|template=AreaChildDisplay
|template=AreaChildDisplay
|intro=<h3>村</h3>
|default=
|default=
}}
}}
 
</div>
|
|}}{{#ifeq:{{{area_type|}}}|city
}}
 
 
<!-- ================================================= -->
<!-- 市 -->
<!-- ================================================= -->
 
{{#ifeq:{{{area_type|}}}|city
|
|
 
<div class="area-v1-child-grid area-v1-child-grid-ward">
== {{{name|}}}の行政区 ==
 
{{#cargo_query:
{{#cargo_query:
tables=Areas
tables=Areas
198行目: 167行目:
|format=template
|format=template
|template=AreaChildDisplay
|template=AreaChildDisplay
|default=行政区はありません。
|intro=<h2>{{{name|}}}の行政区</h2>
}}
|default=
 
|
}}
 
 
<!-- ================================================= -->
<!-- 特別区 -->
<!-- ================================================= -->
 
{{#ifeq:{{{area_type|}}}|special_ward
|
 
== {{{name|}}}の祭り・イベント ==
 
{{#cargo_query:
tables=Festivals
|fields=_pageName,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}
 
|
}}
 
 
<!-- ================================================= -->
<!-- 行政区 -->
<!-- ================================================= -->
 
{{#ifeq:{{{area_type|}}}|ward
|
 
== {{{name|}}}の祭り・イベント ==
 
{{#cargo_query:
tables=Festivals
|fields=_pageName,name,start_date,end_date,festival_type
|where=town='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}
 
|
}}
 
 
<!-- ================================================= -->
<!-- 町 -->
<!-- ================================================= -->
 
{{#ifeq:{{{area_type|}}}|town
|
 
== {{{name|}}}の祭り・イベント ==
 
{{#cargo_query:
tables=Festivals
|fields=_pageName,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}
 
|
}}
 
 
<!-- ================================================= -->
<!-- 村 -->
<!-- ================================================= -->
 
{{#ifeq:{{{area_type|}}}|village
|
 
== {{{name|}}}の祭り・イベント ==
 
{{#cargo_query:
tables=Festivals
|fields=_pageName,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}
 
|
}}
 
 
<!-- ================================================= -->
<!-- 都道府県の祭り -->
<!-- ================================================= -->
 
{{#ifeq:{{{area_type|}}}|prefecture
|
 
== {{{name|}}}の祭り・イベント ==
 
{{#cargo_query:
tables=Festivals
|fields=_pageName,name,start_date,end_date,festival_type
|where=prefecture='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}
 
|
}}
 
 
<!-- ================================================= -->
<!-- 市の祭り -->
<!-- ================================================= -->
 
{{#ifeq:{{{area_type|}}}|city
|
 
== {{{name|}}}の祭り・イベント ==
 
{{#cargo_query:
tables=Festivals
|fields=_pageName,name,start_date,end_date,festival_type
|where=city='{{{name}}}'
|order by=start_date ASC
|format=template
|template=AreaFestivalDisplay
|default=現在登録されている祭りはありません。
}}
 
|
}}
 
 
<!-- ============================= -->
<!-- 地図 -->
<!-- ============================= -->
 
{{#if:{{{latitude|}}}
|
{{#if:{{{longitude|}}}
|
 
== 地図 ==
 
{{#display_map:
{{{latitude}}},{{{longitude}}}
|service=openlayers
|zoom=11
|height=400px
|width=100%
}}
 
[https://www.openstreetmap.org/?mlat={{{latitude}}}&mlon={{{longitude}}} OpenStreetMapで見る]
 
|
}}
|
}}
 
 
<!-- ============================= -->
<!-- SEO説明 -->
<!-- ============================= -->
 
{{#if:{{{seo_description|}}}
|
<div class="area-seo-description">
{{{seo_description}}}
</div>
|
}}
}}
</div>
</div>
 
|}}</div>
</includeonly>
</includeonly>

2026年8月27日 (木) 14:48時点における最新版

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