Permanently protected template

「模板:老師資訊框」:修訂間差異

出自竹園Wiki
跳至導覽 跳至搜尋
無編輯摘要
(職銜換行)
 
(未顯示由 3 位使用者於中間所作的 33 次修訂)
行 1: 行 1:
{{Infobox
{| style="border: 1px solid #AAA; background-color: #F9F9F9; color: black; margin-left: 3em; padding: 0.2em; float: right; clear: right; width: 40%;" align="left"
|name = Infobox Teacher
|-
|bodystyle =
! colspan="2" align="center" style="background:#CCCCCC; |臺南一中老師
|title = {{{name|{{PAGENAME}}}}}
|-
|titlestyle =
| colspan="2" style="text-align:center;" | {{#ifexist:{{{照片|}}}|{{{照片|}}}}}
|image = {{#if:{{{image|}}}|{{{image}}}|{{#if:{{Wikidata|property|P33}}|[[File:{{Wikidata|property|P33}}|250px]]}}}}
|-
|imagestyle =
! colspan="2" align="center" style="background:#CCCCCC; | {{PAGENAME}}
|caption = {{#if:{{{imageinfo|}}}|{{{imageinfo}}}|{{Wikidata|qualifier|P33|P34}}}}
|-
|captionstyle =
| '''性別''' || {{#switch:{{{性別}}}|1=男性|2=女性}}
|headerstyle = background:#ccf;
|-
|labelstyle =
| '''科目''' || {{{科目|{{{subject}}}}}}
|datastyle =
|-
|header1 = 臺南一中老師
| '''職銜''' || {{#ifexist:{{{職銜|}}}|{{{職銜|}}}|{{{科目|{{{subject}}}}}}科專任教師}}
|label2 = 性別
|-
|data2 = {{#if:{{{gender|}}}|{{{gender}}}|{{Wikidata|properties|edit@end|P31}}}}
|}
|label3 = 科目
<noinclude>
|data3 = {{#if:{{{subject|}}}|{{{subject}}}|{{Wikidata|properties|edit@end|P21}}}}
將下方的語法一字不漏的複製並貼在老師頁面條目的原始碼<nowiki>{{teacher}}</nowiki>空一行之後。你可以選擇任何你需要的參數,並在等號後面輸入相關的資料;未使用的欄位將不會顯示。注意,若你想要的參數並不在下表,那麼你就無法使用,例如,你無法在表格中增加老師的腰圍,因為腰圍並不在下表當中。
|label4 = 職銜
{| style="background:transparent; width:350px; "
|data4 = {{#if:{{{jobs|}}}|{{{jobs}}}|{{Wikidata|properties|qualifiers|edit@end|sep%s=<br>|P28|P27}}}}
|<pre>
|label5 = 導師
{{Infobox teacher
|data5 = {{#if:{{{class|}}}|{{{class}}}|{{Wikidata|properties|qualifiers|edit@end|sep%s=<br>|P25|P27}}}}
| 照片 =
|label6 = 任職狀況
| 性別 = (1表男性、2表女性)
|data6 = {{#if:{{{live|}}}|{{{live}}}|{{Wikidata|properties|edit@end|P22}}}}
| 科目 =
|label7 = 外號
| 職銜 = (注意!若老師除擔任專任教師外沒有其他任何職銜,則不要使用此參數,系統將自動新增他的專任教師職銜)
|data7 = {{#if:{{{nickname|}}}|{{{nickname}}}|{{Wikidata|properties|edit@end|P30|sep%s=<br>}}}}
}}
|label8 = 興趣
</pre>
|data8 = {{{hobby|}}}
|}
|label9 = 專長
例如,以下是[[江佩娟|江佩娟老師]]的頁面中呈現出來的模板,其原始碼如下(註:空格被省略是允許的,且各參數的輸入順序不影響呈現順序),其顯示效果可以參考她的頁面。
|data9 = {{{skill|}}}
<pre>
|label10 = 學歷
{{Infobox teacher
|data10 = {{#if:{{{edustatus|}}}|{{{edustatus}}}|{{Wikidata|properties|edit@end|sep%s=<br>|P29}}}}
|性別=2
|label11 = 校友
|科目=生物
|data11 = {{{education|}}}
}}
}}<includeonly>
</pre>
[[Category:人物]]<!--
-->{{#if:{{{subject|}}}|[[Category:{{{subject}}}科老師]]|{{#if:{{Wikidata|property|P21}}|[[Category:{{Wikidata|property|P21}}老師]]}}}}<!--
-->{{#if:{{Wikidata|properties|P1}}||[[Category:尚未使用數據的老師頁面]]}}
</includeonly><noinclude>
{{Documentation}}
</noinclude>
</noinclude>

於 2019年10月5日 (六) 17:28 的最新修訂

老師資訊框
臺南一中老師
文檔圖示 模板文檔[檢視] [編輯] [歷史] [清除]

將下方的語法一字不漏的複製並貼在老師頁面條目的原始碼{{teacher}}空一行之後。你可以選擇任何你需要的參數,並在等號後面輸入相關的資料;未使用的欄位將不會顯示。注意,若你想要的參數並不在下表,那麼你就無法使用,例如,你無法在表格中增加老師的腰圍,因為腰圍並不在下表當中。

{{Infobox Teacher
| image = 
| imageinfo = 
| gender = 
| subject = 
| job = 
| live = 
| nickname = 
| hobby = 
| skill = 
| edustatus = 
}}