Template:Castle: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(277 intermediate revisions by 2 users not shown)
Line 10: Line 10:
|Founder=
|Founder=
|Year Founded=
|Year Founded=
|Castle Type=
|Castle Condition=
|Designations=
|Historical Period=
|Main Keep Structure=
|Year Reconstructed=
|Year Reconstructed=
|Main Keep Structure=
|Artifacts=
|Artifacts=
|City=
|Features=
|Coordinates=
|Access=
|Access=
|Visitor Information=
|Visitor Information=
|Time Required=
|Time Required=
|Website=
|City=
|Prefecture=
|Prefecture=
|Castle Type=
|GPSLocation=
|Castle Condition=
|Historical Period=
|Admin Rating=
|Historical Designations=
|Notes=
|Notes=
|History=
|History=
|Year Visited=
|Japanese Notes=
|Visits=
|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.
{{#cargo_declare:_table=Castles|English_Name=String|Japanese_Name=String|Romaji_Name=String|Alternate_Names=List (,) of Text|Founder=String|Year_Founded=String|Year_Reconstructed=String|Main_Keep_Structure=String|Artifacts=Text|City=String|Coordinates=Coordinates|Access=Text|Visitor_Information=Text|Time_Required=Integer|Website=URL|Prefecture=Page (allowed values=Tokyo,Gunma,Nagano,Saitama,Yamanashi,Ibaraki,Tochigi,Chiba,Gifu)|Castle_Type=Page (allowed values=Mountaintop,Hilltop,Flatland)|Castle_Condition=Page (allowed values=Original main keep,Reconstructed main keep,No main keep but other buildings,No main keep ruins only)|Historical_Period=Page (allowed values=Pre-Edo Period,Edo Period)|Admin_Rating=Float|Historical_Designations=List (,) of Page (allowed values=National Historical Site,Prefectural Historical Site,Local Historical Site,Top 100 Castles,Next 100 Castles,UNESCO World Heritage Site,has Important Cultural Properties,has National Treasures)|Notes=Text|History=Text}}
</noinclude><includeonly>{{#set:Notes={{{Notes|}}}}}{{#set:Contributor={{{Contributor|}}}}}
</noinclude><includeonly>{{#cargo_store:_table=Castles|English_Name={{{English Name|}}}|Japanese_Name={{{Japanese Name|}}}|Romaji_Name={{{Romaji Name|}}}|Alternate_Names={{{Alternate Names|}}}|Founder={{{Founder|}}}|Year_Founded={{{Year Founded|}}}|Year_Reconstructed={{{Year Reconstructed|}}}|Main_Keep_Structure={{{Main Keep Structure|}}}|Artifacts={{{Artifacts|}}}|City={{{City|}}}|Coordinates={{{Coordinates|}}}|Access={{{Access|}}}|Visitor_Information={{{Visitor Information|}}}|Time_Required={{{Time Required|}}}|Website={{{Website|}}}|Prefecture={{{Prefecture|}}}|Castle_Type={{{Castle Type|}}}|Castle_Condition={{{Castle Condition|}}}|Historical_Period={{{Historical Period|}}}|Admin_Rating={{{Admin Rating|}}}|Historical_Designations={{{Historical Designations|}}}|Notes={{{Notes|}}}|History={{{History|}}} }}{| class="infobox"
<p class="extractsummary3">{{#sub:{{{Notes|}}}|0|300}}</p>
! colspan="2" class="caption" | Castle Properties
 
|-
<div class="row">
! English Name
    <div class="col-md-8">
| {{{English Name|}}}
{{highlightimage}}
|-
{{#if:{{{History|}}}|
! Japanese Name
<div class="card">
| {{{Japanese Name|}}}
<h5 class="card-header">History</h5>
<div class="card-body">
{{{History|}}}}}
</div>
</div>
 
 
{{#if:{{{Notes|}}}|
<div class="card">
<h5 class="card-header">Field Notes</h5>
<div class="card-body">
{{{Notes|}}}}}
</div>
</div>
 
 
{{#ask:
[[Category:Castle Photos]]
[[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
}}
 
 
 
<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 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|}}}|
{{#if:{{{Alternate Names|}}}|
{{!}}-
<tr>
! Alternate Names
<th>Alternate Names</th>
{{!}} {{{Alternate Names|}}}}}
<td>{{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}</td>
|-
</tr>
! Founder
}}
| {{{Founder|}}}
<tr>
|-
<th>Founder</th>
! Year Founded
<td>{{{Founder|}}}</td>
| {{{Year Founded|}}}
</tr>
{{#if:{{{Year Reconstructed|}}}|{{!}}-
<tr>
! Year Reconstructed
<th>Year Founded</th>
{{!}} {{{Year Reconstructed|}}}
<td>{{{Year Founded|}}}</td>
}}{{#if:{{{Main Keep Structure|}}}|{{!}}-
</tr>
! Main Keep Structure
<tr>
{{!}} {{{Main Keep Structure|}}}
<th>Castle Type</th>
}}{{#if:{{{Artifacts|}}}|{{!}}-
<td>[[Castle Type::{{{Castle Type|}}}]]</td>
! Artifacts
</tr>
{{!}} {{{Artifacts|}}}}}
<tr>
|-
<th>Castle Condition</th>
! Castle Type
<td>[[Castle Condition::{{{Castle Condition|}}}]]</td>
| [[{{{Castle Type|}}}]]
</tr>
|-
{{#if:{{{Designations|}}}|
! Castle Condition
<tr>
| [[{{{Castle Condition|}}}]]
<th>Designations</th>
|-
<td>{{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}</td>
! Historical Period
</tr>
| [[{{{Historical Period|}}}]]
}}
|-
<tr>
! Historical Designations
<th>Historical Period</th>
| {{#arraymap:{{{Historical Designations|}}}|,|x|[[x]]}}
<td>[[Historical Period::{{{Historical Period|}}}]]</td>
|-
</tr>
! Location
{{#if:{{{Main Keep Structure|}}}|
| {{{City|}}}, [[{{{Prefecture|}}}]]
<tr>
|-
<th>Main Keep Structure</th>
! Prefecture
<td>{{{Main Keep Structure|}}}</td>
| [[{{{Prefecture|}}}]]
</tr>
{{#if:{{{Admin Rating|}}}|
}}
{{!}}-
{{#if:{{{Year Reconstructed|}}}|
! Admin Rating
<tr>
{{!}} {{{Admin Rating|}}}}}
<th>Year Reconstructed</th>
|-
<td>{{{Year Reconstructed|}}}</td>
! colspan="2" class="caption" | Visitor Information
</tr>
|-
}}
! Access
{{#if:{{{Artifacts|}}}|
| {{{Access|}}}
<tr>
|-
<th>Artifacts</th>
! Time Required
<td>{{{Artifacts|}}}</td>
| {{{Time Required|}}} mins
</tr>
|-
}}
! Hours &amp; Admission
<tr>
| {{{Visitor Information|}}}
<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|}}}|
{{#if:{{{Website|}}}|
{{!}}-
<tr>
! Website
<th>URL</th>
{{!}} {{{Website|}}}}}
<td>[{{{Website|}}} Castle Website]</td>
|-
</tr>
! colspan="2" | {{#cargo_display_map:width=100%|height=200px|service=googlemaps|mapTypeId=terrain|zoom=6 | point={{{Coordinates|}}}}}
}}
|}
{{#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>
 
{{#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>
{{{Notes|}}}
</div>


--
<div class="row">
{{{History|}}}
    <div class="col-md-12">


{{infobox}}
<vote type=1 />
<comments />


[[Category:Castles]]   
    </div>
</div>


__NOTOC__
__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.