Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(134 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">
<table class="table table-condensed infobox">
<table class="table table-sm castleinfobox">
<tr>
<tr>
<th colspan="2" class="caption">Castle Properties</th>
<th colspan="2" class="caption">Castle Profile</th>
<tr>
<tr>
<th>English Name</th>
<th class="col-md-2">English Name</th>
<td class="col-md-2">[[English Name::{{{English Name|}}}]]</td>
<td class="col-md-2">[[English Name::{{{English Name|}}}]]</td>
</tr>
</tr>
<tr>
<tr>
<th>Japanese Name</th>
<th>Japanese Name</th>
<td class="col-md-2">[[Japanese Name::{{{Japanese Name|}}}]]</td>
<td>[[Japanese Name::{{{Japanese Name|}}}]]</td>
</tr>
</tr>
{{#if:{{{Alternate Names|}}}|
<tr>
<tr>
<th>Alternate Names</th>
<th>Alternate Names</th>
<td>{{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}</td>
<td>{{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}</td>
</tr>
</tr>
}}
<tr>
<tr>
<th>Founder</th>
<th>Founder</th>
Line 113: Line 155:
<td>[[Castle Condition::{{{Castle Condition|}}}]]</td>
<td>[[Castle Condition::{{{Castle Condition|}}}]]</td>
</tr>
</tr>
{{#if:{{{Designations|}}}|
<tr>
<tr>
<th>Designations</th>
<th>Designations</th>
<td>{{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}</td>
<td>{{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}</td>
</tr>
</tr>
}}
<tr>
<tr>
<th>Historical Period</th>
<th>Historical Period</th>
Line 129: Line 173:
{{#if:{{{Year Reconstructed|}}}|
{{#if:{{{Year Reconstructed|}}}|
<tr>
<tr>
<th>Year Reconstructed
<th>Year Reconstructed</th>
</th>
<td>{{{Year Reconstructed|}}}</td>
<td>{{{Year Reconstructed|}}}</td>
</tr>
</tr>
Line 152: Line 195:
</tr>
</tr>
<tr>
<tr>
<th>Visitor Information</th>
<th>Hours</th>
<td>[[Visitor Information::{{{Visitor Information|}}}]]</td>
<td>[[Visitor Information::{{{Visitor Information|}}}]]</td>
</tr>
</tr>
Line 162: Line 205:
{{#if:{{{Website|}}}|
{{#if:{{{Website|}}}|
<tr>
<tr>
<th>Website</th>
<th>URL</th>
<td>[[Website::{{{Website|}}}]]</td>
<td>[{{{Website|}}} Castle Website]</td>
</tr>
}}
{{#if: {{{Yamaptrail|}}} |
<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>
}}
}}
Line 176: Line 231:
<tr>
<tr>
<td colspan="2">
<td colspan="2">
{{#display_map:{{#show: {{FULLPAGENAME}}|?GPSLocation}}|service=googlemaps|type=terrain|zoom=6|height=200|icon=Castlemarker.png}}
{{#display_map:{{#show: {{FULLPAGENAME}}|?GPSLocation}}|service=leaflet|layer=CartoDB.Positron|zoom=6|height=200|controls=|icon=Castlemarker.png}}
</td>
</td>
</tr>
</tr>
{{#if:{{{Castle Collection|}}}|
<tr>
<th>Collections</th>
<td>{{#arraymap:{{{Castle Collection|}}}|,|x|[[Castle Collection::x]]}}</td>
</tr>
}}
<tr>
<tr>
<th colspan="2" class="caption">Admin</th>
<th colspan="2" class="caption">Admin</th>
</tr>
</tr>
<tr>
<tr>
<th>Year Visited</th>
<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>
<td>{{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}</td>
</tr>
</tr>
{{#if:{{{Visits|}}}|
<tr>
<tr>
<th>Visits</th>
<th>Admin Visits</th>
<td>[[Visits::{{{Visits|}}}]]</td>
<td>[[Visits::{{{Visits|}}}]]</td>
</tr>
</tr>
}}
{{#if:{{{FriendsLinks|}}}|
<tr>
<tr>
<th>Added Jcastle</th>
<th colspan="2" class="caption">Friends of JCastle</th>
<td>[[AddedJcastle::{{{AddedJcastle|}}}]]</td>
{{{FriendsLinks|}}}
</tr>
</tr>
}}
</table>
</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>
Line 202: Line 286:
<div class="row">
<div class="row">
     <div class="col-md-12">
     <div class="col-md-12">
== Gallery ==
{{#ask:
[[Category:Castle Photos]]
[[Castle::{{PAGENAME}}]]
[[Hide::No]]
|?Short Description
|captionproperty=Short Description
|format=gallery
|sort=order
|order=ascending
|overlay=yes
}}


<vote type=1 />
<vote type=1 />
Line 222: 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.