Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(145 intermediate revisions by the same user not shown)
Line 30: Line 30:
|Visits=
|Visits=
|Website=
|Website=
|Yamaptrail=
|YoutubeJcastle=
|castleElev=
|castleElev=
|ekiLatLng=
|ekiLatLng=
Line 37: Line 39:
|KamonFam=
|KamonFam=
|AddedJcastle=
|AddedJcastle=
|Contributor=
|Castle Collection=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{#set:Notes={{{Notes|}}}}}
</noinclude><includeonly>{{#set:Notes={{{Notes|}}}}}{{#set:Contributor={{{Contributor|}}}}}
<p class="extractsummary3">{{#sub:{{{Notes|}}}|0|300}}</p>
 
<div class="row">
<div class="row">
     <div class="col-md-8">
     <div class="col-md-8">
{{highlightimage}}
{{highlightimage}}
{{#if:{{{History|}}}|
{{#if:{{{History|}}}|
<div class="panel panel-default">
<div class="card">
<div class="panel-heading">
<h5 class="card-header">History</h5>
<h3 class="panel-title">History</h3>
<div class="card-body">
    </div>
    <div class="panel-body">
{{{History|}}}}}
{{{History|}}}}}
  </div>
</div>
</div>
</div>
 
 
{{#if:{{{Notes|}}}|
{{#if:{{{Notes|}}}|
<div class="panel panel-default">
<div class="card">
<div class="panel-heading">
<h5 class="card-header">Field Notes</h5>
<h3 class="panel-title">Visit Notes</h3>
<div class="card-body">
    </div>
    <div class="panel-body">
{{{Notes|}}}}}
{{{Notes|}}}}}
{{#if:{{{Japanese Notes|}}}|
</div>
<br />
</div>
{{{Japanese Notes|}}}}}
 
  </div>
 
</div>
{{#ask:
{{#ask:
[[Category:Castle Photos]]
[[Category:Castle Photos]]
[[Castle::{{PAGENAME}}]]
[[Castle::{{PAGENAME}}]]
|?GPSLocation
  |?Short Description
  |?Short Description
  |?{{{fileproperty|}}}
  |?{{{fileproperty|}}}
  |format=googlemaps
|?GPSLocation
  |format=leaflet
|sort=order
  |hidenamespace=on
  |hidenamespace=on
|limit=100
  |template=InfoWindowProfile
  |template=InfoWindowProfile
  |type=terrain
  |layers=Esri.WorldTopoMap
|layer=Esri.WorldTopoMap
|service=leaflet
  |icon=Darkred18.png
  |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>
{{#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>
</div>


     <div class="col-md-4">
     <div class="col-md-4">
{| class="infobox"
<table class="table table-sm castleinfobox">
! colspan="2" class="caption" | Castle Properties
<tr>
|-
<th colspan="2" class="caption">Castle Profile</th>
! English Name
<tr>
| [[English Name::{{{English Name|}}}]]  
<th class="col-md-2">English Name</th>
|-
<td class="col-md-2">[[English Name::{{{English Name|}}}]]</td>
! Japanese Name
</tr>
| [[Japanese Name::{{{Japanese Name|}}}]]  
<tr>
|-
<th>Japanese Name</th>
! Alternate Names
<td>[[Japanese Name::{{{Japanese Name|}}}]]</td>
| {{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}
</tr>
|-
{{#if:{{{Alternate Names|}}}|
! Founder
<tr>
| {{{Founder|}}}
<th>Alternate Names</th>
|-
<td>{{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}</td>
! Year Founded
</tr>
| {{{Year Founded|}}}
}}
|-
<tr>
! Castle Type
<th>Founder</th>
| [[Castle Type::{{{Castle Type|}}}]]  
<td>{{{Founder|}}}</td>
|-
</tr>
! Castle Condition
<tr>
| [[Castle Condition::{{{Castle Condition|}}}]]  
<th>Year Founded</th>
|-
<td>{{{Year Founded|}}}</td>
! Designations
</tr>
| {{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}
<tr>
|-
<th>Castle Type</th>
! Historical Period
<td>[[Castle Type::{{{Castle Type|}}}]]</td>
| [[Historical Period::{{{Historical Period|}}}]]  
</tr>
<tr>
<th>Castle Condition</th>
<td>[[Castle Condition::{{{Castle Condition|}}}]]</td>
</tr>
{{#if:{{{Designations|}}}|
<tr>
<th>Designations</th>
<td>{{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}</td>
</tr>
}}
<tr>
<th>Historical Period</th>
<td>[[Historical Period::{{{Historical Period|}}}]]</td>
</tr>
{{#if:{{{Main Keep Structure|}}}|
{{#if:{{{Main Keep Structure|}}}|
{{!}}-
<tr>
! Main Keep Structure
<th>Main Keep Structure</th>
{{!}} {{{Main Keep Structure|}}}}}  
<td>{{{Main Keep Structure|}}}</td>
</tr>
}}
{{#if:{{{Year Reconstructed|}}}|
{{#if:{{{Year Reconstructed|}}}|
{{!}}-
<tr>
! Year Reconstructed
<th>Year Reconstructed</th>
{{!}} {{{Year Reconstructed|}}}}}  
<td>{{{Year Reconstructed|}}}</td>
</tr>
}}
{{#if:{{{Artifacts|}}}|
{{#if:{{{Artifacts|}}}|
{{!}}-
<tr>
! Artifacts
<th>Artifacts</th>
{{!}} {{{Artifacts|}}}}}  
<td>{{{Artifacts|}}}</td>
|-
</tr>
! Features
}}
| {{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}
<tr>
|-
<th>Features</th>
! colspan="2" class="caption" | Visitor Information
<td>{{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}</td>
|-
</tr>
! Access
<tr>
| [[Access::{{{Access|}}}]]
<th colspan="2" class="caption">Visitor Information</th>
|-
</tr>
! Visitor Information
<tr>
| [[Visitor Information::{{{Visitor Information|}}}]]
<th>Access</th>
|-
<td>[[Access::{{{Access|}}}]]</td>
! Time Required
</tr>
| [[Time Required::{{{Time Required|}}}]]
<tr>
<th>Hours</th>
<td>[[Visitor Information::{{{Visitor Information|}}}]]</td>
</tr>
<tr>
<th>Time Required</th>
<td>[[Time Required::{{{Time Required|}}}]]
</td>
</tr>
{{#if:{{{Website|}}}|
{{#if:{{{Website|}}}|
{{!}}-
<tr>
! Website
<th>URL</th>
{{!}} [[Website::{{{Website|}}}]]}}
<td>[{{{Website|}}} Castle Website]</td>
|-
</tr>
! Location
}}
| [[City::{{{City|}}}]], [[Prefecture::{{{Prefecture|}}}]]  
{{#if: {{{Yamaptrail|}}} |
|-
<tr>
! Coordinates
<th>Hiking Trail</th>
| [[GPSLocation::{{{GPSLocation|}}}]]  
<td>[{{{Yamaptrail}}} View on Yamap]</td>
|-
</tr>
! colspan="2" class="caption" | Admin Visits
}}
|-
{{#if: {{{YoutubeJcastle|}}} |
! Year Visited
<tr>
| {{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}
<th>Jcastle Video</th>
|-
<td>[{{{YoutubeJcastle}}} Jcastle YouTube]</td>
! Visits
</tr>
| [[Visits::{{{Visits|}}}]]
}}
|-
<tr>
! Added
<th>Location</th>
| [[AddedJcastle::{{{AddedJcastle|}}}]]
<td>[[City::{{{City|}}}]], [[Prefecture::{{{Prefecture|}}}]]</td>
|-
</tr>
! colspan="2" | {{#display_map:{{#show: {{FULLPAGENAME}}|?GPSLocation}}|service=googlemaps|type=terrain|zoom=6|height=200|icon=Castlemarker.png}}
<tr>
|}    </div>
<th>Coordinates</th>
</div>
<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>


<div class="row">
    <div class="col-md-12">
== Gallery ==
{{#ask:
{{#ask:
[[Category:Castle Photos]]
[[Category:Samurai Homes]]
[[Castle::{{PAGENAME}}]]
[[Castle::{{PAGENAME}}]]
[[Hide::No]]
  |link=none
|?Short Description
  |format=template
  |captionproperty=Short Description
  |template=Samurai Home List
  |format=gallery
  |introtemplate=Samurai Home List In
  |sort=order
  |outrotemplate=Samurai Home List Out
  |order=ascending
  |overlay=yes
}}
}}


</div>
</div>
<div class="row">
    <div class="col-md-12">


<vote type=1 />
<vote type=1 />
Line 185: Line 293:
     </div>
     </div>
</div>
</div>


__NOTOC__
__NOTOC__

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.