MediaWiki的,每当你嵌入模板到一篇文章,它总是由一个换行符进行(据我所知)。有没有一些方法来防止这种情况,让我可以将彼此相邻的模板,而不在新行第二个是?

有帮助吗?

解决方案

如果您尚未使用 <includeonly>标记,使千万不要把你的模板任何的回报</includeonly>之前

所以

<includeonly>This is a template. </includeonly>

品牌{{模板}} {{模板}}作为输出

This is a template. This is a template

,点击 但是,

<includeonly>This is a template. 

</includeonly>

品牌{{模板}} {{模板}}作为输出

This is a template. 

This is a template

即使单个回报是危险的。如果模板A含有:

<includeonly>{{B}}
</includeonly>

和模板B含有:

<includeonly>Text
</includeonly>

然后当你插入{{A}}到您的网页,既回报随后,给段落中断。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top