Template:Castle: Difference between revisions

From Jcastle.info
(Generated from a page schema)
(Generated from a page schema)
Line 37: Line 37:
! Name in Japanese (optional)
! Name in Japanese (optional)
| {{{Japanese Name|}}}
| {{{Japanese Name|}}}
{{{Romaji Name|}}}
|-
{{#if:{{{Alternate Names|}}}|
! Japanese Name Reading (Romaji)
{{!}}-
| {{{Romaji Name|}}}
|-
! Alternate Names
! Alternate Names
{{!}} {{{Alternate Names|}}}
| {{{Alternate Names|}}}
}}{{#if:{{{Founder|}}}|
|-
{{!}}-
! Founder
! Founder
{{!}} {{{Founder|}}}
| {{{Founder|}}}
}}{{#if:{{{Year Founded|}}}|
|-
{{!}}-
! Year Founded
! Year Founded
{{!}} {{{Year Founded|}}}
| {{{Year Founded|}}}
}}{{#if:{{{Year Reconstructed|}}}|
|-
{{!}}-
! Year Reconstructed
! Year Reconstructed
{{!}} {{{Year Reconstructed|}}}
| {{{Year Reconstructed|}}}
}}{{#if:{{{Main Keep Structure|}}}|
|-
{{!}}-
! Main Keep Structure
! Main Keep Structure
{{!}} {{{Main Keep Structure|}}}
| {{{Main Keep Structure|}}}
}}{{#if:{{{Artifacts|}}}|
|-
{{!}}-
! Artifacts
! Artifacts
{{!}} {{{Artifacts|}}}
| {{{Artifacts|}}}
}}|-
|-
! City
! City
| {{{City|}}}
| {{{City|}}}
{{#cargo_display_map:point= {{{Coordinates|}}} }}
|-
{{#if:{{{Access|}}}|
! Coordinates
{{!}}-
| {{#cargo_display_map:point= {{{Coordinates|}}} }}
|-
! Access
! Access
{{!}} {{{Access|}}}
| {{{Access|}}}
}}{{#if:{{{Visitor Information|}}}|
|-
{{!}}-
! Visitor Information
! Visitor Information
{{!}} {{{Visitor Information|}}}
| {{{Visitor Information|}}}
}}{{#if:{{{Time Required|}}}|
|-
{{!}}-
! Time Required (mins)
! Time Required (mins)
{{!}} {{{Time Required|}}}
| {{{Time Required|}}}
}}{{#if:{{{Website|}}}|
|-
{{!}}-
! Website
! Website
{{!}} {{{Website|}}}
| {{{Website|}}}
}}{{#if:{{{Prefecture|}}}|
|-
{{!}}-
! Prefecture
! Prefecture
{{!}} [[{{{Prefecture|}}}]]
| [[{{{Prefecture|}}}]]
}}{{#if:{{{Castle Type|}}}|
|-
{{!}}-
! Castle Type
! Castle Type
{{!}} [[{{{Castle Type|}}}]]
| [[{{{Castle Type|}}}]]
}}{{#if:{{{Castle Condition|}}}|
|-
{{!}}-
! Castle Condition
! Castle Condition
{{!}} [[{{{Castle Condition|}}}]]
| [[{{{Castle Condition|}}}]]
}}{{#if:{{{Historical Period|}}}|
|-
{{!}}-
! Historical Period
! Historical Period
{{!}} [[{{{Historical Period|}}}]]
| [[{{{Historical Period|}}}]]
}}{{#if:{{{Admin Rating|}}}|
|-
{{!}}-
! Admin Rating
! Admin Rating
{{!}} {{{Admin Rating|}}}
| {{{Admin Rating|}}}
}}|-
|-
! Historical Designations
! Historical Designations
| {{#arraymap:{{{Historical Designations|}}}|,|x|[[x]]}}
| {{#arraymap:{{{Historical Designations|}}}|,|x|[[x]]}}
{{#if:{{{Notes|}}}|
|-
{{!}}-
! Notes
! Notes
{{!}} {{{Notes|}}}
| {{{Notes|}}}
}}|-
|-
! History
! History
| {{{History|}}}
| {{{History|}}}

Revision as of 15:38, 2 June 2017

This is the "Castle" template. It should be called in the following format:

{{Castle
|English Name=
|Japanese Name=
|Romaji Name=
|Alternate Names=
|Founder=
|Year Founded=
|Year Reconstructed=
|Main Keep Structure=
|Artifacts=
|City=
|Coordinates=
|Access=
|Visitor Information=
|Time Required=
|Website=
|Prefecture=
|Castle Type=
|Castle Condition=
|Historical Period=
|Admin Rating=
|Historical Designations=
|Notes=
|History=
}}

Edit the page to see the template text. {{#cargo_declare:_table=Castles|English_Name=String|Japanese_Name=String|Romaji_Name=String|Alternate_Names=List (,) of Text|Founder=String|Year_Founded=String|Year_Reconstructed=String|Main_Keep_Structure=String|Artifacts=Text|City=String|Coordinates=Coordinates|Access=Text|Visitor_Information=Text|Time_Required=Integer|Website=URL|Prefecture=Page (allowed values=Tokyo,Gunma,Nagano,Saitama,Yamanashi,Ibaraki,Tochigi,Chiba,Gifu)|Castle_Type=Page (allowed values=Mountaintop,Hilltop,Flatland)|Castle_Condition=Page (allowed values=Original main keep,Reconstructed main keep,No main keep but other buildings,No main keep ruins only)|Historical_Period=Page (allowed values=Pre-Edo Period,Edo Period)|Admin_Rating=Float|Historical_Designations=List (,) of Page (allowed values=National Historical Site,Prefectural Historical Site,Local Historical Site,Top 100 Castles,Next 100 Castles,UNESCO World Heritage Site,has Important Cultural Properties,has National Treasures)|Notes=Text|History=Text}}