Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(230 intermediate revisions by 2 users not shown)
Line 30: Line 30:
|Visits=
|Visits=
|Website=
|Website=
|Yamaptrail=
|YoutubeJcastle=
|castleElev=
|ekiLatLng=
|ekiElev=
|elevChange=
|kamon=
|KamonFam=
|AddedJcastle=
|Contributor=
|Castle Collection=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{| class="infobox"
</noinclude><includeonly>{{#set:Notes={{{Notes|}}}}}{{#set:Contributor={{{Contributor|}}}}}
! colspan="2" class="caption" | Castle Properties
<p class="extractsummary3">{{#sub:{{{Notes|}}}|0|300}}</p>
|-
 
! English Name
<div class="row">
| [[English Name::{{{English Name|}}}]]
    <div class="col-md-8">
|-
! Japanese Name
| [[Japanese Name::{{{Japanese Name|}}}]]
|-
! Alternate Names
| {{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}
|-
! Founder
| {{{Founder|}}}
|-
! Year Founded
| {{{Year Founded|}}}
|-
! Castle Type
| [[Castle Type::{{{Castle Type|}}}]]
|-
! Castle Condition
| [[Castle Condition::{{{Castle Condition|}}}]]
|-
! Designations
| {{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}
|-
! Historical Period
| [[Historical Period::{{{Historical Period|}}}]]
{{#if:{{{Main Keep Structure|}}}|
{{!}}-
! Main Keep Structure
{{!}} {{{Main Keep Structure|}}}}}
{{#if:{{{Year Reconstructed|}}}|
{{!}}-
! Year Reconstructed
{{!}} {{{Year Reconstructed|}}}}}
{{#if:{{{Artifacts|}}}|
{{!}}-
! Artifacts
{{!}} {{{Artifacts|}}}}}  
|-
! Features
| {{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}
|-
! colspan="2" class="caption" | Visitor Information
|-
! Access
| [[Access::{{{Access|}}}]]
|-
! Visitor Information
| [[Visitor Information::{{{Visitor Information|}}}]]
|-
! Time Required
| [[Time Required::{{{Time Required|}}}]]
{{#if:{{{Website|}}}|
{{!}}-
! Website
{{!}} [[Website::{{{Website|}}}]]}}
|-
! Location
| [[City::{{{City|}}}]], [[Prefecture::{{{Prefecture|}}}]]
|-
! GPSLocation
| [[GPSLocation::{{{GPSLocation|}}}]]
|-
! colspan="2" class="caption" | Admin Visits
|-
! Year Visited
| {{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}
|-
! Visits
| [[Visits::{{{Visits|}}}]]
|-
! colspan="2" | {{#display_map:{{#show: {{FULLPAGENAME}}|?GPSLocation}}|service=googlemaps|type=terrain|zoom=6|height=250}}
|}
{{highlightimage}}
{{highlightimage}}
{{#if:{{{History|}}}|
<div class="card">
<h5 class="card-header">History</h5>
<div class="card-body">
{{{History|}}}}}
</div>
</div>


{{#if:{{{Notes|}}}|
{{#if:{{{Notes|}}}|
== Notes ==
<div class="card">
[[Notes::{{{Notes|}}}]]}}
<h5 class="card-header">Field Notes</h5>
<div class="card-body">
{{{Notes|}}}}}
</div>
</div>


{{#if:{{{Japanese Notes|}}}|
== Japanese Notes ==
[[Japanese Notes::{{{Japanese Notes|}}}]]}}


{{#if:{{{History|}}}|
{{#ask:
== History ==
[[Category:Castle Photos]]
[[History::{{{History|}}}]]}}
[[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
}}
 


==Gallery==


<div class="card">
<h5 class="card-header">Gallery</h5>
<div class="card-body-new2">
<ul>
{{#ask:
{{#ask:
[[Category:Castle Photos]]
[[Category:Castle Photos]]
[[Castle::{{PAGENAME}}]]
[[Castle::{{PAGENAME}}]]
|format=gallery
[[Hide::No]]
|limit=100
  |?Short Description
  |link=all
  |sort=order
  |sort=order
|link=none
|format=template
|template=gallerythumbs
  |order=ascending
  |order=ascending
|headers=hide
}}</div>
|searchlabel=... more photos
</div>
|class=sortable wikitable smwtable
 
|id=castlephotos
 
|intro={{PAGENAME}} Photos
{{#ask:
|navigation=nav
[[Category:CastleSubpage]]
|captionproperty = Castle
[[Castle::{{PAGENAME}}]]
|overlay=yes
|?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 class="col-md-4">
<table class="table table-sm castleinfobox">
<tr>
<th colspan="2" class="caption">Castle Profile</th>
<tr>
<th class="col-md-2">English Name</th>
<td class="col-md-2">[[English Name::{{{English Name|}}}]]</td>
</tr>
<tr>
<th>Japanese Name</th>
<td>[[Japanese Name::{{{Japanese Name|}}}]]</td>
</tr>
{{#if:{{{Alternate Names|}}}|
<tr>
<th>Alternate Names</th>
<td>{{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}</td>
</tr>
}}
<tr>
<th>Founder</th>
<td>{{{Founder|}}}</td>
</tr>
<tr>
<th>Year Founded</th>
<td>{{{Year Founded|}}}</td>
</tr>
<tr>
<th>Castle Type</th>
<td>[[Castle Type::{{{Castle Type|}}}]]</td>
</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|}}}|
<tr>
<th>Main Keep Structure</th>
<td>{{{Main Keep Structure|}}}</td>
</tr>
}}
{{#if:{{{Year Reconstructed|}}}|
<tr>
<th>Year Reconstructed</th>
<td>{{{Year Reconstructed|}}}</td>
</tr>
}}
{{#if:{{{Artifacts|}}}|
<tr>
<th>Artifacts</th>
<td>{{{Artifacts|}}}</td>
</tr>
}}
<tr>
<th>Features</th>
<td>{{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}</td>
</tr>
<tr>
<th colspan="2" class="caption">Visitor Information</th>
</tr>
<tr>
<th>Access</th>
<td>[[Access::{{{Access|}}}]]</td>
</tr>
<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|}}}|
<tr>
<th>URL</th>
<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>
<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>


==MAP==
{{#ask:
{{#ask:
[[Category:Castle Photos]]
[[Category:Samurai Homes]]
[[Castle::{{PAGENAME}}]]
[[Castle::{{PAGENAME}}]]
  |?Coordinates
  |link=none
|?Short Description
  |format=template
|?NAME
  |template=Samurai Home List
|?PAGENAME
  |introtemplate=Samurai Home List In
|?TITLE
  |outrotemplate=Samurai Home List Out
|?{{PAGENAME}}
  |format=googlemaps
  |limit=100
  |title=title123
  |label=label123
|template=InfoWindowProfile
}}
}}
</div>
</div>
<div class="row">
    <div class="col-md-12">
<vote type=1 />
<comments />
[[Category:Castles]]   
    </div>
</div>
__NOTOC__
__NOTOC__
__NOEDITSECTION__
__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.