Vorlage:Spaces/doc: Unterschied zwischen den Versionen

CamNet - das Wiki
Keine Bearbeitungszusammenfassung
 
imported>Oetterer
Keine Bearbeitungszusammenfassung
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 4: Zeile 4:
{{Lua|Module:String}}<!--wider box than {{Template shortcut}}-->
{{Lua|Module:String}}<!--wider box than {{Template shortcut}}-->


A template to produce multiple [[wpen:non-breaking space]]s ("<code><big>&amp;nbsp;</big></code>"s).
A template to produce multiple [[wpen:non-breaking space|non-breaking space]]s ("<code><big>&amp;nbsp;</big></code>"s).


; Syntax : <code><big><nowiki>{{spaces|</nowiki>''N''}}</big></code> ...... to produce ''N'' consecutive non-breaking spaces (where ''N'' is a [[wpen:Integer|whole number]] larger than zero).
; Syntax : <code><big><nowiki>{{spaces|</nowiki>''N''}}</big></code> ...... to produce ''N'' consecutive non-breaking spaces (where ''N'' is a [[wpen:Integer|whole number]] larger than zero).

Aktuelle Version vom 5. Oktober 2022, 16:10 Uhr

A template to produce multiple non-breaking spaces ("&nbsp;"s).

Syntax
{{spaces|N}} ...... to produce N consecutive non-breaking spaces (where N is a whole number larger than zero).

{{spaces}} without any parameter produces a single non-breaking space, but, as "spaces" is plural, using &nbsp; itself (or, if this is not possible, {{nbsp}}) is preferred for this purpose.

See also

  • {{pad}} to add inline spacing in units of px, em or ex.
  • {{nowrap|item}} to stop the linewrapping of any part of item.