“Template:Infobox/header”的版本间的差异
跳到导航
跳到搜索
,以免
内把该参数误以为有非空的值。
第9行: | 第9行: | ||
}} | }} | ||
}} | }} | ||
− | {{infobox/row|其他译名|2={{{其他译名|}}}|labelclass={{{labelclass|}}}|dataclass={{{dataclass|}}} }} | + | {{infobox/row|其他译名|2={{{其他译名|}}}|labelclass={{{labelclass|}}}|dataclass={{{dataclass|}}}}} |
{{#if: {{{封面|}}} | {{#if: {{{封面|}}} | ||
|{{!}}- style="text-align:center;" | |{{!}}- style="text-align:center;" | ||
第41行: | 第41行: | ||
参见{{infobox/动画}}模板的源代码如: | 参见{{infobox/动画}}模板的源代码如: | ||
{{infobox/header | {{infobox/header | ||
− | |宽度= {{{宽度|{{{width|}}} }}} | + | |宽度={{{宽度|{{{width|300px}}}}}} |
− | |标题= {{{标题|{{{title|{{{名字|{{{name|{{PAGENAME}} }}} }}} }}} }}} | + | |标题={{{标题|{{{title|{{{名字|{{{name|{{PAGENAME}}}}}}}}}}}}}} |
− | |日文名= {{{日文名|{{{japname|}}} }}} | + | |日文名={{{日文名|{{{japname|}}}}}} |
− | |英文名= {{{英文名|{{{engname|}}} }}} | + | |英文名={{{英文名|{{{engname|}}}}}} |
− | |其他译名= {{{其他译名|{{{其它译名|{{{othername|}}} }}} }}} | + | |其他译名={{{其他译名|{{{其它译名|{{{othername|}}}}}}}}} |
− | |封面= {{{封面|{{{cover|{{{图片|{{{image|}}} }}} }}} }}} | + | |封面={{{封面|{{{cover|{{{图片|{{{image|}}}}}}}}}}}} |
}} | }} | ||
{{infobox/row|系列定位|{{{系列定位|}}} }} | {{infobox/row|系列定位|{{{系列定位|}}} }} | ||
{{infobox/row|[[正典级别]]|{{{正典级别|}}} }} | {{infobox/row|[[正典级别]]|{{{正典级别|}}} }} | ||
− | {{infobox/row| | + | {{infobox/row| 主要角色|{{{ 主要角色|}}} }} |
− | {{infobox/row| | + | {{infobox/row| 片头曲|{{{ 片头曲|}}} }} |
− | {{infobox/row| | + | {{infobox/row| 片尾曲|{{{ 片尾曲|}}} }} |
− | |||
... | ... | ||
... | ... | ||
第60行: | 第59行: | ||
:将产生如下效果 | :将产生如下效果 | ||
参见[[Template:Infobox/动画]]的说明。 | 参见[[Template:Infobox/动画]]的说明。 | ||
+ | 注意:如果母模板{{infobox/动画}}得到的某个参数有可能未定义或为空字符串的话,比如{{infobox/动画|英文名=}},那将该参数传递给子模板{{infobox/header}}的时候不要额外增加空格,如{{infobox/header|英文名=不带空格的表达式}},以免{{infobox/header}}内把该参数误以为有非空的值。 | ||
</noinclude> | </noinclude> |
2016年10月29日 (六) 00:43的版本
- 来源
- 无
- 用处
- 配合其他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/动画的说明。 注意:如果母模板
Infobox/header | |
---|---|
制作与公开 | |
反响 |
得到的某个参数有可能未定义或为空字符串的话,比如
Infobox/header | |
---|---|
制作与公开 | |
反响 |
,那将该参数传递给子模板
的时候不要额外增加空格,如Infobox/header |
---|
Infobox/header | |
---|---|
不带空格的表达式 |
Infobox/header |
---|