“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/动画的说明。