الگو:Resize

از ویکی‌پدیا، دانشنامهٔ آزاد
پرش به: ناوبری، جستجو
نماد توضیحات توضیحات الگو[نمایش] [ویرایش] [تاریخچه] [پاکسازی]

این الگو برای کمک به تغییر اندازۀ فونت در یک رشته متنی مورد استفاده قرار می‌گیرد .

Syntax

{{resize|N|text}}  or  {{resize|text}}
N specifies a size, such as "90%", "1.2em", etc. For the default case (the second above), N is set to "90%".
If the text happens to contain an equality sign "=", specify {{resize|N|2=text}} or {{resize|1=text}}.

Examples

{{resize|1.2em|This text is 0.2em larger than normal}}    This text is 0.2em larger than normal
{{resize|80%|This text is 80% normal size}} This text is 80% normal size
{{resize|This text defaults to 90% normal size}} This text defaults to 90% normal size

Redirects

  • {{smaller}} - meant to be used with only one argument for 10% smaller

See also

  • {{larger}} - the same idea as {{smaller}}, but 10% larger instead of smaller.
  • {{small}} - 15% smaller; a shortcut for <small>...</small>
  • {{big}} - 15% larger; a shortcut for <big>...</big>
  • {{huge}} - for diacritic marks only; similar to {{big}} but considerably larger, and compensates for vertical alignment.
  • {{large}} - simply large
  • {{color}} - used to add a span of text with a given foreground color
  • {{background color}} - used to add a span of text with a given background color