Nga Wikipedia, enciklopedia e lirë
Jump to navigation Jump to search
Edit-copy green.svg

Kjo është një nënfaqe e documentacionit për Stampa:Hapësira.
Kjo faqe përmban informacion për përdorim, kategoritë dhe përmbajtje tjetër që nuk është pjesë kryesore e stampës.

Qellimi[Redakto nëpërmjet kodit]

This template alternates HTML and unicode acceptable variations of ways to declaring spaces, forcing browsers to recognize each in turn, when their rendering would normally compact and eliminate successive spaces. In short, they force padding within, before, or after a field which includes them in a line (which in practice, is usually within a wikitable, to force alignments of long and short words, such as month names, etc.)

Perdorimi[Redakto nëpërmjet kodit]

Stampa:Tnull (shortcut redirect: {{s}}) can be used inline to create alignment between adjacent text lines, or to space out titles, etc. Like {{indent}}, it takes a numeric argument nn (up to 30) after the pipe and provides that many consecutive spaces. Indent differs only in that it automatically begins a newline, then spaces over nn spaces.

Shembuj[Redakto nëpërmjet kodit]

{{indent|2}}, {{Hapësira|7}}, etc.

The templates space and indent are limited to adding 30 spaces, and have a cost in pre-expansion template size, because their logic contains 30 sets of the counted spaces.

Better results, for indenting large sections, can frequently be gained by using {{nowrap}} and/or the HTML formatting <div style="margin-left: XXem;">...<div>, where "XX" is a numeric em value. Since browser design philosophy is to trim consecutive spaces, check results also in different zoom settings, and on more than one browser if possible. One repeat offender is the Internet Explorer browser family.

Shiko edhe[Redakto nëpërmjet kodit]

  • {{Pad}} for indenting a single line