Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
(Generated from a page schema)
Line 10: Line 10:
|Founder=
|Founder=
|Year Founded=
|Year Founded=
|Castle Type=
|Castle Condition=
|Designations=
|Historical Period=
|Main Keep Structure=
|Year Reconstructed=
|Year Reconstructed=
|Main Keep Structure=
|Artifacts=
|Artifacts=
|City=
|Features=
|Coordinates=
|Access=
|Access=
|Visitor Information=
|Visitor Information=
|Time Required=
|Time Required=
|Website=
|City=
|Prefecture=
|Prefecture=
|Castle Type=
|GPSLocation=
|Castle Condition=
|Historical Period=
|Admin Rating=
|Historical Designations=
|Notes=
|Notes=
|History=
|History=
|Year Visited=
|Japanese Notes=
|Visits=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
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}}
</noinclude><includeonly>{| class="wikitable"
</noinclude><includeonly>{{#cargo_store:_table=Castles|English_Name={{{English Name|}}}|Japanese_Name={{{Japanese Name|}}}|Romaji_Name={{{Romaji Name|}}}|Alternate_Names={{{Alternate Names|}}}|Founder={{{Founder|}}}|Year_Founded={{{Year Founded|}}}|Year_Reconstructed={{{Year Reconstructed|}}}|Main_Keep_Structure={{{Main Keep Structure|}}}|Artifacts={{{Artifacts|}}}|City={{{City|}}}|Coordinates={{{Coordinates|}}}|Access={{{Access|}}}|Visitor_Information={{{Visitor Information|}}}|Time_Required={{{Time Required|}}}|Website={{{Website|}}}|Prefecture={{{Prefecture|}}}|Castle_Type={{{Castle Type|}}}|Castle_Condition={{{Castle Condition|}}}|Historical_Period={{{Historical Period|}}}|Admin_Rating={{{Admin Rating|}}}|Historical_Designations={{{Historical Designations|}}}|Notes={{{Notes|}}}|History={{{History|}}} }}{| class="infobox"
! colspan="2" class="caption" | Castle Properties
|-
! English Name
! English Name
| {{{English Name|}}}
| [[English Name::{{{English Name|}}}]]
|-
|-
! Japanese Name
! Japanese Name
| {{{Japanese Name|}}}
| [[Japanese Name::{{{Japanese Name|}}}]]
{{#if:{{{Alternate Names|}}}|
|-
{{!}}-
! Japanese name in Romaji
| [[Romaji Name::{{{Romaji Name|}}}]]
|-
! Alternate Names
! Alternate Names
{{!}} {{{Alternate Names|}}}}}
| {{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}
|-
|-
! Founder
! Founder
Line 48: Line 49:
|-
|-
! Year Founded
! Year Founded
| {{{Year Founded|}}}
| [[Year Founded::{{{Year Founded|}}}]]
{{#if:{{{Year Reconstructed|}}}|{{!}}-
! Year Reconstructed
{{!}} {{{Year Reconstructed|}}}
}}{{#if:{{{Main Keep Structure|}}}|{{!}}-
! Main Keep Structure
{{!}} {{{Main Keep Structure|}}}
}}{{#if:{{{Artifacts|}}}|{{!}}-
! Artifacts
{{!}} {{{Artifacts|}}}}}
|-
|-
! Castle Type
! Castle Type
| [[{{{Castle Type|}}}]]
| [[Castle Type::{{{Castle Type|}}}]]  
|-
|-
! Castle Condition
! Castle Condition
| [[{{{Castle Condition|}}}]]
| [[Castle Condition::{{{Castle Condition|}}}]]  
|-
! Designations
| {{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}
|-
|-
! Historical Period
! Historical Period
| [[{{{Historical Period|}}}]]
| [[Historical Period::{{{Historical Period|}}}]]
{{#if:{{{Main Keep Structure|}}}|
{{!}}-
! Main Keep Structure
{{!}} [[Main Keep Structure::{{{Main Keep Structure|}}}]]}}
{{#if:{{{Year Reconstructed|}}}|
{{!}}-
! Year Reconstructed
{{!}} [[Year Reconstructed::{{{Year Reconstructed|}}}]]}}
{{#if:{{{Artifacts|}}}|
{{!}}-
! Artifacts
{{!}} [[Artifacts::{{{Artifacts|}}}]]}}
|-
! Features
| {{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}
|-
! Access
| [[Access::{{{Access|}}}]]
|-
! Visitor Information
| [[Visitor Information::{{{Visitor Information|}}}]]  
|-
|-
! Historical Designations
! Time Required
| {{#arraymap:{{{Historical Designations|}}}|,|x|[[x]]}}
| [[Time Required::{{{Time Required|}}}]]  
|-
|-
! Location
! City
| {{{City|}}}, [[{{{Prefecture|}}}]]
| [[City::{{{City|}}}]]  
|-
|-
! Prefecture
! Prefecture
| [[{{{Prefecture|}}}]]
| [[Prefecture::{{{Prefecture|}}}]]  
{{#if:{{{Admin Rating|}}}|
{{!}}-
! Admin Rating
{{!}} {{{Admin Rating|}}}}}
|-
|-
! colspan="2" class="caption" | Visitor Information
! GPSLocation
| [[GPSLocation::{{{GPSLocation|}}}]]
|-
|-
! Access
! Notes
| {{{Access|}}}
| [[Notes::{{{Notes|}}}]]
|-
|-
! Time Required
! History
| {{{Time Required|}}} mins
| {{{History|}}}
|-
|-
! Hours &amp; Admission
! Year Visited
| {{{Visitor Information|}}}
| {{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}
{{#if:{{{Website|}}}|
{{#if:{{{Japanese Notes|}}}|
{{!}}-
{{!}}-
! Website
! Japanese Notes
{{!}} {{{Website|}}}}}
{{!}} [[Japanese Notes::{{{Japanese Notes|}}}]]}}  
|-
|-
! colspan="2" | {{#cargo_display_map:width=100%|height=200px|service=googlemaps|mapTypeId=terrain|zoom=6 | point={{{Coordinates|}}}}}
! Visits
| [[Visits::{{{Visits|}}}]]
|}
|}
--
{{{Notes|}}}
--
{{{History|}}}
{{infobox}}


[[Category:Castles]]
[[Category:Castles]]
</includeonly>
</includeonly>

Revision as of 22:15, 4 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=
|Castle Type=
|Castle Condition=
|Designations=
|Historical Period=
|Main Keep Structure=
|Year Reconstructed=
|Artifacts=
|Features=
|Access=
|Visitor Information=
|Time Required=
|City=
|Prefecture=
|GPSLocation=
|Notes=
|History=
|Year Visited=
|Japanese Notes=
|Visits=
}}

Edit the page to see the template text.