6,817
edits
Changes
From Gramps
m
The specification of the את מפרט ה־API לרכיב Textdoc API is ניתן למצור בקישור הב: [https://gramps-project.org/docs/gen/gen_plug.html#gramps.gen.plug.docgen.textdoc.TextDoc here] The interface for adding media objects is as follows:
Add a photo of the specified width הוסף תמונה ברוחב שצוין (in centimetersבסנטימטרים). Parameters משתנים:
name – filename of the image to add- שם קובץ התמונה אותה מעוניינים להוסיף align – alignment of the imageיישור התמונה. Valid values are ‘left’, ‘right’ערכים תקינים הם 'שמאל', ‘center’'ימין', and ‘single’'מרכז' ו'יחיד' w_cm – width in centimeters- רוחב בסנטימטרים h_cm – height in centimeters- גובה בסנטימטרים alt – an alternative text to use- מלל חלופי בו ניתן להשתמש. Useful for eg html reportsשימושי לדוגמה בדוחות HTML style_name – style to use for captions- שם הסגנון בו יעשה שימוש בכתוביות crop – image cropping parameters- משתנים לחיתוך תמונה
Note that because of the structure of these documents, Images are only allowed as children (i.e. following) Document or Cell. This interface is used in the following reportsמנשק זה משמש בדוחות הבאים:
→מסמך מילולי API: translation
{{-}}
==מסמך API מילולי API==
המנשק להוספת עצמי מדיה הוא כדלקמן:
<dev dir"ltr">
<pre>
add_media_object(name, align, w_cm, h_cm, alt='', style_name=None, crop=None)[sourceמקור]
</pre>
</dev>
לתשומת לב! עקב מבנה מסמכים אלה, תמונות מותרות רק כמסמכי או תאי צאצא (כלומר עקיבה).
{| {{Prettytable}}
|-