Template:Rtl-para/doc: Difference between revisions
| [checked revision] | [checked revision] |
Caleb Cooper (talk | contribs) Created page with "{{Documentation subpage}} {{Commons Import}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> == Usage == en-wiki pages are lang="en", dir="ltr" globa..." |
Caleb Cooper (talk | contribs) |
||
| Line 4: | Line 4: | ||
== Usage == |
== Usage == |
||
en-wiki pages are lang="en", dir="ltr" globally. use this template to insert a paragraph that flows [[right-to-left]]. Since any such paragraph will likely be in a language other than English, supply the [[ISO 639]] code of its language as the first parameter. |
en-wiki pages are lang="en", dir="ltr" globally. use this template to insert a paragraph that flows [[Wikipedia:right-to-left|right-to-left]]. Since any such paragraph will likely be in a language other than English, supply the [[Wikipedia:ISO 639|ISO 639]] code of its language as the first parameter. |
||
Type <code><nowiki>{{rtl-para|</nowiki>'''fa'''|''text''}}</code>. Instead of the <code>'''fa'''</code> for the Persian language you may type other codes for other intended languages written with a right-to-left script. |
Type <code><nowiki>{{rtl-para|</nowiki>'''fa'''|''text''}}</code>. Instead of the <code>'''fa'''</code> for the Persian language you may type other codes for other intended languages written with a right-to-left script. |
||
example (from ''[[ |
example (from ''[[Wikipedia:fa:ویکیپدیا|Wikipedia]]'' in Persian): |
||
{{rtl-para|fa|'''ویکیپدیا''' (به انگلیسی: {{lang|en|Wikipedia}}) یک دانشنامهٔ اینترنتی چندزبانه با محتویات آزاد است که با همکاری افراد داوطلب نوشته میشود و مقالات آن میتواند توسط هر کسی که به اینترنت دسترسی دارد، ویرایش گردد. نام ویکیپدیا واژهای ترکیبی است که از واژههای '''ویکی''' (وبگاه مشارکتی) و انسیکلو'''پدیا''' (دانشنامه یا دایرةالمعارف) گرفته شدهاست. میزبانهای اینترنتی اصلی این وبگاه در شهر تامپای فلوریدا هستند. همچنین میزبانهای اضافی دیگری هم در شهرهای آمستردام و سئول به این وبگاه یاری میرسانند.}} |
{{rtl-para|fa|'''ویکیپدیا''' (به انگلیسی: {{lang|en|Wikipedia}}) یک دانشنامهٔ اینترنتی چندزبانه با محتویات آزاد است که با همکاری افراد داوطلب نوشته میشود و مقالات آن میتواند توسط هر کسی که به اینترنت دسترسی دارد، ویرایش گردد. نام ویکیپدیا واژهای ترکیبی است که از واژههای '''ویکی''' (وبگاه مشارکتی) و انسیکلو'''پدیا''' (دانشنامه یا دایرةالمعارف) گرفته شدهاست. میزبانهای اینترنتی اصلی این وبگاه در شهر تامپای فلوریدا هستند. همچنین میزبانهای اضافی دیگری هم در شهرهای آمستردام و سئول به این وبگاه یاری میرسانند.}} |
||
example (from ''[[ |
example (from ''[[Wikipedia:he:ויקיפדיה|Wikipedia]]'' in Hebrew): |
||
{{rtl-para|he|'''ויקיפדיה''' (באנגלית: '''{{lang|en|Wikipedia}}''') היא אנציקלופדיית תוכן חופשי המשתמשת בטכנולוגיית ויקי ופועלת באינטרנט. "חופשי" פירושו חופשי לעיון ללא כל מגבלה, חופשי לעריכה (תוך התחשבות בכללי ויקיפדיה), וחופשי להעתקה ולהפצה (בהתאם לתנאי רישיון Creative Commons מסוג CC-BY-SA, ובתמונות מסוימות - לפי כללי השימוש ההוגן). ויקיפדיה היא יצירה שפותחה ומפותחת באופן שיתופי במספר רב של לשונות. היא מנוהלת ומתופעלת בידי קרן ויקימדיה, מוסד ללא כוונת רווח שמרכזו בארצות הברית.}} |
{{rtl-para|he|'''ויקיפדיה''' (באנגלית: '''{{lang|en|Wikipedia}}''') היא אנציקלופדיית תוכן חופשי המשתמשת בטכנולוגיית ויקי ופועלת באינטרנט. "חופשי" פירושו חופשי לעיון ללא כל מגבלה, חופשי לעריכה (תוך התחשבות בכללי ויקיפדיה), וחופשי להעתקה ולהפצה (בהתאם לתנאי רישיון Creative Commons מסוג CC-BY-SA, ובתמונות מסוימות - לפי כללי השימוש ההוגן). ויקיפדיה היא יצירה שפותחה ומפותחת באופן שיתופי במספר רב של לשונות. היא מנוהלת ומתופעלת בידי קרן ויקימדיה, מוסד ללא כוונת רווח שמרכזו בארצות הברית.}} |
||
Latest revision as of 10:32, 26 October 2020
| This page was automatically imported from Commons any changes will be overwritten, the source page is here () |
Usage
en-wiki pages are lang="en", dir="ltr" globally. use this template to insert a paragraph that flows right-to-left. Since any such paragraph will likely be in a language other than English, supply the ISO 639 code of its language as the first parameter.
Type {{rtl-para|fa|text}}. Instead of the fa for the Persian language you may type other codes for other intended languages written with a right-to-left script.
example (from Wikipedia in Persian):
ویکیپدیا (به انگلیسی: Wikipedia) یک دانشنامهٔ اینترنتی چندزبانه با محتویات آزاد است که با همکاری افراد داوطلب نوشته میشود و مقالات آن میتواند توسط هر کسی که به اینترنت دسترسی دارد، ویرایش گردد. نام ویکیپدیا واژهای ترکیبی است که از واژههای ویکی (وبگاه مشارکتی) و انسیکلوپدیا (دانشنامه یا دایرةالمعارف) گرفته شدهاست. میزبانهای اینترنتی اصلی این وبگاه در شهر تامپای فلوریدا هستند. همچنین میزبانهای اضافی دیگری هم در شهرهای آمستردام و سئول به این وبگاه یاری میرسانند.
example (from Wikipedia in Hebrew):
ויקיפדיה (באנגלית: Wikipedia) היא אנציקלופדיית תוכן חופשי המשתמשת בטכנולוגיית ויקי ופועלת באינטרנט. "חופשי" פירושו חופשי לעיון ללא כל מגבלה, חופשי לעריכה (תוך התחשבות בכללי ויקיפדיה), וחופשי להעתקה ולהפצה (בהתאם לתנאי רישיון Creative Commons מסוג CC-BY-SA, ובתמונות מסוימות - לפי כללי השימוש ההוגן). ויקיפדיה היא יצירה שפותחה ומפותחת באופן שיתופי במספר רב של לשונות. היא מנוהלת ומתופעלת בידי קרן ויקימדיה, מוסד ללא כוונת רווח שמרכזו בארצות הברית.
(resize browser window or select texts to check linebreaking behaviour)
if you subst: the template, English bits within the text (such as "Wikipedia" in the present example) can be marked with {{lang|en|...}}.
See also
- {{rtl-lang}}, for strings of rtl text inside strings of ltr text
Insert a paragraph that flows right-to-left.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| 1 | 1 | Insert a content, or an ISO 639 language code | String | required |
| 2 | 2 | Insert a content belonging to the language specified, if the first parameter is used | String | optional |