Difference between revisions of "Template:Castle"

From Jcastle.info
(Generated from a page schema)
Line 35: Line 35:
 
|elevChange=
 
|elevChange=
 
|kamon=
 
|kamon=
|KamonFam=
+
|kamonFam=
 +
|adminRating=
 +
|oldID=
 
|AddedJcastle=
 
|AddedJcastle=
 
|Contributor=
 
|Contributor=
Line 42: Line 44:
 
</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:Contributor=User:{{{Contributor|}}}|}}
<div class="row">
+
{| class="wikitable"
    <div class="col-md-8">
+
! English Name
{{highlightimage}}
+
| [[English Name::{{{English Name|}}}]]
{{#if:{{{History|}}}|
+
|-
<div class="card">
+
! Japanese Name
<h5 class="card-header">History</h5>
+
| [[Japanese Name::{{{Japanese Name|}}}]]
<div class="card-body">
+
|-
{{{History|}}}}}
+
! Japanese name in Romaji
</div>
+
| [[Romaji Name::{{{Romaji Name|}}}]]
</div>
+
|-
 +
! Alternate Names
 +
| {{#arraymap:{{{Alternate Names|}}}|,|x|[[Alternate Names::x]]}}
  
 +
|-
 +
! Founder
 +
| {{{Founder|}}}
 +
|-
 +
! Year Founded
 +
| [[Year Founded::{{{Year Founded|}}}]]
 +
|-
 +
! Castle Type
 +
| [[Castle Type::{{{Castle Type|}}}]]
 +
|-
 +
! Castle Condition
 +
| [[Castle Condition::{{{Castle Condition|}}}]]
 +
|-
 +
! Designations
 +
| {{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}}
  
{{#if:{{{Notes|}}}|
+
|-
<div class="card">
+
! Historical Period
<h5 class="card-header">Visit Notes</h5>
+
| [[Historical Period::{{{Historical Period|}}}]]
<div class="card-body">
+
{{#if:{{{Main Keep Structure|}}}|
{{{Notes|}}}}}
+
{{!}}-
{{#if:{{{Japanese Notes|}}}|
+
! Main Keep Structure
<br />
+
{{!}} {{#arraymap:{{{Main Keep Structure|}}}|,|x|[[Main Keep Structure::x]]}}
{{{Japanese 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
 
|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|}}}|
 
{{#if:{{{Year Reconstructed|}}}|
<tr>
+
{{!}}-
<th>Year Reconstructed</th>
+
! Year Reconstructed
<td>{{{Year Reconstructed|}}}</td>
+
{{!}} [[Year Reconstructed::{{{Year Reconstructed|}}}]]
</tr>
 
 
}}
 
}}
 
{{#if:{{{Artifacts|}}}|
 
{{#if:{{{Artifacts|}}}|
<tr>
+
{{!}}-
<th>Artifacts</th>
+
! Artifacts
<td>{{{Artifacts|}}}</td>
+
{{!}} [[Artifacts::{{{Artifacts|}}}]]
</tr>
 
 
}}
 
}}
<tr>
+
|-
<th>Features</th>
+
! Features
<td>{{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}</td>
+
| {{#arraymap:{{{Features|}}}|,|x|[[Features::x]]}}
</tr>
+
 
<tr>
+
|-
<th colspan="2" class="caption">Visitor Information</th>
+
! Access
</tr>
+
| [[Access::{{{Access|}}}]]
<tr>
+
|-
<th>Access</th>
+
! Visitor Information
<td>[[Access::{{{Access|}}}]]</td>
+
| [[Visitor Information::{{{Visitor Information|}}}]]
</tr>
+
|-
<tr>
+
! Time Required
<th>Visitor Information</th>
+
| [[Time Required::{{{Time Required|}}}]]
<td>[[Visitor Information::{{{Visitor Information|}}}]]</td>
+
|-
</tr>
+
! City
<tr>
+
| [[City::{{{City|}}}]]
<th>Time Required</th>
+
|-
<td>[[Time Required::{{{Time Required|}}}]]
+
! Prefecture
</td>
+
| [[Prefecture::{{{Prefecture|}}}]]
</tr>
+
|-
 +
! GPSLocation
 +
| [[GPSLocation::{{{GPSLocation|}}}]]
 +
|-
 +
! Notes
 +
| [[Notes::{{{Notes|}}}]]
 +
|-
 +
! History
 +
| {{{History|}}}
 +
|-
 +
! Year Visited
 +
| {{#arraymap:{{{Year Visited|}}}|,|x|[[Year Visited::x]]}}
 +
 
 +
{{#if:{{{Japanese Notes|}}}|
 +
{{!}}-
 +
! Japanese Notes
 +
{{!}} [[Japanese Notes::{{{Japanese Notes|}}}]]
 +
}}
 +
|-
 +
! Visits
 +
| [[Visits::{{{Visits|}}}]]
 
{{#if:{{{Website|}}}|
 
{{#if:{{{Website|}}}|
<tr>
+
{{!}}-
<th>Website</th>
+
! Website
<td>[[Website::{{{Website|}}}]]</td>
+
{{!}} [[Website::{{{Website|}}}]]
</tr>
 
 
}}
 
}}
<tr>
+
{{{castleElev|}}}
<th>Location</th>
+
{{{ekiLatLng|}}}
<td>[[City::{{{City|}}}]], [[Prefecture::{{{Prefecture|}}}]]</td>
+
{{{ekiElev|}}}
</tr>
+
{{{elevChange|}}}
<tr>
+
{{{kamon|}}}
<th>Coordinates</th>
+
{{{kamonFam|}}}
<td>[[GPSLocation::{{{GPSLocation|}}}]]</td>
+
{{{adminRating|}}}
</tr>
+
{{{oldID|}}}
<tr>
+
|-
<td colspan="2">
+
! Added to Jcastle.info
{{#display_map:{{#show: {{FULLPAGENAME}}|?GPSLocation}}|service=googlemaps|type=terrain|zoom=6|height=200|controls=|icon=Castlemarker.png}}
+
| [[AddedJcastle::{{{AddedJcastle|}}}]]
</td>
+
|-
</tr>
+
! Castle Collection
<tr>
+
| {{#arraymap:{{{Castle Collection|}}}|,|x|[[Castle Collection::x]]}}
<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>
 
</div>
 
 
 
<div class="row">
 
    <div class="col-md-12">
 
 
 
<vote type=1 />
 
<comments />
 
[[Category:Castles]]   
 
    </div>
 
</div>
 
  
__NOTOC__
+
|}
__NOEDITSECTION__
 
  
 +
[[Category:Castles]]
 
</includeonly>
 
</includeonly>

Revision as of 13:47, 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=
|adminRating=
|oldID=
|AddedJcastle=
|Contributor=
|Castle Collection=
}}

Edit the page to see the template text.