Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(411 intermediate revisions by 2 users not shown)
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=
|GPS=
|Access=
|Access=
|Visitor Information=
|Visitor Information=
|Time Required=
|Time Required=
|City=
|Prefecture=
|GPSLocation=
|Notes=
|History=
|Year Visited=
|Japanese Notes=
|Visits=
|Website=
|Website=
|has stone walls=
|Yamaptrail=
|has buildings=
|YoutubeJcastle=
|has Important Cultural Properties=
|castleElev=
|has National Treasures=
|ekiLatLng=
|is a World Heritage Site=
|ekiElev=
|is a Top 100 Castle=
|elevChange=
|Prefecture=
|kamon=
|Castle Type=
|KamonFam=
|Castle Condition=
|AddedJcastle=
|Historical Period=
|Contributor=
|Historical Designation=
|Castle Collection=
|Admin Rating=
|Designations=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>{{#set:Notes={{{Notes|}}}}}{{#set:Contributor={{{Contributor|}}}}}
<p class="extractsummary3">{{#sub:{{{Notes|}}}|0|300}}</p>
 
<div class="row">
    <div class="col-md-8">
{{highlightimage}}
{{#if:{{{History|}}}|
<div class="card">
<h5 class="card-header">History</h5>
<div class="card-body">
{{{History|}}}}}
</div>
</div>
 
 
{{#if:{{{Notes|}}}|
<div class="card">
<h5 class="card-header">Field Notes</h5>
<div class="card-body">
{{{Notes|}}}}}
</div>
</div>
 
 
{{#ask:
[[Category:Castle Photos]]
[[Castle::{{PAGENAME}}]]
|?Short Description
|?{{{fileproperty|}}}
|?GPSLocation
|format=leaflet
|sort=order
|hidenamespace=on
|template=InfoWindowProfile
|layers=Esri.WorldTopoMap
|layer=Esri.WorldTopoMap
|service=leaflet
|icon=Darkred18.png
|showtitle=no
|limit=500
}}
 
 
 
<div class="card">
<h5 class="card-header">Gallery</h5>
<div class="card-body-new2">
<ul>
{{#ask:
[[Category:Castle Photos]]
[[Castle::{{PAGENAME}}]]
[[Hide::No]]
|?Short Description
|sort=order
|link=none
|format=template
|template=gallerythumbs
|order=ascending
}}</div>
</div>
 


{{#display_map:{{#show: {{FULLPAGENAME}}|?GPS}}|width=280|height=200|service=googlemaps|type=terrain|zoom=5}}
{{#ask:
[[Category:CastleSubpage]]
[[Castle::{{PAGENAME}}]]
|?Subpage Cover
|?Subpage Order
|?CastleSubpageNameEnglish
|link=none
|sort=Subpage Order
|format=template
|template=Subpage List
|introtemplate=Subpage List In
|outrotemplate=Samurai Home List Out
}}
</div>


{{#set:Romaji Name={{{Romaji Name|}}}|has stone walls={{{has stone walls|}}}|has buildings={{{has buildings|}}}|}}
    <div class="col-md-4">
{| class="wikitable"
<table class="table table-sm castleinfobox">
! colspan="2" | Castle Properties
<tr>
|-
<th colspan="2" class="caption">Castle Profile</th>
! Name in English
<tr>
| [[English Name::{{{English Name|}}}]]  
<th class="col-md-2">English Name</th>
{{#if:{{{Japanese Name|}}}|
<td class="col-md-2">[[English Name::{{{English Name|}}}]]</td>
{{!}}-
</tr>
! Name in Japanese (optional)
<tr>
{{!}} [[Japanese Name::{{{Japanese Name|}}}]]}}
<th>Japanese Name</th>
<td>[[Japanese Name::{{{Japanese Name|}}}]]</td>
</tr>
{{#if:{{{Alternate Names|}}}|
{{#if:{{{Alternate Names|}}}|
{{!}}-
<tr>
! Alternate Names
<th>Alternate Names</th>
{{!}} [[Alternate Names::{{{Alternate Names|}}}]]}}  
<td>{{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}</td>
{{#if:{{{Castle Type|}}}|
</tr>
{{!}}-
}}
! Castle Type
<tr>
{{!}} [[Castle Type::{{{Castle Type|}}}]]}}
<th>Founder</th>
{{#if:{{{Castle Condition|}}}|
<td>{{{Founder|}}}</td>
{{!}}-
</tr>
! Castle Condition
<tr>
{{!}} [[Castle Condition::{{{Castle Condition|}}}]]}}
<th>Year Founded</th>
{{#if:{{{City|}}}|
<td>{{{Year Founded|}}}</td>
{{!}}-
</tr>
! City
<tr>
{{!}} [[City::{{{City|}}}]]}}
<th>Castle Type</th>
{{#if:{{{Prefecture|}}}|
<td>[[Castle Type::{{{Castle Type|}}}]]</td>
{{!}}-
</tr>
! Prefecture
<tr>
{{!}} [[Prefecture::{{{Prefecture|}}}]]}}  
<th>Castle Condition</th>
|-
<td>[[Castle Condition::{{{Castle Condition|}}}]]</td>
! colspan="2" | Historical Properties
</tr>
|-
{{#if:{{{Designations|}}}|
{{#if:{{{Founder|}}}|
<tr>
{{!}}-
<th>Designations</th>
! Founder
<td>{{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}</td>
{{!}} [[Founder::{{{Founder|}}}]]}}
</tr>
{{#if:{{{Year Founded|}}}|
}}
{{!}}-
<tr>
! Year Founded
<th>Historical Period</th>
{{!}} [[Year Founded::{{{Year Founded|}}}]]}}  
<td>[[Historical Period::{{{Historical Period|}}}]]</td>
</tr>
{{#if:{{{Main Keep Structure|}}}|
<tr>
<th>Main Keep Structure</th>
<td>{{{Main Keep Structure|}}}</td>
</tr>
}}
{{#if:{{{Year Reconstructed|}}}|
{{#if:{{{Year Reconstructed|}}}|
{{!}}-
<tr>
! Year Reconstructed
<th>Year Reconstructed</th>
{{!}} [[Year Reconstructed::{{{Year Reconstructed|}}}]]}}
<td>{{{Year Reconstructed|}}}</td>
{{#if:{{{Main Keep Structure|}}}|
</tr>
{{!}}-
}}
! Main Keep Structure
{{!}} [[Main Keep Structure::{{{Main Keep Structure|}}}]]}}  
{{#if:{{{Artifacts|}}}|
{{#if:{{{Artifacts|}}}|
{{!}}-
<tr>
! Artifacts
<th>Artifacts</th>
{{!}} [[Artifacts::{{{Artifacts|}}}]]}}
<td>{{{Artifacts|}}}</td>
{{#if:{{{has Important Cultural Properties|}}}|
</tr>
{{!}}-
}}
! has Important Cultural Properties
<tr>
{{!}} [[has Important Cultural Properties::{{{has Important Cultural Properties|}}}]]}}
<th>Features</th>
{{#if:{{{has National Treasures|}}}|
<td>{{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}</td>
{{!}}-
</tr>
! has National Treasures
<tr>
{{!}} [[has National Treasures ::{{{has National Treasures|}}}]]}}
<th colspan="2" class="caption">Visitor Information</th>
{{#if:{{{is a World Heritage Site|}}}|
</tr>
{{!}}-
<tr>
! is a World Heritage Site
<th>Access</th>
{{!}} [[is a World Heritage Site::{{{is a World Heritage Site|}}}]]}}
<td>[[Access::{{{Access|}}}]]</td>
{{#if:{{{is a Top 100 Castle|}}}|
</tr>
{{!}}-
<tr>
! is a Top 100 Castle
<th>Hours</th>
{{!}} [[is a Top 100 Castle::{{{is a Top 100 Castle|}}}]]}}
<td>[[Visitor Information::{{{Visitor Information|}}}]]</td>
{{#if:{{{Historical Period|}}}|
</tr>
{{!}}-
<tr>
! Historical Period
<th>Time Required</th>
{{!}} [[Historical Period::{{{Historical Period|}}}]]}}
<td>[[Time Required::{{{Time Required|}}}]]
{{#if:{{{Historical Designation|}}}|
</td>
{{!}}-
</tr>
! Historical Designation
{{!}} [[Historical Designation::{{{Historical Designation|}}}]]}}  
{{#if:{{{Designations|}}}|
{{!}}-
! Designations
{{!}} [[Designations::{{{Designations|}}}]]}}
|-
! colspan="2" | Visitor Information
|-
{{#if:{{{Access|}}}|
{{!}}-
! Access
{{!}} [[Access::{{{Access|}}}]]}}
{{#if:{{{Visitor Information|}}}|
{{!}}-
! Visitor Information
{{!}} [[Visitor Information::{{{Visitor Information|}}}]]}}
{{#if:{{{Time Required|}}}|
{{!}}-
! Time Required (mins)
{{!}} [[Time Required::{{{Time Required|}}}]]}}
{{#if:{{{Website|}}}|
{{#if:{{{Website|}}}|
{{!}}-
<tr>
! Website
<th>URL</th>
{{!}} [[Website::{{{Website|}}}]]}}  
<td>[{{{Website|}}} Castle Website]</td>
{{#if:{{{Admin Rating|}}}|
</tr>
{{!}}-
}}
! Admin Rating
{{#if: {{{Yamaptrail|}}} |
{{!}} [[Admin Rating::{{{Admin Rating|}}}]]}}  
<tr>
|}
<th>Hiking Trail</th>
<td>[{{{Yamaptrail}}} View on Yamap]</td>
</tr>
}}
{{#if: {{{YoutubeJcastle|}}} |
<tr>
<th>Jcastle Video</th>
<td>[{{{YoutubeJcastle}}} Jcastle YouTube]</td>
</tr>
}}
<tr>
<th>Location</th>
<td>[[City::{{{City|}}}]], [[Prefecture::{{{Prefecture|}}}]]</td>
</tr>
<tr>
<th>Coordinates</th>
<td>[[GPSLocation::{{{GPSLocation|}}}]]</td>
</tr>
<tr>
<td colspan="2">
{{#display_map:{{#show: {{FULLPAGENAME}}|?GPSLocation}}|service=leaflet|layer=CartoDB.Positron|zoom=6|height=200|controls=|icon=Castlemarker.png}}
</td>
</tr>
{{#if:{{{Castle Collection|}}}|
<tr>
<th>Collections</th>
<td>{{#arraymap:{{{Castle Collection|}}}|,|x|[[Castle Collection::x]]}}</td>
</tr>
}}
<tr>
<th colspan="2" class="caption">Admin</th>
</tr>
<tr>
<th>Added to Jcastle</th>
<td>[[AddedJcastle::{{{AddedJcastle|}}}]]</td>
</tr>
{{#if:{{{Contributor|}}}|
<tr>
<th>Contributor</th>
<td>[[User:{{{Contributor|}}}|{{{Contributor|}}}]]</td>
</tr>
}}
<tr>
<th>Admin Year Visited</th>
<td>{{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}</td>
</tr>
{{#if:{{{Visits|}}}|
<tr>
<th>Admin Visits</th>
<td>[[Visits::{{{Visits|}}}]]</td>
</tr>
}}
{{#if:{{{FriendsLinks|}}}|
<tr>
<th colspan="2" class="caption">Friends of JCastle</th>
{{{FriendsLinks|}}}
</tr>
}}
</table>
 
{{#ask:
[[Category:Samurai Homes]]
[[Castle::{{PAGENAME}}]]
|link=none
|format=template
|template=Samurai Home List
|introtemplate=Samurai Home List In
|outrotemplate=Samurai Home List Out
}}
 
</div>
</div>
 
<div class="row">
    <div class="col-md-12">
 
<vote type=1 />
<comments />
 
[[Category:Castles]]   
    </div>
</div>
 
__NOTOC__
__NOEDITSECTION__


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

Latest revision as of 11:41, 24 May 2025

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=
|Website=
|Yamaptrail=
|YoutubeJcastle=
|castleElev=
|ekiLatLng=
|ekiElev=
|elevChange=
|kamon=
|KamonFam=
|AddedJcastle=
|Contributor=
|Castle Collection=
}}

Edit the page to see the template text.