Editing Template:Spaces/doc
From Guild of Archivists
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{Documentation subpage}} | {{Documentation subpage}} | ||
<!-- EDIT TEMPLATE DOCUMENTATION AFTER THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION AFTER THIS LINE --> | ||
{{Lua|Module:String}} | {{COinS safe|n}} | ||
{{high-risk| ≈1630000 }} | |||
{{Template shortcuts | |nbs|nbsp|nbsp;|space|spcs}} | |||
{{stack|{{Lua|Module:String}}}}<!--wider box than {{Template shortcut}}--> | |||
A template to produce one or more [[ | A template to produce one or more [[non-breaking space]]s (<code>&nbsp;</code> character entities). | ||
== Usage == | == Usage == | ||
; Syntax : <code>{{big|<nowiki>{{spaces|</nowiki>''N''{{!}}''type''}}}}</code> ...... to produce ''N'' consecutive non-breaking spaces (where ''N'' is a whole number larger than zero) of the type specified by the second parameter: <code>em</code>, <code>en</code>, <code>fig</code>, <code>hair</code>, <code>thin</code>, or if not specified, a non-breaking space (<source inline lang=xml> </source>) the same width as a standard space. | ; Syntax : <code>{{big|<nowiki>{{spaces|</nowiki>''N''{{!}}''type''}}}}</code> ...... to produce ''N'' consecutive non-breaking spaces (where ''N'' is a [[Integer|whole number]] larger than zero) of the type specified by the second parameter: <code>em</code>, <code>en</code>, <code>fig</code>, <code>hair</code>, <code>thin</code>, or if not specified, a non-breaking space (<source inline lang=xml> </source>) the same width as a standard space. | ||
{{bigger|<code><nowiki>{{space|</nowiki>''type''<nowiki>}}</nowiki></code>}} produces a single non-breaking space of the type indicated. | {{bigger|<code><nowiki>{{space|</nowiki>''type''<nowiki>}}</nowiki></code>}} produces a single non-breaking space of the type indicated. | ||
Line 31: | Line 34: | ||
== See also == | == See also == | ||
* {{tl|pad}} to add inline spacing in units of px, em or ex | * {{tl|pad}} to add inline spacing in units of px, em or ex | ||
* {{tl|0}} to add invisible characters | |||
* {{tlg|nowrap|item|italic=on}} to stop the linewrapping of any part of {{var|item}} | * {{tlg|nowrap|item|italic=on}} to stop the linewrapping of any part of {{var|item}} | ||
* {{tl|nb5}} to insert five non-breaking spaces | * {{tl|nb5}} to insert five non-breaking spaces | ||
* {{tl|indent}} indents by a specified number of spaces (with leading newline) | |||
* {{tl|in5}} indents by five or a specified number of spaces (with no leading newline) | * {{tl|in5}} indents by five or a specified number of spaces (with no leading newline) | ||
* {{tl|block indent}}, to indent an entire block of content, similar to a [[Template:Quote|block quotation]] (uses {{tag|div|o}} and CSS margins) | * {{tl|block indent}}, to indent an entire block of content, similar to a [[Template:Quote|block quotation]] (uses {{tag|div|o}} and CSS margins) | ||
* {{tl|sp}}, to add regular, breaking space | * {{tl|sp}}, to add regular, breaking space | ||
{{Inline spacing templates}} | {{Inline spacing templates}} | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |