Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
(Generated from a page schema)
Line 19: Line 19:
|Time Required=
|Time Required=
|Website=
|Website=
|has stone walls=
|has buildings=
|has Important Cultural Properties=
|has National Treasures=
|is a World Heritage Site=
|is a Top 100 Castle=
|Prefecture=
|Prefecture=
|Castle Type=
|Castle Type=
|Castle Condition=
|Castle Condition=
|Historical Period=
|Historical Period=
|Historical Designation=
|Historical Designations=
|Admin Rating=
|Admin Rating=
|Designations=
|Historical Designations=
|Notes=
|History=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>{{#set:Romaji Name={{{Romaji Name|}}}|Coordinates={{{Coordinates|}}}|}}
 
{| class="wikitable"
{{#set:Romaji Name={{{Romaji Name|}}}|Coordinates={{{Coordinates|}}}|has stone walls={{{has stone walls|}}}|has buildings={{{has buildings|}}}|}}{| class="infobox"
! Name in English
! colspan="2" class="caption" | Castle Properties
|-
! English Name
| [[English Name::{{{English Name|}}}]]  
| [[English Name::{{{English Name|}}}]]  
{{#if:{{{Japanese Name|}}}|
{{#if:{{{Japanese Name|}}}|
{{!}}-
{{!}}-
! Japanese Name
! Name in Japanese (optional)
{{!}} [[Japanese Name::{{{Japanese Name|}}}]]}}  
{{!}} [[Japanese Name::{{{Japanese Name|}}}]]}}  
{{#if:{{{Alternate Names|}}}|
{{#if:{{{Alternate Names|}}}|
Line 50: Line 43:
! Alternate Names
! Alternate Names
{{!}} [[Alternate Names::{{{Alternate Names|}}}]]}}  
{{!}} [[Alternate Names::{{{Alternate Names|}}}]]}}  
{{#if:{{{Castle Type|}}}|
{{!}}-
! Castle Type
{{!}} [[Castle Type::{{{Castle Type|}}}]]}}
{{#if:{{{Castle Condition|}}}|
{{!}}-
! Castle Condition
{{!}} [[Castle Condition::{{{Castle Condition|}}}]]}}
{{#if:{{{City|}}}|
{{!}}-
! City
{{!}} [[City::{{{City|}}}]]}}
{{#if:{{{Prefecture|}}}|
{{!}}-
! Prefecture
{{!}} [[Prefecture::{{{Prefecture|}}}]]}}
|-
! colspan="2" class="caption" | Historical Properties
|-
{{#if:{{{Founder|}}}|
{{#if:{{{Founder|}}}|
{{!}}-
{{!}}-
! Founder
! Founder
{{!}} [[Founder::{{{Founder|}}}]]}}
{{!}} [[Founder::{{{Founder|}}}]]}}  
{{#if:{{{Year Founded|}}}|
{{#if:{{{Year Founded|}}}|
{{!}}-
{{!}}-
! Year Founded
! Year Founded
{{!}} [[Year Founded::{{{Year Founded|}}}]]}}{{#if:{{{Year Reconstructed|}}}|
{{!}} [[Year Founded::{{{Year Founded|}}}]]}}  
{{#if:{{{Year Reconstructed|}}}|
{{!}}-
{{!}}-
! Year Reconstructed
! Year Reconstructed
Line 88: Line 63:
! Artifacts
! Artifacts
{{!}} [[Artifacts::{{{Artifacts|}}}]]}}  
{{!}} [[Artifacts::{{{Artifacts|}}}]]}}  
{{#if:{{{has Important Cultural Properties|}}}|
{{#if:{{{City|}}}|
{{!}}-
{{!}}-
! has Important Cultural Properties
! City
{{!}} [[has Important Cultural Properties::{{{has Important Cultural Properties|}}}]]}}  
{{!}} [[City::{{{City|}}}]]}}  
{{#if:{{{has National Treasures|}}}|
{{!}}-
! has National Treasures
{{!}} [[has National Treasures ::{{{has National Treasures|}}}]]}}
{{#if:{{{is a World Heritage Site|}}}|
{{!}}-
! is a World Heritage Site
{{!}} [[is a World Heritage Site::{{{is a World Heritage Site|}}}]]}}
{{#if:{{{is a Top 100 Castle|}}}|
{{!}}-
! is a Top 100 Castle
{{!}} [[is a Top 100 Castle::{{{is a Top 100 Castle|}}}]]}}
{{#if:{{{Historical Period|}}}|
{{!}}-
! Historical Period
{{!}} [[Historical Period::{{{Historical Period|}}}]]}}
{{#if:{{{Historical Designation|}}}|
{{!}}-
! Historical Designation
{{!}} [[Historical Designation::{{{Historical Designation|}}}]]}}
|-
! Designations
| {{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}
|-
! colspan="2" class="caption" | Visitor Information
|-
{{#if:{{{Access|}}}|
{{#if:{{{Access|}}}|
{{!}}-
{{!}}-
Line 128: Line 77:
{{#if:{{{Time Required|}}}|
{{#if:{{{Time Required|}}}|
{{!}}-
{{!}}-
! Time (mins)
! Time Required (mins)
{{!}} [[Time Required::{{{Time Required|}}}]]}}  
{{!}} [[Time Required::{{{Time Required|}}}]]}}  
{{#if:{{{Website|}}}|
{{#if:{{{Website|}}}|
Line 134: Line 83:
! Website
! Website
{{!}} [[Website::{{{Website|}}}]]}}  
{{!}} [[Website::{{{Website|}}}]]}}  
{{#if:{{{Prefecture|}}}|
{{!}}-
! Prefecture
{{!}} [[Prefecture::{{{Prefecture|}}}]]}}
{{#if:{{{Castle Type|}}}|
{{!}}-
! Castle Type
{{!}} [[Castle Type::{{{Castle Type|}}}]]}}
{{#if:{{{Castle Condition|}}}|
{{!}}-
! Castle Condition
{{!}} [[Castle Condition::{{{Castle Condition|}}}]]}}
{{#if:{{{Historical Period|}}}|
{{!}}-
! Historical Period
{{!}} [[Historical Period::{{{Historical Period|}}}]]}}
{{#if:{{{Historical Designations|}}}|
{{!}}-
! Historical Designations
{{!}} [[Historical Designations::{{{Historical Designations|}}}]]}}
{{#if:{{{Admin Rating|}}}|
{{#if:{{{Admin Rating|}}}|
{{!}}-
{{!}}-
Line 139: Line 108:
{{!}} [[Admin Rating::{{{Admin Rating|}}}]]}}  
{{!}} [[Admin Rating::{{{Admin Rating|}}}]]}}  
|-
|-
! colspan="2" | {{#display_map:{{#show: {{FULLPAGENAME}}|?Coordinates}}|service=googlemaps|type=terrain|zoom=5}}
! Historical Designations
| {{#arraymap:{{{Historical Designations|}}}|,|x|[[Historical Designations::x]]}}
{{#if:{{{Notes|}}}|
{{!}}-
! Notes
{{!}} [[Notes::{{{Notes|}}}]]}}
|-
! History
| [[History::{{{History|}}}]]
|}
|}
{{highlightimage}}
{{#ask:
[[Category:Castle Photos]]
[[Castle::{{PAGENAME}}]]
|format=gallery
|limit=100
|link=all
|sort=order
|order=ascending
|headers=hide
|searchlabel=... more photos
|class=sortable wikitable smwtable
|id=castlephotos
|intro={{PAGENAME}} Photos
|navigation=nav
|captionproperty = Castle
|overlay=yes
}}
==MAP==
{{#ask:
[[Category:Castle Photos]]
[[Castle::{{PAGENAME}}]]
|?Coordinates
|?Short Description
|?Castle
|type=satellite
|format=map
|template=infoWindowProfile
|limit=100
}}


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

Revision as of 21:51, 28 May 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=
|Historical Designations=
|Admin Rating=
|Historical Designations=
|Notes=
|History=
}}

Edit the page to see the template text.