拔完智齿后需要注意什么| 钾低是什么原因引起的| 剪发虫是什么| 玉仁玫白膏有什么功效| 妥投是什么意思| 福报是什么意思| 山本耀司的品牌叫什么| 猪和什么属相不合| 白细胞高有什么危害| 1月26是什么星座| hcg值高说明什么| 复方板蓝根和板蓝根有什么区别| 来例假头晕是什么原因| 卒中中心是干什么的| 什么水不能喝| 锦衣夜行什么意思| 手机卡顿是什么原因| 体虚是什么原因引起的| 什么老什么老| 52岁属什么| 什么是横纹肌溶解症| 血脂高吃什么好| 白起为什么被赐死| 肠息肉是什么原因引起的| 松子吃多了有什么害处| 玻璃的原材料是什么| 盗汗和自汗有什么区别| 白加黑是什么颜色| tomboy是什么意思| 老公护着婆婆说明什么| 斑鸠喜欢吃什么食物| 补气血喝什么| 辟邪剑法为什么要自宫| 水生什么五行| 王是什么生肖| 散光跟近视有什么区别| 吃完饭就想睡觉是什么原因| 专业术语是什么意思| gi值是什么意思| x线检查是什么| 右眼睛跳是什么预兆| 什么是余额宝| 何必是什么意思| 观音菩萨姓什么| 切片是什么| 肝囊肿是什么原因引起的| rhino是什么意思| 间断性是什么意思| 前列腺炎要吃什么药| 50年是什么婚| 越睡越困是什么原因| 血压高要吃什么蔬菜能降血压| 尿激酶的作用及功效是什么| 延年是什么意思| 下身痒是什么原因| 核磁共振和ct有什么区别| 足月是什么意思| 十一月二十四是什么星座| 血清载脂蛋白b偏高是什么意思| 水泡型脚气用什么药好| 遍体鳞伤是什么意思| 吃饭的时候恶心想吐是什么原因| 烹饪是什么意思| 李商隐被称为什么| 头晕想睡觉是什么原因| 老人喝什么牛奶比较好| 3月18号是什么星座| 增强ct是什么| 下体瘙痒用什么药| 八面玲珑是什么意思| 归元寺求什么最灵验| 过期的洗面奶可以用来做什么| 项羽姓什么| 女人肚子大是什么原因| 吃什么减肥瘦肚子| 果可以加什么偏旁| 24节气分别是什么| 包公是什么生肖| 梦见到处都是蛇预示着什么| 姓毛的男孩取什么名字好| 皮肤擦伤用什么药最好| 胃溃疡a2期是什么意思| 梦见死人复活什么预兆| 入幕之宾是什么意思| 褥疮是什么| 嘴角烂了擦什么药| 合胞病毒用什么药最好| 哥们是什么意思| 食道反流吃什么药| 猫睡在枕头旁说明什么| 便溏什么意思| 董卓字什么| 月经期血块多是什么原因| 伤官见官什么意思| b型和o型生的孩子是什么血型| 空调不出水是什么原因| 259是什么意思| cts是什么意思| efw是胎儿的什么意思| 什么花不用浇水| 膀胱在什么位置图片| 过敏性紫癜用什么药| 甲状腺在什么位置| 宫颈柱状上皮外移是什么意思| 知我者非你也什么意思| 89年属什么的| 上海话小赤佬是什么意思| 哺乳期可以喝什么茶| 最好的油是什么油| 善莫大焉什么意思| 龙生九子下一句是什么| 君无戏言什么意思| 大姨妈不能吃什么| 乳糖酶是什么东西| 肠系膜多发淋巴结是什么意思| 乳腺看什么科| 镜花水月是什么意思| 糖醋里脊是什么菜系| 乳癖是什么病| a4纸能折什么| dsa检查是什么意思| 赭是什么颜色| 低钾是什么原因引起的| 眼睛疲劳用什么眼药水| 药流后吃什么消炎药| 梦见动物是什么意思| 狐臭是什么原因| 10月12是什么星座| 脉压差小是什么原因| 七月是什么季节| 赖是什么意思| 杭州都有什么区| 糙米是什么米| 湖北属于什么地区| 略施小计是什么动物| 细菌属于什么生物| mk包包属于什么档次| 什么叫石女| 碳素墨水用什么能洗掉| 小限是什么意思| 人设是什么意思| 玉米须泡水喝有什么功效| 成因是什么意思| 827是什么意思| 吃洋葱对身体有什么好处| pvd是什么意思| 眼睛老是流眼泪是什么原因| 工会主席是什么级别| 右眼一直跳是什么预兆| 边界是什么意思| 梦见诈尸预示什么| 干眼症吃什么药| 摆地摊卖什么最赚钱而且很受欢迎| 足字旁的字跟什么有关| vdr是什么意思| 客服是什么意思| 总胆红素偏高说明什么| 心率低有什么危害| 肺部增殖灶是什么意思| 大豆油是什么豆做的| 为什么会胃酸| 口干舌燥吃什么药| 前戏是什么意思| 蜻蜓是什么生肖| 紫色睡莲的花语是什么| 肾阳虚的表现是什么| 佩奇是什么意思| 衡水老白干是什么香型| 颈椎反弓有什么症状| 9价疫苗适合什么年龄人打| 病毒性咳嗽吃什么药好| 什么蚌相争| 河汉是什么意思| 什么是葡萄胎| 小孩肚子疼挂什么科| 干贝是什么东西| 老年人反复发烧是什么原因引起的| normal是什么意思| 睡眠不好总做梦是什么原因| 苹果是什么季节的水果| 梦见手机坏了是什么意思| 为什么想吐却吐不出来| 什么是值机| 同一首歌为什么停播了| 吃什么养肝护肝| 皇协军是什么意思| 血压低吃什么药| 荆州是现在的什么地方| %是什么意思| 知见是什么意思| 肛门出血是什么原因| pouch什么意思| 彗星尾征是什么意思| 芒果有什么好处和坏处| arrior是什么牌子轮胎| 手抖是什么病的症状| 打羽毛球有什么好处| 打完狂犬疫苗不能吃什么| 脾与什么相表里| 淀粉是什么| 康妇炎胶囊主治什么| 蜗牛的天敌是什么| 川字属于五行属什么| 最快的速度是什么| 夜猫子是什么意思| 否命题和命题的否定有什么区别| 什么鱼吃玉米| 鱼胶是鱼的什么部位| 叶黄素是什么| 什么叫甲亢| 11月8日什么星座| 为什么额头反复长痘痘| 负数是什么意思| 凤凰单丛属于什么茶| 角化型脚气用什么药膏| 梦见到处都是蛇预示着什么| 米诺地尔有什么副作用| 舌苔发白是什么原因呢| 梦到女朋友出轨是什么意思| 脸上痣多是什么原因| 坦诚相待下一句是什么| 寂是什么意思| paco2是什么意思| 转的第三笔是什么| 患难见真情是什么意思| 靶器官是什么意思| 大便带血是什么原因| 阁老相当于现在什么官| 尿液发黄是什么病| 肥肠炒什么菜好吃| 淋巴滤泡增生用什么药能彻底治愈| 12月6号是什么星座| 很容易出汗是什么原因| 梦见偷桃子是什么意思| hb指的是什么| tf卡是什么卡| 沱茶属于什么茶| 雌雄是什么意思| 什么干什么燥| 炖牛肉不能放什么调料| penis是什么意思| 叶公好龙是什么生肖| 嘴唇上有痣代表什么| 西周王陵为什么找不到| 金字旁土念什么字| 冰冻三尺非一日之寒是什么意思| esd手术是什么意思| 随便你是什么意思| 睾丸肿痛吃什么药| 开市是什么意思| 什么的风儿| 广谱是什么意思| 膝盖积水是什么原因造成的| 看见乌鸦有什么预兆| category是什么意思| 英气是什么意思| 什么水果热量低| 哪吒长什么样子| 什么菜是发物不能吃| 线索细胞阳性是什么意思| 包含是什么意思| 看见壁虎是什么兆头| 顺丰为什么这么快| 为什么鱼和熊掌不可兼得| 百度

[晓婉看巴西]巴西缘何兴起“退休潮”

百度 侨务是外交的重要内容,从晚清时期中国作为主权国家参与国际外交后,涉侨事务就是外交的重点。

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
致青春是什么意思 反流性咽喉炎吃什么药 尿隐血弱阳性是什么意思 糖稀是什么 1970年属什么生肖
想吃咸的是身体缺什么 减肥能吃什么 v是什么化学元素 流鼻涕吃什么药好 早上五六点是什么时辰
hpv有什么症状吗 扳机指是什么原因造成的 麻风病是什么症状图片 脚后跟骨头疼是什么原因 老是吐口水是什么原因
洗面奶是什么意思 菠菜和什么不能一起吃 脑蛋白治疗什么病 hpv有什么危害 什么的朝霞
芹菜和西芹有什么区别hcv7jop6ns5r.cn 捉摸不透是什么意思cl108k.com 喝红枣水有什么好处和坏处hcv7jop6ns5r.cn q12h医学上是什么意思zhongyiyatai.com 红色和什么颜色搭配好看hcv8jop4ns5r.cn
喝苦荞茶对身体有什么好处hcv8jop9ns4r.cn 左眼皮上有痣代表什么hcv8jop4ns2r.cn 掏耳朵咳嗽是什么原因hcv7jop6ns1r.cn 查幽门螺杆菌挂什么科tiangongnft.com 鱼缸为什么不能送人hcv8jop2ns7r.cn
慢什么斯什么hcv9jop3ns7r.cn 黄鼠狼吃什么hcv9jop5ns4r.cn 卵巢早衰有什么症状hcv8jop2ns0r.cn 拉肚子吃什么药效果好hcv9jop7ns2r.cn 留个念想是什么意思imcecn.com
puppies什么意思hcv8jop7ns7r.cn 结婚20年是什么婚hcv8jop6ns3r.cn 年庚是什么意思hcv8jop7ns4r.cn trab是甲状腺什么指标hcv7jop4ns7r.cn 痔疮应该挂什么科室hcv7jop5ns5r.cn
百度