ข้ามไปเนื้อหา

แม่แบบ:Indent

จากวิกิพีเดีย สารานุกรมเสรี
Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

การใช้งาน

[แก้]

The indentation spacing generated by Template:Indent will match the alignment of a colon-shift (":") by using {{indent|5}}. To match "::", use {{indent|10}}.

  • Note: This may vary depending on your browser.

Usage: {{indent|# of spaces}}

  • Indents up to 30 spaces. (use {{in5|n}} to skip up to 50 spaces)
  • Indent differs from {{space}} only in that it automatically begins a wrapped-newline, then spaces over n spaces, whereas {{space}} spaces over n in the same (current) line.

Examples

[แก้]

The following are detailed examples, also comparing to the equivalent indentation generated if a colon-shift ":" were used instead.

Example 1 – Indenting by 5:
มาร์กอัป
Some text.{{indent|5}}Some more text.
แสดงผลเป็น Some text.
     Some more text.
Example 2 – Alignment with ":" or "::" indentations:
มาร์กอัป
: Line of colon-shifted text.
{{indent|5}}Line of indent-5-shifted text.
<br>      Line of br-6-nbsp-shifted text.
<br>     Line of br-5-nbsp-shifted text.
<br>     Line of br-5-nbsp-true-shifted text.
:: Line of 2-colon-shifted text.
{{space|10}}Line of space-10-shifted text.
แสดงผลเป็น : Line of colon-shifted text.


     Line of indent-5-shifted text.
      Line of br-6-nbsp-shifted text.
     Line of br-5-nbsp-shifted text.
     Line of br-5-nbsp-true-shifted text.

Line of 2-colon-shifted text.

          Line of space-10-shifted text.

Note that if the prior line is already colon-shifted text, then using "{{indent|5}}" generates a blank line first, so instead, use "{{space|5}}" (or such) after a colon-shifted line.