User:Westgrass/sandbox
Jump to navigation
Jump to search
考虑做个infobox相关的体系,类似于infocard 初步的API设计:
{{infobox/start|class= |style=}} {{infobox/title|xxxx}} {{infobox/section|}} {{infobox/section|}} {{infobox/section|}} {{infobox/section|}} {{infobox/end}}
优点:
- 灵活
- 执行效率比较高。
缺点:
- 写起来比较多
- 需要注意whitespace带来的问题
{{infobox|class= |style= |title= |section1 = |section2 = |section3 = }
优点:
- 写起来相对简洁。
- 不需要考虑whitespace
缺点:
- 不那么灵活。
- 执行效率低一些,展开占用更大。