「Template:Infobox/header」修訂間的差異
跳至導覽
跳至搜尋
行 1: | 行 1: | ||
<includeonly>{| class="infobox" style="width: {{#if:{{{宽度|}}}|{{{宽度}}}|300px}}; " | <includeonly>{| class="infobox" style="width: {{#if:{{{宽度|}}}|{{{宽度}}}|300px}}; " | ||
|- | |- | ||
− | ! class="{{#if:{{{headerclass|}}}|{{{headerclass}}|theme}}" colspan="2" style="text-align:center | + | ! class="{{#if:{{{headerclass|}}}|{{{headerclass}}|theme}}" colspan="2" style="text-align:center; font-size:120%; font-weight:bold;" | {{#if:{{{标题|}}}|{{{标题}}}|{{PAGENAME}}}} |
{{#if: {{{日文名|{{{英文名|}}} }}} | {{#if: {{{日文名|{{{英文名|}}} }}} | ||
− | |{{!}}- class="{{#if:{{{headerclass|}}}|{{{headerclass}}|theme}}" style="text-align:center | + | |{{!}}- |
− | + | {{!}} colspan="2" class="{{#if:{{{headerclass|}}}|{{{headerclass}}|theme}}" style="text-align:center;" {{!}} {{#if: {{{日文名|}}} | |
|{{lang|ja|{{{日文名}}} }} {{#if: {{{英文名|}}} |<br />{{lang|en|<i>{{{英文名}}}</i>}} }} | |{{lang|ja|{{{日文名}}} }} {{#if: {{{英文名|}}} |<br />{{lang|en|<i>{{{英文名}}}</i>}} }} | ||
|{{lang|en|<i>{{{英文名}}}</i>}} | |{{lang|en|<i>{{{英文名}}}</i>}} | ||
行 11: | 行 11: | ||
{{infobox/row|其他译名|2={{{其他译名|}}}|labelclass={{{labelclass|}}}|dataclass={{{dataclass|}}}}} | {{infobox/row|其他译名|2={{{其他译名|}}}|labelclass={{{labelclass|}}}|dataclass={{{dataclass|}}}}} | ||
{{#if: {{{封面|}}} | {{#if: {{{封面|}}} | ||
− | |{{!}}- | + | |{{!}}- |
− | {{!}} colspan="2" style="padding:0.5em;" {{!}} {{#if:{{#pos:{{{封面}}}|File:}} | + | {{!}} colspan="2" style="padding:0.5em; text-align:center;" {{!}} {{#if:{{#pos:{{{封面}}}|File:}} |
|{{{封面}}} | |{{{封面}}} | ||
|{{#if:{{#pos:{{{封面}}}|Image:}} | |{{#if:{{#pos:{{{封面}}}|Image:}} |
於 2016年10月29日 (六) 01:59 的最新修訂
- 來源
- 無
- 用處
- 配合其他infobox/row等模板使用,拓展其他infobox系列模板
- 語法
{{infobox/header |headerclass= 用于{{infobox/角色}}等模板时可选填 |labelclass= 用于{{infobox/角色}}等模板时可选填 |dataclass= 用于{{infobox/角色}}等模板时可选填 |宽度= 默认300px |标题= |日文名= 选填 |英文名= 选填 |其他译名= 选填 |封面= }}
- 範例
参见{{infobox/动画}}模板的源代码如: {{infobox/header |宽度={{{宽度|{{{width|300px}}} }}} |标题={{{标题|{{{title|{{{名字|{{{name|{{PAGENAME}} }}} }}} }}} }}} |日文名={{{日文名|{{{japname|}}} }}} |英文名={{{英文名|{{{engname|}}} }}} |其他译名={{{其他译名|{{{其它译名|{{{othername|}}} }}} }}} |封面={{{封面|{{{cover|{{{图片|{{{image|}}} }}} }}} }}} }} {{infobox/row|系列定位|{{{系列定位|}}} }} {{infobox/row|[[正典级别]]|{{{正典级别|}}} }} {{infobox/row|主要角色|{{{主要角色|}}} }} {{infobox/row|片头曲|{{{片头曲|}}} }} {{infobox/row|片尾曲|{{{片尾曲|}}} }} ... ... |}
- 將產生如下效果
參見Template:Infobox/動畫的說明。