跳至內容

「模板:學校資訊框」:各本之異

語出天一維基大典
THDeb​(議|勛)
添加学校、人物、建筑信息框及本地化模板帮助
THDeb​(議|勛)
添加学校、人物、建筑信息框及本地化模板帮助
第一行: 第一行:
<includeonly><templatestyles src="Template:TYZX infobox/styles.css" />
<includeonly><templatestyles src="Template:TYZX infobox/styles.css" /><table class="tyzx-infobox"><tr><th colspan="2" class="tyzx-infobox-title">{{{name|{{PAGENAME}}}}}</th></tr>{{#if:{{{image|}}}|<tr><td colspan="2" class="tyzx-infobox-image">[[File:{{{image}}}|260px|alt={{{caption|}}}]]<br />{{{caption|}}}</td></tr>}}{{#if:{{{address|}}}|<tr><th>址</th><td>{{{address}}}</td></tr>}}{{#if:{{{established|}}}|<tr><th>創立之年</th><td>{{{established}}}</td></tr>}}{{#if:{{{type|}}}|<tr><th>類</th><td>{{{type}}}</td></tr>}}{{#if:{{{principal|}}}|<tr><th>校長</th><td>{{{principal}}}</td></tr>}}{{#if:{{{affiliation|}}}|<tr><th>隸屬</th><td>{{{affiliation}}}</td></tr>}}{{#if:{{{motto|}}}|<tr><th>校訓</th><td>{{{motto}}}</td></tr>}}{{#if:{{{grades|}}}|<tr><th>年級</th><td>{{{grades}}}</td></tr>}}{{#if:{{{website|}}}|<tr><th>網站</th><td>{{{website}}}</td></tr>}}{{#if:{{{sources|}}}|<tr><th>據</th><td>{{{sources}}}</td></tr>}}</table></includeonly><noinclude>
{| class="tyzx-infobox"
|-
! colspan="2" class="tyzx-infobox-title" | {{{name|{{PAGENAME}}}}}{{#if:{{{image|}}}|
{{!}}-
{{!}} colspan="2" class="tyzx-infobox-image" {{!}} [[File:{{{image}}}|260px|alt={{{caption|}}}]]<br />{{{caption|}}}}}{{#if:{{{address|}}}|
{{!}}-
! 址
{{!}} {{{address}}}}}{{#if:{{{established|}}}|
{{!}}-
! 創立之年
{{!}} {{{established}}}}}{{#if:{{{type|}}}|
{{!}}-
! 類
{{!}} {{{type}}}}}{{#if:{{{principal|}}}|
{{!}}-
! 校長
{{!}} {{{principal}}}}}{{#if:{{{affiliation|}}}|
{{!}}-
! 隸屬
{{!}} {{{affiliation}}}}}{{#if:{{{motto|}}}|
{{!}}-
! 校訓
{{!}} {{{motto}}}}}{{#if:{{{grades|}}}|
{{!}}-
! 年級
{{!}} {{{grades}}}}}{{#if:{{{website|}}}|
{{!}}-
! 網站
{{!}} {{{website}}}}}{{#if:{{{sources|}}}|
{{!}}-
! 據
{{!}} {{{sources}}}}}
|}
</includeonly><noinclude>
[[Help:模板|模板之用]]
[[Help:模板|模板之用]]
<templatedata>
<templatedata>

二〇二六年一〇月五日 (一) 二〇時四九分審

模板之用

學校資訊框

模板參數[編輯模板資料]

此模板以參數區塊格式為優先。

參數述類型狀
名name

無述

內容薦
圖image

無述

檔案薦
圖說caption

無述

內容選
址address

無述

內容薦
創立之年established

無述

內容薦
類type

無述

內容選
校長principal

無述

內容選
隸屬affiliation

無述

內容選
校訓motto

無述

內容選
年級grades

無述

內容選
網站website

無述

URL選
據sources

無述

內容選