为什么8到10周容易胎停| 胆囊检查做什么检查| 睾丸炎有什么症状| 直肠炎是什么原因引起的| 农历六月初三是什么星座| 为什么合欢树又叫鬼树| 什么叫同人文| 肌酐测定是查什么| 实名认证是什么意思| 嗓子疼吃什么药见效最快| 水煮鱼用什么鱼做好吃| 高反人群一般是什么人| 手上螺纹多少代表什么| 上天的动物是什么生肖| 鬼打墙什么意思| 子宫发炎是什么原因引起的| 副词是什么| 高亢是什么意思| csf是什么意思| 汇总压缩是什么意思| 脚背浮肿是什么原因引起的| 酩酊是什么意思| 为什么屁股上会长痘| 副区长什么级别| scofield是什么品牌| 2月18是什么星座| 吃了就吐是什么原因| 放疗与化疗区别是什么| 女的右眼跳代表什么| 女人喝咖啡有什么好处| 夏威夷果吃了有什么好处| 八格牙路是什么意思| 三伏天是什么| 阴毛长虱子用什么药| 参谋是什么军衔| 石头五行属什么| 子宫痉挛是什么症状| 厚实是什么意思| 眉毛里有痣代表什么| 椎间盘变性是什么意思| 清明节的习俗是什么| 蜜蜡和琥珀有什么区别| 电销是什么| 中国为什么叫中国| 什么叫早泄| 病毒五项检查的是什么| 陈旧性骨折是什么意思| 碧字五行属什么| 富贵命是什么生肖| 因数是什么意思| ccc是什么意思| 什么是裙带菜| 检查食管做什么检查| 69年属什么生肖| 肺主皮毛是什么意思| 合肥原名叫什么名字| 什么教无类| 破屋是什么意思| 89岁属什么生肖| 夏天喝什么水最解渴| 9月21号是什么星座| 蒙蒙的什么| 21速和24速有什么区别| 灵芝的功效与作用是什么| 哺乳期胃疼可以吃什么药| 阴囊潮湿瘙痒是什么原因| 529是什么意思| 口腔溃疡喝什么饮料| 管教有方是什么意思| 做梦笑醒了有什么征兆| 火同念什么| 女性耻骨疼是什么原因| 山药有什么营养| 菲字五行属什么| 指甲黑是什么原因| 性格好的女生是什么样| 没什么大不了的| 不在服务区是什么意思| 胸腔疼痛是什么原因| dh什么意思| 小确幸是什么意思| 血常规能查出什么病| 如意是什么意思| 什么是文科| 上海有什么好玩的地方| 鹦鹉鱼能和什么鱼混养| 小孩肚脐周围疼是什么原因| 牛肉粉是什么调料| 肾结石是什么原因引起的| 呼吸衰竭是什么意思| 理化检验主要检验什么| 人为什么要拉屎| m k是什么牌子| 中国的四大发明是什么| 西安和咸阳什么关系| 狗狗什么时候打疫苗| 脑震荡吃什么药| 因祸得福是什么意思| 肌层回声欠均匀是什么意思| 什么叫卒中| 什么是青光眼| 补办护照需要什么材料| 儿童内分泌科检查什么| lst是什么意思| 清一色是什么意思| 支气管炎吃什么消炎药| 拖累是什么意思| 属狗什么命| 礼物送什么| 抗缪勒氏管激素是检查什么的| 吃什么对前列腺有好处| 胃出血吃什么食物好养胃| 靴靴是什么意思| 藏红花和什么一起泡水喝效果好| 多种维生素什么时候吃效果最好| 做梦翻车了什么预兆| 什么是渡劫| 玫瑰和月季有什么区别| 雄激素是什么意思| 咳嗽变异性哮喘吃什么药| 男人洁身自好什么意思| 升结肠憩室是什么意思| 黄芪起什么作用| 拔牙后吃什么食物| 下眼睑肿胀是什么原因| 杯弓蛇影告诉我们什么道理| 甲亢和甲状腺有什么区别| 黄皮肤适合什么颜色的衣服| 产假从什么时候开始算| 平步青云什么意思| 什么火热| 小狗什么时候断奶| 幽闭恐惧症是什么| 青色是什么颜色| ana医学上是什么意思| b超和阴超有什么区别| 凹是什么意思| 面瘫什么意思| hill什么意思| 梦见黑棺材是什么征兆| 车厘子什么时候成熟| 腿弯处的筋痛是什么原因| 血沉是什么意思| 皮肤擦伤用什么药最好| 全蛋液是什么意思| 嘴皮发白是什么原因| 什么钓鱼愿者上钩| 阴历是什么| 梦到孩子死了是什么征兆| 一什么而入| 学制是什么| 睡眠不好总做梦是什么原因| 口若悬河什么意思| 尿里有泡沫是什么病| 恨不相逢未嫁时什么意思| 蜜蜡五行属什么| 为什么会咳嗽| 黑乌龙茶属于什么茶| 黑金刚是什么药| 仓鼠吃什么东西| 心率过快吃什么药| 蛇喜欢吃什么| 奥肯能胶囊是什么药| 粽子是什么意思| 苒字五行属什么| 甲亢是什么意思| 长生是什么意思| 血糖高检查什么项目| 妈妈是什么| 元辰是什么意思| 尿酸盐结晶是什么意思| 糖尿病吃什么食物| 检查贫血做什么检查| 小肠镜什么情况下需要做| 右手心痒是什么预兆| 肾功能挂什么科| 化脓性扁桃体炎吃什么药| 合胞病毒用什么药最好| 亲情是什么意思| 做梦梦到蜘蛛是什么意思| 了解是什么意思| 什么是杀青| 逝者已矣生者如斯是什么意思| 腺样体肥大是什么意思| 房颤有什么症状| 感冒流鼻涕咳嗽吃什么药好| 立春是什么时候| 腿抽筋挂什么科| 婴幼儿湿疹用什么药膏最有效| 热忱是什么意思| 虾不能和什么食物一起吃| ca19-9偏高是什么意思| 黄瓜和什么一起炒好吃| 紫癜挂什么科| 弥可保是什么药| 用盐洗脸有什么好处| 六根清净是什么意思| 小肚子疼挂什么科| 早上八点多是什么时辰| 吃什么子宫肌瘤会消除| 乳腺小叶增生是什么意思| 尿葡萄糖阴性什么意思| 梦到和妈妈吵架是什么意思| 东北话篮子是什么意思| 有氧运动和无氧运动有什么区别| 走马观花的走什么意思| 想吐吃什么药可以缓解| 唐筛临界风险是什么意思| 刷牙时牙酸是什么原因| 千山暮雪结局是什么| 才子是什么生肖| 伊丽莎白雅顿什么档次| 腹泻吃什么水果| 咳嗽流鼻涕吃什么药| 考教师编制需要什么条件| 血包是什么意思| 男人尿多是什么原因| 酒店五行属什么| 毅力是什么意思| 睾丸皮痒用什么药| 外婆家是什么菜系| 专员是什么级别| 无花果和什么煲汤好| 左侧腰疼是什么原因| 什么情况属于诈骗| 浙江大学什么专业最好| 经血发黑是什么原因| 试管进周期是什么意思| 印堂发黑是什么征兆| 跳闸是什么原因| 鼻子痒用什么药| 甲亢平时要注意什么| 心肾两虚吃什么中成药| 喝白醋有什么好处| 接触性皮炎用什么药膏| 什么水果含糖量高| 左侧淋巴结肿大是什么原因| 孕期心情不好对胎儿有什么影响| 双肺纤维灶是什么意思| 附骨疽是什么病| 七月22号是什么星座| 为什么气血不足| 黄金是什么| 有什么症状是肯定没怀孕| 女命七杀代表什么| 怀孕一个月吃什么对宝宝发育好| 手机充电口叫什么| 圣女果是什么| 男人艾灸什么地方壮阳| 梦见吃花生是什么意思| 血压为什么会高| 肺寒吃什么药| 上升水瓶座为什么可怕| 点痣去医院挂什么科| 苹果什么时候成熟| 鼻子旁边的痣代表什么| 俄罗斯信奉的是什么教| 孕期心情不好对胎儿有什么影响| 为什么叫韩国人棒子| 左侧卵巢囊性结构什么意思| 炎性改变是什么意思| 搬家下雨是什么兆头| 复方氨酚烷胺胶囊是什么药| 透明的剑是什么剑| 百度Jump to content

“无现金社会”网络安全须给力

From Wikipedia, the free encyclopedia
百度 改革必然触动一些人的利益,不是敲锣打鼓就能实现的。

This page explains different methods for creating, controlling and preventing line breaks and word wraps in Wikipedia articles and pages.

When a paragraph or line of text is too long to fit on one line, web browsers, like many other programs, automatically wrap the text to the next line. Web browsers usually wrap the line where there are natural breaks such as spaces, hyphens, etc. in the text.

Causing line breaks

[edit]

Newlines

[edit]

There are several ways to force line breaks and paragraph breaks in the text. The simplest method is by inserting newlines; for example:

Markup Renders as
A single newline in the markup 
does not cause a visible line break.

A single newline in the markup does not cause a visible line break.

Two newlines in the markup

causes a paragraph break.

Two newlines in the markup

causes a paragraph break.

Three newlines in the markup


causes an extra-wide paragraph break. This should normally be avoided.

Three newlines in the markup


causes an extra-wide paragraph break. This should normally be avoided.

<br>

[edit]

<br>, <br >, <br/>, <br />

The MediaWiki software uses any of them for a single forced line break. All of them are converted to <br /> in the HTML that browsers read.

MediaWiki also converts </br> to <br />, but this form is invalid. Please correct these tags.

For content that is semantically a list, such as in infoboxes, actual list markup is preferred. See § Lists below.

Markup Renders as
And this line of text<br>will break in the middle.

And this line of text
will break in the middle.

The example below includes four forms that are rendered as line breaks and two that display as plain text.

Wiki source

One <br>Two <br >Three <br/>Four <br />Five < br>Six </ br>Seven

Rendered result

One
Two
Three
Four
Five < br>Six </ br>Seven

<poem>

[edit]

The <poem> extension adds HTML-like tags to maintain newlines and spaces. This is useful for longer blocks of text such as poems, lyrics, mottoes, oaths and the like. These tags may be used inside other tags such as <blockquote>. For example:

Markup Renders as
<poem>
In Xanadu did [[Kubla Khan]]
  A stately pleasure-dome decree:
Where Alph, the sacred river, ran
  Through caverns measureless to man
Down to a sunless sea.

So twice five miles of fertile ground
  With walls and towers were girdled round:
And there were gardens bright with sinuous rills,
  Where blossomed many an incense-bearing tree;
And here were forests ancient as the hills,
  Enfolding sunny spots of greenery.
</poem>

In Xanadu did Kubla Khan
  A stately pleasure-dome decree:
Where Alph, the sacred river, ran
  Through caverns measureless to man
Down to a sunless sea.

So twice five miles of fertile ground
  With walls and towers were girdled round:
And there were gardens bright with sinuous rills,
  Where blossomed many an incense-bearing tree;
And here were forests ancient as the hills,
  Enfolding sunny spots of greenery.

<pre>

[edit]

<pre>...</pre> and its alternatives are typically used to display code; their contents are rendered in monospace with a frame and different background colour. Both markup and newlines within <pre>...</pre> are reproduced verbatim. However, the first newline after <pre> and last newline before </pre> are ignored, allowing the tags to be placed on their own lines without extra empty lines appearing on the page.

Markup
<pre>
{{2x|foo}}<br />bar
[[wiki]]
</pre>
Renders as
{{2x|foo}}<br />bar
[[wiki]]

To evaluate markup while still preserving newlines, the alternatives <pre<includeonly></includeonly>></pre> and {{Pre}} can be used.

Markup
{{Pre |
{{2x|foo}}<br />bar
[[wiki]]
}}
Renders as
foofoo
bar wiki

<nowiki>

[edit]

The effect of the tag <nowiki>...</nowiki> on line breaks is that single and double line breaks are ignored, and you also cannot add a line break with <br />:

Markup
<nowiki>
Single line breaks,
and double line breaks as well,

are ignored,
and the tag <br />
is just displayed as is.
</nowiki>
Renders as
Single line breaks, and double line breaks as well, are ignored, and the tag <br /> is just displayed as is.

There are several ways to enable line breaks in text that uses <nowiki>...</nowiki>:

Solution 1. Use <nowiki>...</nowiki> for each line separately, with <br /> or double newline between lines.

Markup
<nowiki>Around the entire line,</nowiki> <br />
or only around text that must be escaped: <nowiki>{{2x|bar}}</nowiki>.

<nowiki> Extra  spaces   are still collapsed. </nowiki>
Renders as
Around the entire line,

or only around text that must be escaped: {{2x|bar}}.

Extra spaces are still collapsed.

Solution 2: Use <poem>...</poem>.

Markup
<poem><nowiki>Twas bryllyg, and ''y<sup>e</sup>'' slythy toves
  Did gyre and gymble in ''y<sup>e</sup>'' wabe:
All mimsy were ''y<sup>e</sup>'' borogoves,
  And ''y<sup>e</sup>'' mome raths outgrabe.</nowiki></poem>
Renders as

Twas bryllyg, and ''y<sup>e</sup>'' slythy toves
  Did gyre and gymble in ''y<sup>e</sup>'' wabe:
All mimsy were ''y<sup>e</sup>'' borogoves,
  And ''y<sup>e</sup>'' mome raths outgrabe.

When <poem>...</poem> is used with <nowiki>...</nowiki>, the contents must begin on the same line as the tags, because a leading newline will appear in the output. However, the last newline is ignored, so the closing tags may be on their own line.

Markup
<poem><nowiki>
Extra line above
</nowiki></poem>
Renders as


Extra line above

Solution 3: Consider using <pre> instead of <nowiki>...</nowiki>.

Lists

[edit]

Numbered and bulleted lists are created using standard wiki markup. In cases where a plain list without number or bullet is desired, such as in an infobox, many editors will simply create a list using breaks. This method does not apply the semantics of a list, and for those using screen readers it will not sound like a list. For these cases, {{plainlist}} and {{unbulleted list}} both use list markup without numbers or bullets:

Markup Renders as
{{plainlist|
* cat
* dog
* horse
* cow
* sheep
* pig
}}
  • cat
  • dog
  • horse
  • cow
  • sheep
  • pig

Formulas

[edit]

To display formulas with <math> on their own line, Wikipedia:Manual of Style/Mathematics#Using LaTeX markup recommends <math display=block>.

Preventing and controlling word wraps

[edit]

There are several ways to prevent word wraps (line wraps) from occurring in unwanted places. This is an overview of when to use which method.

Non-breaking space

[edit]

The HTML entity &nbsp; is a non-breaking, or hard, space. It renders like a normal space " ", but prevents a line wrap from occurring, like this:

Markup Renders as
Lots of text 10&nbsp;kg more text.

It may render like this:

Lots of text 10 kg
more text.

Or it may render like this:

Lots of text
10 kg more text.

But it will not render like this:

Lots of text 10
kg more text.

The non-breaking space works within links exactly like a regular space. Thus you can link to [[J.&nbsp;R.&nbsp;R. Tolkien]] directly and it will render as J. R. R. Tolkien. The initials will not be separated across a line break.

However, &nbsp; renders the source text harder to read and edit. Avoid using it unless it is really necessary to avoid a line break.

Non-breaking hyphen

[edit]

Browsers may break words at hyphens. A non-breaking hyphen &#8209; may be used to prevent this occurring, as in:

As seen on page C&#8209;2 of the newspaper.

This code generates "page C?2" just like the plain code "page C-2", but prevents a line break at the hyphen.

However, like &nbsp;, the use of &#8209; instead of "-" renders the source text harder to read and edit. Don't use it unless it is really necessary to avoid a line break.

Inline blocks

[edit]

The templates {{Inline block}} and {{Avoid wrap}} avoid breaks, but allow them if there is not enough space. {{awrap}} is a shorthand of the latter.

Markup Renders as
{{inline block|{{color|blue|Lorem ipsum
 dolor sit amet, consectetur adipiscing
 elit, sed do eiusmod tempor incididunt.}}}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.

{{inline block|{{color|green|Sed ut perspiciatis
 unde omnis iste natus error sit
 voluptatem accusantium.}}}}

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium.

{{avoid wrap|{{color|blue|Lorem ipsum
 dolor sit amet, consectetur adipiscing
 elit, sed do eiusmod tempor incididunt.}}}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.

{{awrap|{{color|green|Sed ut perspiciatis
 unde omnis iste natus error sit
 voluptatem accusantium.}}}}

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium.

Both put the content in <span style="display:inline-block;">. The latter also adds the CSS class "avoidwrap".

{{nowrap}}

[edit]

The {{nowrap}} template is less flexible and will prevent breaks even when the line is too long for the window, forcing the user to scroll:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt. Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium.

It is good for short text sections like "10 kg (22 lb)", which should always stay together.
This could also be achieved with the non-breaking space: Lots of text 10&nbsp;kg&nbsp;(22&nbsp;lb) more text.
But this makes the source text hard to read. The template is recommended instead: Lots of text {{nowrap|10 kg (22 lb)}} more text.

It may render like this or like this or like this. But not like this.

Lots of text 10 kg (22 lb) more text.

Lots of text 10 kg (22 lb)
more text.

Lots of text
10 kg (22 lb) more text.

Lots of text 10 kg (22
lb) more text.

(For the specific case of unit conversions, see {{convert}}.)

In some cases {{nowrap}} doesn't work so well. For instance, when you want to prevent wraps in longer or more complex text, then it might be hard to see where the {{nowrap}} ends. Additionally, the MediaWiki template mechanisms interpret characters such as equal signs "=" and pipes "|" in template parameters as special characters, and thus they cause problems. In these cases, it is instead recommended to use {{nowrap begin}} + {{nowrap end}}, like this:

{{nowrap begin}}2 + 2 = 4{{nowrap end}} and
{{nowrap begin}}|2| < 3{{nowrap end}}

It may render like this:

2 + 2 = 4 and
|2| < 3

But it will not render like this:

2 + 2 = 4 and |2|
< 3

<wbr> and soft hyphens

[edit]

To insert a word-break opportunity, use <wbr>.

It specifies where it would be OK to add a line-break where a word is too long, or it is perceived that the browser will break a line at the wrong place. Whether the line actually breaks is then left up to the browser. The break will look like a space - see soft hyphen below when it would be more appropriate to break the word or line using a hyphen.

Markup
Now is the time to become a power editor, by learning Hyper<wbr>Text Markup Language...
Renders as
It may render like this:
Now is the time to become a power editor, by learning HyperText Markup Language...

Or it may render like this (in a narrow browser window):

Now is the time to become a power editor, by learning Hyper
Text Markup Language ...

Note that <wbr> will not work inside {{nowrap}}.

In many cases breaking up a word with a space would be inappropriate. Soft hyphens also creates word-break opportunities, but will add a hyphen rather than a space. In other words, a soft hyphen is a hyphen inserted into a word not otherwise hyphenated, to be displayed or typeset only if it falls at the end of a line of text.

The code &shy; is employed in the same manner as <wbr>. For example:

Markup Renders as
This long German word Datenschutz&shy;erkl?rung breaks between its constituent parts "Datenschutz" and "erkl?rung".

This long German word Datenschutz-erkl?rung breaks between its constituent parts "Datenschutz" and "erkl?rung".

Use of soft hyphens should be limited to special cases, usually involving very long words or narrow spaces (such as captions in infoboxes or other tight page layouts, or column labels in narrow tables). Widespread use of soft hyphens is strongly discouraged, because it makes the wikitext very difficult to read and to edit. For example:

Markup Renders as
This Wi&shy;ki&shy;source ex&shy;am&shy;ple is dif&shy;fi&shy;cult to un&shy;der&shy;stand

This Wikisource example is difficult to understand

Consider instead using the {{shy}} template for such complex cases:

Markup Renders as
{{shy|This al|ter|na|tive syn|tax im|proves read|a|bil|ity}}

This alternative syntax improves readability

Wrap between (linked) list items

[edit]

In lists of links such as inside infoboxes and navboxes, use a horizontal list (perhaps via the template {{flatlist}}) to format lists.

For occasional cases where you need to delineate two pieces of text outside of a list, you can use the templates {{·}} or {{?}} which contain a &nbsp; before the dot, thus handling some of the wrapping problems.

See also

[edit]
老年人腿脚无力是什么原因 玄关什么意思 口腔义齿是什么 长疖子是什么原因 树脂是什么材料
糊精是什么东西 手术刀口吃什么愈合快 edenbo是什么牌子 同房有什么姿势 开水烫伤用什么方法好的最快
痣长在什么地方不好 曲安奈德是什么药 氨咖黄敏胶囊是治什么的 小便带血是什么原因女性 凌空什么
亮晶晶的什么填空 尿道感染吃什么药好得快 七夕节吃什么 假小子是什么意思 双侧乳腺小叶增生是什么意思
耳后长痣代表什么意思wuhaiwuya.com 总胆固醇高有什么危害aiwuzhiyu.com 贫血喝什么茶hcv8jop1ns6r.cn 一个木一个西读什么hcv9jop3ns4r.cn 心管是什么部位hcv8jop7ns0r.cn
新生儿用什么奶粉好hcv8jop4ns1r.cn 烤肉用什么油hcv8jop6ns0r.cn 什么是稽留流产hcv7jop9ns6r.cn 尧五行属什么hcv7jop9ns1r.cn 傍大款是什么意思hcv8jop0ns9r.cn
过期食品属于什么垃圾hcv8jop6ns4r.cn 今年65岁属什么生肖hcv7jop7ns0r.cn 右肋骨疼是什么原因hcv9jop6ns9r.cn 视网膜脱落是什么原因引起的hcv7jop9ns4r.cn 新生儿湿疹抹什么药膏hcv8jop6ns9r.cn
为所当为什么意思hcv8jop2ns1r.cn 考验是什么意思wzqsfys.com 梦见做饭是什么意思hcv8jop3ns7r.cn 上午9点是什么时辰aiwuzhiyu.com 梦到门坏了是什么意思hcv8jop9ns0r.cn
百度