模板:Nowrap/doc:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
无编辑摘要
 
(未显示同一用户的2个中间版本)
第46行: 第46行:
== Technical details ==
== Technical details ==


The actual code that does the job is this HTML {{tag|span|open|link=yes}} tag that applies a class to the text inside the template:
The actual code that does the job is this HTML <nowiki><span></nowiki> tag that applies a class to the text inside the template:


<syntaxhighlight lang="html">
<syntaxhighlight lang="html">
第52行: 第52行:
</syntaxhighlight>
</syntaxhighlight>


The class <code>nowrap</code> receives the CSS property <syntaxhighlight lang="css" inline>white-space: nowrap;</syntaxhighlight> in {{Blue|MediaWiki:Common.css}}.
The class <code>nowrap</code> receives the CSS property <syntaxhighlight lang="css" inline>white-space: nowrap;</syntaxhighlight> in <nowiki>MediaWiki:Common.css</nowiki>.


== TemplateData ==
== TemplateData ==
第82行: 第82行:
}
}
</templatedata>
</templatedata>
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Formatting templates]]
}}</includeonly>