ਫਰਮਾ:Spaces
(ਫਰਮਾ:Nbsp ਤੋਂ ਮੋੜਿਆ ਗਿਆ)
This template uses TemplateStyles: |
ਇਹ ਫਰਮਾ ਹੇਠ ਲਿਖੇ ਲੂਆ ਨੂੰ ਵਰਤਦਾ ਹੈ: |
This template inserts any number of non-breaking spaces, all enclosed in a 'nowrap' style.
Usage
ਸੋਧੋ{{spaces|number of spaces}}
Use this template anywhere you want a space and for the text either side of it to not be broken over a line-ending. For example, between the number and the units of a distance measurement.
Wikitext | Output |
---|---|
It is 400{{spaces}}km away. | It is 400 km away. |
The {{nbsp}} shorthand form can also be used for this template.
When to use
ਸੋਧੋControlling spacing in typography is a big topic, and often open to argument, but some generally-accepted examples of when to prevent spacing are as follows (from Lua error in package.lua at line 80: module 'Module:ISBN' not found.):
Chapter{{nbsp}}12 Theorem{{nbsp}}1.2 Appendix{{nbsp}}A Figure{{nbsp}}3 Table{{nbsp}}B-8 Lemmas 5 and{{nbsp}}6 Donald{{nbsp}}E. Knuth Luis{{nbsp}}I. Trabb{{nbsp}}Pardo Bartel{{nbsp}}Lendert van{{nbsp}}der{{nbsp}}Waerden Charles{{nbsp}}XII Charles Louis Xavier{{nbsp}}Joseph de{{nbsp}}la Vall\'ee{{nbsp}}Poussin dimension{{nbsp}}d width{{nbsp}}w function{{nbsp}}f(x) string{{nbsp}}s of length{{nbsp}}l string{{nbsp}}s of length l{{nbsp}}or more 1,{{nbsp}}2, or{{nbsp}}3 a,{{nbsp}}b, and{{nbsp}}c. 1,{{nbsp}}2, …,{{nbsp}}n. of{{nbsp}}x from 0 to{{nbsp}}1 increase z by{{nbsp}}1 in common with{{nbsp}}m of u{{nbsp}}and{{nbsp}}v. equals{{nbsp}}n less than{{nbsp}}ε (given{{nbsp}}X) mod{{nbsp}}2 modulo{{nbsp}}p<sup>e</sup> for all large{{nbsp}}n is{{nbsp}}15 is 15{{nbsp}}times the height (b){{nbsp}}Show that f(x) is (1){{nbsp}}continuous; (2){{nbsp}}bounded
See also
ਸੋਧੋ