Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(45 intermediate revisions by the same user not shown)
Line 30: Line 30:
|Visits=
|Visits=
|Website=
|Website=
|Yamaptrail=
|YoutubeJcastle=
|castleElev=
|castleElev=
|ekiLatLng=
|ekiLatLng=
Line 38: Line 40:
|AddedJcastle=
|AddedJcastle=
|Contributor=
|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|}}}}}{{#set:Contributor={{{Contributor|}}}}}
</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"><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">Field Notes</h5>
    <div class="panel-body">
<div class="card-body">
{{{Notes|}}}}}
{{{Notes|}}}}}
{{#if:{{{Japanese Notes|}}}|
</div>
<br />
</div>
{{{Japanese Notes|}}}}}
 
  </div>
</div>


{{#ask:
{{#ask:
Line 82: Line 86:
}}
}}


<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 97:
[[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
|widths=145
}}</div>
}}
</div>


</div>
</div>


{{#ask:
{{#ask:
Line 106: Line 110:
[[Castle::{{PAGENAME}}]]
[[Castle::{{PAGENAME}}]]
|?Subpage Cover
|?Subpage Cover
|link=none
|?Subpage Order
|sort=Subpage Order
|?CastleSubpageNameEnglish
|format=template
|link=none
|template=Subpage List
|sort=Subpage Order
|introtemplate=Subpage List In
|format=template
|outrotemplate=Samurai Home List Out
|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 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 168: 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 191: 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 201: 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 215: Line 231:
<tr>
<tr>
<td colspan="2">
<td colspan="2">
{{#display_map:{{#show: {{FULLPAGENAME}}|?GPSLocation}}|service=googlemaps|type=terrain|zoom=6|height=200|controls=|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>
Line 267: Line 289:
<vote type=1 />
<vote type=1 />
<comments />
<comments />
[[Category:Castles]]     
[[Category:Castles]]     
     </div>
     </div>

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.