Template:Arabic Script/doc

A Template to render Arabic-based scripts and ensure that Arabic diacritics appear properly.

It can also align text or paragraph that flows right-to-left

By default, the font size is 125% for better readability.

Usage

edit

Basic Code format: {{Arabic Script|Arabic Text}}

Advance Code format: {{Arabic Script|Arabic Text|size=?%|tar=y|style=?|attributes=?}}


Example

edit
  • {{Arabic Script|بِسْمِ ٱللَّهِ}} Output: بِسْمِ ٱللَّهِ
  • {{Arabic Script|'''بِسْمِ ٱللَّهِ'''}} Output: بِسْمِ ٱللَّهِ


Example with optional parameters

edit
  • {{Arabic Script|بِسْمِ ٱللَّهِ|size=150%}} Output: بِسْمِ ٱللَّهِ
  • {{Arabic Script|بِسْمِ ٱللَّهِ|tar=y}}Output:Text align to right
    بِسْمِ ٱللَّهِ
  • {{Arabic Script|بِسْمِ ٱللَّهِ|style=color:green}} Output: بِسْمِ ٱللَّهِ
  • {{Arabic Script|بِسْمِ ٱللَّهِ|attributes=title="Bismi Allahi arrahmani arraheem"}}Output: بِسْمِ ٱللَّهِ (Hover on it to see effect)

TemplateData

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Arabic Script

A Template to render Arabic-based scripts and ensure that Arabic diacritics appear properly. This is ''Arabic Script'' Template.

Template parameters

ParameterDescriptionTypeStatus
Text1

Write text

Example
بِسْمِ ٱللَّهِ
Stringrequired
Font Size (Optional)size

Write font size with units like %, px or em

Example
150%
Stringsuggested
Text align right (Optional)tar

It align text or paragraph that flows right-to-left. To align, type ' y '.

Suggested values
y
Example
y
Stringsuggested
Style (Optional)style

To specify additional CSS formattings (e.g. style=color:green)

Example
color:green
Stringsuggested
Attributes (Optional)attributes

It used for specifying additional HTML attributes. (e.g. attributes=title="Al-Fatiha")

Example
title="Al-Fatiha"
Stringsuggested