Template:Property Page: Difference between revisions

From Jcastle.info
(Created page with "{{#ask: Category:Castles [[Castle Type::{{PAGENAME}}]] |?GPSLocation |format=googlemaps |type=terrain |icon=Darkgreen18.png |limit=500 }} {{#ask: Category:Castles...")
 
No edit summary
 
(38 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
This is the "Property Page" template.
It should be called in the following format:
<pre>
{{Property Page
|English Name=
|Japanese Name=
|Property Type=
|Description=
}}
</pre>
Edit the page to see the template text.
</noinclude><includeonly>{{#set:Description={{{Description|}}}}}
<div class="row">
<div class="col-md-12">
== {{{English Name}}} / {{{Japanese Name}}} ==
This is a subtype of [[Property Type::{{{Property Type|}}}]]
{{{Description}}}
</div></div>
{{#ifexpr:
{{#ask:
{{#ask:
[[Category:Castles]]
[[Category:Castles]]
[[Castle Type::{{PAGENAME}}]]
[[{{{Property Type}}}::{{PAGENAME}}]]
|format=count
}} > 0
|
<div class="row">
<div class="col-md-6">
 
<div class="card">
<h5 class="card-header">Castles with {{{English Name}}}</h5>
<div class="card-body">
{{#ask:
[[Category:Castles]]
[[{{{Property Type}}}::{{PAGENAME}}]]
|format=ol
|columns=2
|limit=500
}}
</div>
</div>
</div>
<div class="col-md-6">
{{#ask:
[[Category:Castles]]
[[{{{Property Type}}}::{{PAGENAME}}]]
  |?GPSLocation
  |?GPSLocation
  |format=googlemaps
  |format=map
  |type=terrain
  |layers=Esri.WorldTopoMap
|layer=Esri.WorldTopoMap
  |icon=Darkgreen18.png
  |icon=Darkgreen18.png
  |limit=500
  |limit=500
|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:
{{#ask:
[[Category:Castles]]
[[Category:Samurai Homes]]
[[Castle Type::{{PAGENAME}}]]
[[{{{Property Type}}}::{{PAGENAME}}]]
  |format=ul
  |format=ol
  |columns=3
  |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
  |limit=500
|height=600
}}
}}
</div>
</div>
|  }}
[[Category:Property Pages]]
__NOTITLE__
__NOTOC__
__NOEDITSECTION__
</includeonly>

Latest revision as of 17:17, 10 December 2024

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.