「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 |
---|