Mall:Murdmata

(Ümber suunatud leheküljelt Mall:Nowrap)
Malli dokumentatsioon
Malli tuleb tõlkida ja kohandada!
Active contents:
<span style="white-space:nowrap">{{{1}}}</span>

This template prevents word wraps (line breaks) in text with spaces in.

Kasutamine muuda

Mall on mõeldud selleks, et teksti ebasoovitavas kohas (eriti just tühiku koha pealt) pooleks ei murtaks, kasvõi näiteks mitmest sõnast koosnevatele pealkirjadele linkimiseks.

Süntaks muuda

{{murdmata|sinu tekst}}

Näide muuda

Reavahetuse kohas võidakse tekst kuvada nii:

Kursi kiriku vana kell kaalus 5 puuda (82
kg).

Kursi kiriku vana kell kaalus 5 puuda {{murdmata|(82 kg)}}.
kuvab sama koha nii:

Kursi kiriku vana kell kaalus 5 puuda
(82 kg).

{{nowrap|34 kg}} - Assures that the unit appears on the same line as the number.

Handling interpreted characters muuda

For text that includes an equals sign "=", precede the text with 1=. For example:
{{nowrap|1=2 + 2 = 4}}
Which renders:
2 + 2 = 4
For text that includes a vertical bar "|", escape the bar(s) with &#124; or {{!}}. For example:
{{nowrap|&#124;2&#124; < 3}}
Which renders:
|2| < 3
Spaces at the beginning or end will fall outside the no-wrap tag in the rendered text for technical reasons.

Vaata ka muuda

  • {{nowrap begin}} - Prevents wraps in both text and links. For the really tricky wrapping cases when you need full control, for instance in very complex long link lists.