Difference between revisions of "Template:Property Page"

From Jcastle.info
 
(5 intermediate revisions by the same user not shown)
Line 20: Line 20:
 
</div></div>
 
</div></div>
  
<div class="row">
 
 
{{#ifexpr:  
 
{{#ifexpr:  
 
{{#ask:
 
{{#ask:
Line 28: Line 27:
 
}} > 0
 
}} > 0
 
|
 
|
 +
<div class="row">
 
<div class="col-md-6">
 
<div class="col-md-6">
<div class="panel panel-default">
+
 
<div class="panel-heading"><h3 class="panel-title">
+
<div class="card">
Castles with {{{English Name}}}
+
<h5 class="card-header">Castles with {{{English Name}}}</h5>
</h3></div>
+
<div class="card-body">
<div class="panel-body">
 
 
{{#ask:
 
{{#ask:
 
[[Category:Castles]]
 
[[Category:Castles]]
Line 55: Line 54:
 
  |height=600
 
  |height=600
 
}}
 
}}
 +
</div>
 +
</div>
 +
|  }}
  
 +
{{#ifexpr:
 +
{{#ask:
 +
[[Category:Samurai Homes]]
 +
[[{{{Property Type}}}::{{PAGENAME}}]]
 +
|format=count
 +
}} > 0
 +
|
 +
<div class="row">
 +
<div class="col-md-6">
 +
<div class="card">
 +
<h5 class="card-header">Samurai Residences with {{{English Name}}}</h5>
 +
<div class="card-body">
 +
{{#ask:
 +
[[Category:Samurai Homes]]
 +
[[{{{Property Type}}}::{{PAGENAME}}]]
 +
|format=ol
 +
|columns=2
 +
|limit=500
 +
}}
 +
</div>
 +
</div>
 +
</div>
 +
<div class="col-md-6">
 +
{{#ask:
 +
[[Category:Samurai Homes]]
 +
[[{{{Property Type}}}::{{PAGENAME}}]]
 +
|?GPSLocation
 +
|format=googlemaps
 +
|type=terrain
 +
|icon=Darkgreen18.png
 +
|limit=500
 +
|height=600
 +
}}
 +
</div>
 
</div>
 
</div>
 
|  }}
 
|  }}
</div>
 
  
 
[[Category:Property Pages]]
 
[[Category:Property Pages]]

Latest revision as of 16:46, 29 August 2021

This is the "Property Page" template. It should be called in the following format:

{{Property Page
|English Name=
|Japanese Name=
|Property Type=
|Description=
}}

Edit the page to see the template text.