模板:Nowrap/doc:修订间差异
来自康健生活
无编辑摘要 |
无编辑摘要 |
||
| (未显示同一用户的3个中间版本) | |||
| 第46行: | 第46行: | ||
== Technical details == | == Technical details == | ||
The actual code that does the job is this HTML | 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 | 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 == | ||
<templatedata> | <templatedata> | ||
{ | { | ||
| 第82行: | 第82行: | ||
} | } | ||
</templatedata> | </templatedata> | ||