drpp5680 2015-03-16 06:35 采纳率: 0%
浏览 60
已采纳

这是什么类型的CSS?

I was looking at an old installation of mediawiki which is not rendering css properly the code in the Chrome Dev Tools is showing CSS like this

{{{border-width|1}}}px solid {{{titleborder|{{{border|#ababab}}}}}}

Not able to understand what is the pre-processor used and why its not working. Can someone hint to some direction.

Here in the image the span text is not rendered as a blue bar since The CSS breaks because of the template code. Not sure where to look for this CSS Template issue. Isnt much aware about the Media Wiki Architecture.

enter image description here

  • 写回答

1条回答 默认 最新

  • dpxo13079 2015-03-16 09:48
    关注

    Most likely, this CSS is used inline in a template on your page.

    {{{border-width|1}}} means “use the value of the parameter border-width, or 1 if none is given”. In this case, the parameters to the template are not expanded. There are a number of possible reasons, though until you show us the template code, or give us a link to the page, we can only guess:

    1. Syntax errors in the template (like a missing bracket somewhere, or a stray <nowiki> tag)
    2. A complex template chain passed the expansion depth limit.
    3. Too many templates on one page (surpassing the post-expand include size)

    You can check the category Category:Pages containing omitted template arguments to see if it is any of the latter, though I strongly suspect the first.

    Edit: Also, before doing anything else, you can try to simply purge the page, to re-render it.

    Edit2: Now that we have a screenshot, it looks like some wikicode that an extension could have thrown in there. Start by disabling all extensions, and, if that helps, enable them again one by one.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 公司的电脑,win10系统自带远程协助,访问家里个人电脑,提示出现内部错误,各种常规的设置都已经尝试,感觉公司对此功能进行了限制(我们是集团公司)
  • ¥15 救!ENVI5.6深度学习初始化模型报错怎么办?
  • ¥30 eclipse开启服务后,网页无法打开
  • ¥30 雷达辐射源信号参考模型
  • ¥15 html+css+js如何实现这样子的效果?
  • ¥15 STM32单片机自主设计
  • ¥15 如何在node.js中或者java中给wav格式的音频编码成sil格式呢
  • ¥15 不小心不正规的开发公司导致不给我们y码,
  • ¥15 我的代码无法在vc++中运行呀,错误很多
  • ¥50 求一个win系统下运行的可自动抓取arm64架构deb安装包和其依赖包的软件。