Template:Castle: Difference between revisions
From Jcastle.info
(Generated from a page schema) |
No edit summary |
||
Line 35: | Line 35: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly>{{#set:Romaji Name={{{Romaji Name|}}}|Coordinates={{{Coordinates|}}}|has stone walls={{{has stone walls|}}}|has buildings={{{has buildings|}}}|}} | </noinclude><includeonly> | ||
{| class=" | |||
! Name | {{#set:Romaji Name={{{Romaji Name|}}}|Coordinates={{{Coordinates|}}}|has stone walls={{{has stone walls|}}}|has buildings={{{has buildings|}}}|}}{| class="infobox" | ||
! colspan="2" class="caption" | Castle Properties | |||
|- | |||
! English Name | |||
| [[English Name::{{{English Name|}}}]] | | [[English Name::{{{English Name|}}}]] | ||
{{#if:{{{Japanese Name|}}}| | {{#if:{{{Japanese Name|}}}| | ||
{{!}}- | {{!}}- | ||
! Name | ! Japanese Name | ||
{{!}} [[Japanese Name::{{{Japanese Name|}}}]]}} | {{!}} [[Japanese Name::{{{Japanese Name|}}}]]}} | ||
{{#if:{{{Alternate Names|}}}| | {{#if:{{{Alternate Names|}}}| | ||
Line 47: | Line 50: | ||
! Alternate Names | ! Alternate Names | ||
{{!}} [[Alternate Names::{{{Alternate Names|}}}]]}} | {{!}} [[Alternate Names::{{{Alternate Names|}}}]]}} | ||
{{#if:{{{Castle Type|}}}| | |||
{{!}}- | |||
! Castle Type | |||
{{!}} [[Castle Type::{{{Castle Type|}}}]]}} | |||
{{#if:{{{Castle Condition|}}}| | |||
{{!}}- | |||
! Castle Condition | |||
{{!}} [[Castle Condition::{{{Castle Condition|}}}]]}} | |||
{{#if:{{{City|}}}| | |||
{{!}}- | |||
! City | |||
{{!}} [[City::{{{City|}}}]]}} | |||
{{#if:{{{Prefecture|}}}| | |||
{{!}}- | |||
! Prefecture | |||
{{!}} [[Prefecture::{{{Prefecture|}}}]]}} | |||
|- | |||
! colspan="2" class="caption" | Historical Properties | |||
|- | |||
{{#if:{{{Founder|}}}| | {{#if:{{{Founder|}}}| | ||
{{!}}- | {{!}}- | ||
! Founder | ! Founder | ||
{{!}} [[Founder::{{{Founder|}}}]]}} | {{!}} [[Founder::{{{Founder|}}}]]}} | ||
{{#if:{{{Year Founded|}}}| | {{#if:{{{Year Founded|}}}| | ||
{{!}}- | {{!}}- | ||
! Year Founded | ! Year Founded | ||
{{!}} [[Year Founded::{{{Year Founded|}}}]]}} | {{!}} [[Year Founded::{{{Year Founded|}}}]]}}{{#if:{{{Year Reconstructed|}}}| | ||
{{#if:{{{Year Reconstructed|}}}| | |||
{{!}}- | {{!}}- | ||
! Year Reconstructed | ! Year Reconstructed | ||
Line 67: | Line 88: | ||
! Artifacts | ! Artifacts | ||
{{!}} [[Artifacts::{{{Artifacts|}}}]]}} | {{!}} [[Artifacts::{{{Artifacts|}}}]]}} | ||
{{#if:{{{has Important Cultural Properties|}}}| | {{#if:{{{has Important Cultural Properties|}}}| | ||
{{!}}- | {{!}}- | ||
Line 103: | Line 104: | ||
! is a Top 100 Castle | ! is a Top 100 Castle | ||
{{!}} [[is a Top 100 Castle::{{{is a Top 100 Castle|}}}]]}} | {{!}} [[is a Top 100 Castle::{{{is a Top 100 Castle|}}}]]}} | ||
{{#if:{{{Historical Period|}}}| | {{#if:{{{Historical Period|}}}| | ||
{{!}}- | {{!}}- | ||
Line 123: | Line 112: | ||
! Historical Designation | ! Historical Designation | ||
{{!}} [[Historical Designation::{{{Historical Designation|}}}]]}} | {{!}} [[Historical Designation::{{{Historical Designation|}}}]]}} | ||
|- | |||
! Designations | |||
| {{#arraymap:{{{Designations|}}}|,|x|[[Designations::x]]}} | |||
|- | |||
! colspan="2" class="caption" | Visitor Information | |||
|- | |||
{{#if:{{{Access|}}}| | |||
{{!}}- | |||
! Access | |||
{{!}} [[Access::{{{Access|}}}]]}} | |||
{{#if:{{{Visitor Information|}}}| | |||
{{!}}- | |||
! Visitor Information | |||
{{!}} [[Visitor Information::{{{Visitor Information|}}}]]}} | |||
{{#if:{{{Time Required|}}}| | |||
{{!}}- | |||
! Time (mins) | |||
{{!}} [[Time Required::{{{Time Required|}}}]]}} | |||
{{#if:{{{Website|}}}| | |||
{{!}}- | |||
! Website | |||
{{!}} [[Website::{{{Website|}}}]]}} | |||
{{#if:{{{Admin Rating|}}}| | {{#if:{{{Admin Rating|}}}| | ||
{{!}}- | {{!}}- | ||
Line 128: | Line 139: | ||
{{!}} [[Admin Rating::{{{Admin Rating|}}}]]}} | {{!}} [[Admin Rating::{{{Admin Rating|}}}]]}} | ||
|- | |- | ||
|} | |} | ||
{{highlightimage}} | |||
{{#ask: | |||
[[Category:Castle Photos]] | |||
[[Castle::{{PAGENAME}}]] | |||
|format=gallery | |||
|limit=100 | |||
|link=all | |||
|sort=order | |||
|order=ascending | |||
|headers=hide | |||
|searchlabel=... more photos | |||
|class=sortable wikitable smwtable | |||
|id=castlephotos | |||
|intro={{PAGENAME}} Photos | |||
|navigation=nav | |||
|captionproperty = Castle | |||
|overlay=yes | |||
}} | |||
==MAP== | |||
{{#ask: | |||
[[Category:Castle Photos]] | |||
[[Castle::{{PAGENAME}}]] | |||
|?Coordinates | |||
|format=googlemaps | |||
|limit=100 | |||
}} | |||
[[Category:Castles]] | [[Category:Castles]] | ||
</includeonly> | </includeonly> |
Revision as of 22:43, 13 March 2017
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= |Year Reconstructed= |Main Keep Structure= |Artifacts= |City= |Coordinates= |Access= |Visitor Information= |Time Required= |Website= |has stone walls= |has buildings= |has Important Cultural Properties= |has National Treasures= |is a World Heritage Site= |is a Top 100 Castle= |Prefecture= |Castle Type= |Castle Condition= |Historical Period= |Historical Designation= |Admin Rating= |Designations= }}
Edit the page to see the template text.