Jump to content

Template:Infobox school: Difference between revisions

From TYZX Wiki
添加学校、人物、建筑信息框及本地化模板帮助
 
将可插入模板归入可视化编辑器默认浏览分类;分类仅在noinclude内,不传递给正文
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<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>Address</th><td>{{{address}}}</td></tr>}}{{#if:{{{established|}}}|<tr><th>Established</th><td>{{{established}}}</td></tr>}}{{#if:{{{type|}}}|<tr><th>Type</th><td>{{{type}}}</td></tr>}}{{#if:{{{principal|}}}|<tr><th>Principal</th><td>{{{principal}}}</td></tr>}}{{#if:{{{affiliation|}}}|<tr><th>Affiliation</th><td>{{{affiliation}}}</td></tr>}}{{#if:{{{motto|}}}|<tr><th>Motto</th><td>{{{motto}}}</td></tr>}}{{#if:{{{grades|}}}|<tr><th>Grades</th><td>{{{grades}}}</td></tr>}}{{#if:{{{website|}}}|<tr><th>Website</th><td>{{{website}}}</td></tr>}}{{#if:{{{sources|}}}|<tr><th>Sources</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
{{!}} {{{address}}}
}}
{{#if:{{{established|}}}|
{{!}}-
! Established
{{!}} {{{established}}}
}}
{{#if:{{{type|}}}|
{{!}}-
! Type
{{!}} {{{type}}}
}}
{{#if:{{{principal|}}}|
{{!}}-
! Principal
{{!}} {{{principal}}}
}}
{{#if:{{{affiliation|}}}|
{{!}}-
! Affiliation
{{!}} {{{affiliation}}}
}}
{{#if:{{{motto|}}}|
{{!}}-
! Motto
{{!}} {{{motto}}}
}}
{{#if:{{{grades|}}}|
{{!}}-
! Grades
{{!}} {{{grades}}}
}}
{{#if:{{{website|}}}|
{{!}}-
! Website
{{!}} {{{website}}}
}}
{{#if:{{{sources|}}}|
{{!}}-
! Sources
{{!}} {{{sources}}}
}}
|}
</includeonly><noinclude>
[[Help:Templates|Using templates]]
[[Help:Templates|Using templates]]
<templatedata>
<templatedata>
Line 155: Line 100:
[[ko:Template:학교 정보상자]]
[[ko:Template:학교 정보상자]]
[[lzh:Template:學校資訊框]]
[[lzh:Template:學校資訊框]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 09:10, 16 November 2026

Using templates

Infobox school

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

no description

Contentsuggested
Imageimage

no description

Filesuggested
Captioncaption

no description

Contentoptional
Addressaddress

no description

Contentsuggested
Establishedestablished

no description

Contentsuggested
Typetype

no description

Contentoptional
Principalprincipal

no description

Contentoptional
Affiliationaffiliation

no description

Contentoptional
Mottomotto

no description

Contentoptional
Gradesgrades

no description

Contentoptional
Websitewebsite

no description

URLoptional
Sourcessources

no description

Contentoptional