Template:Samurai Homes: Difference between revisions

From Jcastle.info
No edit summary
No edit summary
 
(18 intermediate revisions by the same user not shown)
Line 19: Line 19:
|AddedJcastle=
|AddedJcastle=
|Visits=
|Visits=
|Contributor=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly><div class="row">
</noinclude><includeonly>{{#set:Background={{{Background|}}}}}{{#set:Contributor={{{Contributor|}}}}}
<p class="extractsummary3">{{#sub:{{{Background|}}}|0|300}}</p>
<div class="row">
     <div class="col-md-8">
     <div class="col-md-8">
{{highlightimageSH}}
{{highlightimageSH}}
<div class="panel panel-default">
 
<div class="panel-heading">
<div class="card">
<h3 class="panel-title">Background</h3>
<h5 class="card-header">Background</h5>
    </div>
<div class="card-body">
    <div class="panel-body">
{{{Background|}}}
{{{Background|}}}
  </div>
</div>
</div>
</div>
<div class="panel panel-default">
 
<div class="panel-heading">
 
<h3 class="panel-title">Gallery</h3>
<div class="card">
    </div>
<h5 class="card-header">Gallery</h5>
    <div class="panel-body">
<div class="card-body-new2">
{{#ask:
{{#ask:
[[Category:Castle Photos]]
[[Category:Castle Photos]]
[[Samurai Home::{{PAGENAME}}]]
[[Samurai Home::{{PAGENAME}}]]
  |?Short Description
  |?Short Description
|captionproperty=Short Description
|format=gallery
  |sort=order
  |sort=order
|link=none
|format=template
|template=gallerythumbs
  |order=ascending
  |order=ascending
|overlay=yes
}}
}}
 
</div>
  </div>
</div>
</div>




Line 56: Line 57:


     <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">{{{English Name|}}} Profile</th>
<th colspan="2" class="caption">{{{English Name|}}} 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 75: Line 76:
<td>[[Residence Type::{{{Residence Type|}}}]]</td>
<td>[[Residence Type::{{{Residence Type|}}}]]</td>
</tr>
</tr>
{{#if:{{{Samurai Residence Designations|}}}|
<tr>
<tr>
<th>Designations</th>
<th>Designations</th>
<td>{{#arraymap:{{{Samurai Residence Designations|}}}|,|x|[[Samurai Residence Designations::x]]}}</td>
<td>{{#arraymap:{{{Samurai Residence Designations|}}}|,|x|[[Samurai Residence Designations::x]]}}</td>
</tr>
</tr>
}}
<tr>
<tr>
<th>Features</th>
<th>Features</th>
Line 102: Line 105:
</tr>
</tr>
<tr>
<tr>
<th colspan="2" class="caption">
<th>Coordinates</th>
{{{Castle|}}} and nearby Samurai Homes
<td>[[GPSLocation::{{{GPSLocation|}}}]]</td>
</th>
</tr>
<tr>
<td colspan="2" class="caption">{{{Castle|}}} and nearby Samurai Homes</td>
</tr>
</tr>
<tr>
<tr>
<td colspan="2">
<td colspan="2">
{{#compound_query:
{{#compound_query:
[[Category:Castles]][[English Name::{{{Castle|}}}]];?GPSLocation;icon=Castlemarker.png
[[{{{Castle|}}}]];?GPSLocation;icon=Castlemarker.png
|[[Category:Samurai Homes]][[Castle::{{{Castle|}}}]];?GPSLocation;icon=Bukeyashiki.png;limit=500
|[[Category:Samurai Homes]][[Castle::{{{Castle|}}}]];?GPSLocation;icon=Bukeyashiki.png;limit=500
  |format=googlemaps
  |service=leaflet
  |type=terrain
  |layers=Esri.WorldTopoMap
|layer=Esri.WorldTopoMap
}}
}}
</td>
</td>
</tr>
</tr>
<tr>
<tr>
<th>Coordinates</th>
<td colspan="2" class="caption">Admin</td>
<td>[[GPSLocation::{{{GPSLocation|}}}]]</td>
</tr>
<tr>
<td colspan="2">
{{#display_map:{{#show:{{FULLPAGENAME}}|?GPSLocation}}|service=googlemaps|type=terrain|zoom=6|height=200|icon=Bukeyashiki.png}}
</td>
</tr>
</tr>
<tr>
<tr>
Line 133: Line 133:
<td>[[AddedJcastle::{{{AddedJcastle|}}}]]</td>
<td>[[AddedJcastle::{{{AddedJcastle|}}}]]</td>
</tr>
</tr>
{{#if:{{{Contributor|}}}|
<tr>
<th>Contributor</th>
<td>[[User:{{{Contributor|}}}|{{{Contributor|}}}]]</td>
</tr>
}}
</table>
</table>



Latest revision as of 17:50, 10 December 2024

This is the "Samurai Homes" template. It should be called in the following format:

{{Samurai Homes
|English Name=
|Japanese Name=
|Residence Type=
|Year=
|City=
|Prefecture=
|GPSLocation=
|Background=
|Website=
|Samurai Residence Features=
|Visitor Information=
|Castle=
|Samurai Residence Designations=
|AddedJcastle=
|Visits=
|Contributor=
}}

Edit the page to see the template text.