Difference between revisions of "Template:Castle"

From Jcastle.info
(34 intermediate revisions by the same user not shown)
Line 38: Line 38:
 
|AddedJcastle=
 
|AddedJcastle=
 
|Contributor=
 
|Contributor=
 +
|Castle Collection=
 
}}
 
}}
 
</pre>
 
</pre>
Line 46: Line 47:
 
{{highlightimage}}
 
{{highlightimage}}
 
{{#if:{{{History|}}}|
 
{{#if:{{{History|}}}|
<div class="panel panel-default">
+
<div class="card">
<div class="panel-heading"><h3 class="panel-title">History</h3></div>
+
<h5 class="card-header">History</h5>
    <div class="panel-body">
+
<div class="card-body">
 
{{{History|}}}}}
 
{{{History|}}}}}
  </div>
+
</div>
</div>
+
</div>
 +
 
  
 
{{#if:{{{Notes|}}}|
 
{{#if:{{{Notes|}}}|
<div class="panel panel-default">
+
<div class="card">
<div class="panel-heading"><h3 class="panel-title">Visit Notes</h3></div>
+
<h5 class="card-header">Visit Notes</h5>
    <div class="panel-body">
+
<div class="card-body">
 
{{{Notes|}}}}}
 
{{{Notes|}}}}}
 
{{#if:{{{Japanese Notes|}}}|
 
{{#if:{{{Japanese Notes|}}}|
 
<br />
 
<br />
 
{{{Japanese Notes|}}}}}
 
{{{Japanese Notes|}}}}}
  </div>
+
</div>
</div>
+
</div>
 +
 
  
 
{{#ask:
 
{{#ask:
Line 71: Line 74:
 
  |?GPSLocation
 
  |?GPSLocation
 
  |format=leaflet
 
  |format=leaflet
 +
|sort=order
 
  |hidenamespace=on
 
  |hidenamespace=on
 
  |template=InfoWindowProfile
 
  |template=InfoWindowProfile
Line 77: Line 81:
 
  |service=leaflet
 
  |service=leaflet
 
  |icon=Darkred18.png
 
  |icon=Darkred18.png
|maxzoom=17
 
 
  |showtitle=no
 
  |showtitle=no
  |limit=300
+
  |limit=500
 
}}
 
}}
  
<div class="panel panel-default">
 
  <div class="panel-heading"><h3 class="panel-title">Gallery</h3></div>
 
    <div class="panel-body">
 
  
 +
 +
<div class="card">
 +
<h5 class="card-header">Gallery</h5>
 +
<div class="card-body-new2">
 +
<ul>
 
{{#ask:
 
{{#ask:
 
[[Category:Castle Photos]]
 
[[Category:Castle Photos]]
Line 91: Line 96:
 
[[Hide::No]]
 
[[Hide::No]]
 
  |?Short Description
 
  |?Short Description
|autocaptions=no
 
|captionproperty=Short Description
 
|format=gallery
 
 
  |sort=order
 
  |sort=order
 +
|link=none
 +
|format=template
 +
|template=gallerythumbs
 
  |order=ascending
 
  |order=ascending
}}
+
}}</div>
 +
</div>
  
</div>
 
</div>
 
  
 
{{#ask:
 
{{#ask:
Line 106: Line 110:
 
|?Subpage Cover
 
|?Subpage Cover
 
  |link=none
 
  |link=none
 +
|sort=Subpage Order
 
  |format=template
 
  |format=template
 
  |template=Subpage List
 
  |template=Subpage List
Line 111: Line 116:
 
  |outrotemplate=Samurai Home List Out
 
  |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 Profile</th>
 
<th colspan="2" class="caption">Castle Profile</th>
 
<tr>
 
<tr>
<td class="col-md-2">'''English Name'''</td>
+
<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>
Line 148: Line 152:
 
<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 164: Line 170:
 
{{#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 214: Line 219:
 
</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>{{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}</td>
+
<td>[[AddedJcastle::{{{AddedJcastle|}}}]]</td>
 
</tr>
 
</tr>
 
{{#if:{{{Contributor|}}}|
 
{{#if:{{{Contributor|}}}|
Line 227: Line 238:
 
</tr>
 
</tr>
 
}}
 
}}
 +
<tr>
 +
<th>Admin Year Visited</th>
 +
<td>{{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}</td>
 +
</tr>
 
{{#if:{{{Visits|}}}|
 
{{#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 to Jcastle</th>
+
<th colspan="2" class="caption">Friends of JCastle</th>
<td>[[AddedJcastle::{{{AddedJcastle|}}}]]</td>
+
{{{FriendsLinks|}}}
 
</tr>
 
</tr>
 +
}}
 
</table>
 
</table>
  
Line 257: Line 274:
 
<vote type=1 />
 
<vote type=1 />
 
<comments />
 
<comments />
 
 
[[Category:Castles]]     
 
[[Category:Castles]]     
 
     </div>
 
     </div>

Revision as of 13:54, 13 August 2022

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

Edit the page to see the template text.