ਫਰਮਾ:Script/Arabic{{{1}}}
This template is to render properly Arabic-based scripts which don't use the main Arabic alphabet, also to ensure that Arabic diacritics appear properly. It is also used for the template:Arabic alphabet shapes. Usage
Use simple {{lang|ar|...}} for inline citation of Arabic language. Use {{rtl-para}} for entire paragraphs of Arabic text, however, they do not force choosing the fonts in that template. ImplementationThe template contains this phrase: <templatestyles src="Script/styles_arabic.css" /><span class="script-arabic script-Arab" {{#if:{{{lang|}}}|lang="{{{lang}}}"}} {{#ifeq: {{{no_rtl_mark|+}}} | {{{no_rtl_mark|-}}}||dir="rtl"}} style="font-size: {{{size|125%}}}; {{{style|}}}" {{{attributes|}}}>{{{1}}}</span>{{#ifeq: {{{no_rtl_mark|+}}} | {{{no_rtl_mark|-}}}||‎}}
Fonts information
Template intended to force following fonts if installed:
These fonts contain all Arabic character defined in Unicode (see Arabic script in Unicode) for text in the various languages that use the Arabic script, but not all the redundant glyphs used in stylizing.
If the previous fonts are not installed, other fallback fonts would display:
How to override fonts in user's preferencesAny user can use another font with a different size by writing the following on their custom CSS. (see Help:User style) An example making the font size 105%, and choosing Droid Arabic Naskh to be the main font with Arial as an additional font : .script-arabic {
font-size: 105% !important;
font-family: 'Droid Arabic Naskh', Arial, sans-serif !important;
}
Example: .script-arabic {
font-size: 125% !important;
/*
The default line-height used by Wikipedia is 1.5 em, which can be lower or higher than the font default,
reduce it to the minimum recommended for HTML by using the word normal or for example, use a percentage
value, as 95%
*/
line-height: 95%;
font-family:
/* The following fonts are recommended for best coverage of the Arabic script: */
'Noto Naskh Arabic', Scheherazade, 'Scheherazade New', Lateef, 'Droid Arabic Naskh', Harmattan /* free fonts */
'Sakkal Majalla', /* commercial font, also installed with recent versions of Windows */
'Microsoft Uighur', 'Arabic Typesetting', /* commercial fonts installed with recent versions of Windows */
/* Other fonts supporting the Arabic script with partial coverage: */
Arial, /* Warning! Old versions may not support a few characters. */
'Times New Roman', /* Warning! Old versions may not support a few characters. */
/* Default fallback fonts determined in the browser: */
sans-serif /* No comma here! */
/* Required at end to actually enable the override and make it work : */
!important;
}
.script-arabic {
font-size: 125% !important;
line-height: 95%;
font-family: 'Noto Naskh Arabic', Scheherazade, 'Scheherazade New', Lateef, 'Droid Arabic Naskh', Harmattan,
Arial, 'Times New Roman', 'Sakkal Majalla', 'Microsoft Uighur', 'Arabic Typesetting', sans-serif !important;
}
Template DataThis is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for Template:Script based on its TemplateData.
TemplateData for Script
See also
|
Portal di Ensiklopedia Dunia