הבדלים בין גרסאות בדף "תבנית:Svg"
קפיצה לניווט
קפיצה לחיפוש
(12 גרסאות ביניים של אותו משתמש אינן מוצגות) | |||
שורה 1: | שורה 1: | ||
− | <includeonly> | + | <includeonly> |
− | + | {{#vardefine:file|{{:doalogue:{{#replace:{{filepath:{{{file|בית_סביבה_אפקט_עברית.svg}}} }}|https://www.doalogue.co.il/|}} }} }} | |
− | + | <div class="svg-embed {{{class|}}} {{#if: {{{border|}}}|example-block|}}" id="{{{id|svg-embed}}}">{{#tag:html|<style>#content #{{{id|svg-embed}}} svg{max-width:{{{max-width|100%}}};margin:auto}{{#if: {{{ltr|}}}|#{{{id|svg-embed}}} svg {direction:ltr;} }}</style>{{:doalogue:{{{filepath|}}} }} }} | |
− | + | {{#if:{{{file|}}}|{{#if:{{{pdf|}}}|[https://doalogue.co.il/pdf?accessKey=secret&url={{filepath:{{{file|}}}}} <i class="far fa-file-pdf tooltip" title="הורדה כ-PDF"></i>]|[{{filepath:{{{file|}}}}} <i class="far fa-external-link tooltip" title="פתיחת התרשים בטאב חדש"></i>]}}}}</div> | |
− | {{# | + | </includeonly> |
+ | <noinclude> | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "file": {}, | ||
+ | "filepath": { | ||
+ | "label": "כתובת הקובץ (כל מה שאחרי הדומיין ללא הסלאש)", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "max-width": { | ||
+ | "type": "number" | ||
+ | }, | ||
+ | "class": {}, | ||
+ | "border": {}, | ||
+ | "id": {}, | ||
+ | "ltr": {}, | ||
+ | "pdf": {} | ||
+ | }, | ||
+ | "paramOrder": [ | ||
+ | "filepath", | ||
+ | "file", | ||
+ | "max-width", | ||
+ | "id", | ||
+ | "ltr", | ||
+ | "class", | ||
+ | "pdf", | ||
+ | "border" | ||
+ | ], | ||
+ | "description": "תבנית להטמעת svg בגוף הערכים" | ||
+ | } | ||
+ | </templatedata> | ||
+ | </noinclude> |
גרסה אחרונה מ־16:24, 9 ביוני 2023
תבנית להטמעת svg בגוף הערכים
פרמטר | תיאור | סוג | מצב | |
---|---|---|---|---|
כתובת הקובץ (כל מה שאחרי הדומיין ללא הסלאש) | filepath | אין תיאור | מחרוזת | מוצע |
File | file | אין תיאור | בלתי־ידוע | לא דרוש |
Max-width | max-width | אין תיאור | מספר | לא דרוש |
Id | id | אין תיאור | בלתי־ידוע | לא דרוש |
Ltr | ltr | אין תיאור | בלתי־ידוע | לא דרוש |
Class | class | אין תיאור | בלתי־ידוע | לא דרוש |
pdf | אין תיאור | בלתי־ידוע | לא דרוש | |
Border | border | אין תיאור | בלתי־ידוע | לא דרוש |