|

توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]


از این الگو هنگامی بهره گرفته می‌شود که یک رشتهٔ نوشتاری در میان باشد و بخواهند این رشته را با میانگذاری این الگو٬ به تکه‌هایی جدا‌جدا کنند که پیامد آن شود که یک خط عمودی "|" میان هر تکه قرار بگیرد. نمونه:
یک عبارت را این جور در ویکی می‌نویسند:
"تهران | شهریار | باغستان"
پیامد عبارت بالا این میشود:
"تهران | شهریار | باغستان" اکنون الگو را این جور باید در ویکی نوشت:
"تهران {{-!}} شهریار {{-!}} باغستان"
پیامد به کار گیری الگو نیز در فرجام این می‌شود:
"تهران  | شهریار  | باغستان"

This template adds a non-breaking space followed by a pipe (|) character. It is useful in lists where a line break is only wanted after the pipe. For example, in the string "Item1 | Item2 | Item3" one probably does not want a line break between each pipe and its preceding space. This could be used to fix it: "Item1{{-!}} Item2{{-!}} Item3".

This template's use for piped lists is now deprecated. use {{Flatlist}} or class="hlist" instead; see WP:HLIST.

See also ویرایش

There are several similar templates:

  • {{!w}} – a "wrap" version of spaced pipe that makes item nowrap and wraps just after the pipe
  • {{•}} – Bullet "•" is mostly used for dotted lists that use small font sizes.
  • {{·}} – bold middot or (·)
  • {{spaced ndash}} – Ndash "–" is a short dash.
  • {{\}} – For the occasional slash "/" in lists.