«قالب:مظهر النافذة»: الفرق بين المراجعتين
[مراجعة منقحة] | [مراجعة منقحة] |
ط |
|||
سطر ٢٣: | سطر ٢٣: | ||
<div style="margin: 10px 0;">'''Coordonnées''' : ({{#var:coordx}}, {{#var:coordy}})</div> | <div style="margin: 10px 0;">'''Coordonnées''' : ({{#var:coordx}}, {{#var:coordy}})</div> | ||
{{#if:{{{صورة الخريطة|}}}|<div style="width: 100%; overflow: auto; display: flex; margin-top: 10px;"> | {{#if:{{{صورة الخريطة|}}}|<div style="width: 100%; overflow: auto; display: flex; margin-top: 10px;"> | ||
− | <div class="cadreCarte" style="width: max-content; margin: 0 auto; position: relative; overflow: hidden;">[[Image:{{{صورة الخريطة}}} | + | <div class="cadreCarte" style="width: max-content; margin: 0 auto; position: relative; overflow: hidden;">[[Image:{{{صورة الخريطة}}}|220px|link={{{الخريطة}}}]] |
<div style="position: absolute; left: calc({{#expr:{{#var:coordx}}/{{CarteCoord|1=x|2={{{الخريطة|}}}}}*100}}% + 4px); top: calc({{#expr:{{#var:coordy}}/{{CarteCoord|1=y|2={{{الخريطة|}}}}}*100}}% + 2px); height: 14px; width: 14px; border: 4px solid red; transform: translate(-50%, -50%); border-radius: 50%;"></div> | <div style="position: absolute; left: calc({{#expr:{{#var:coordx}}/{{CarteCoord|1=x|2={{{الخريطة|}}}}}*100}}% + 4px); top: calc({{#expr:{{#var:coordy}}/{{CarteCoord|1=y|2={{{الخريطة|}}}}}*100}}% + 2px); height: 14px; width: 14px; border: 4px solid red; transform: translate(-50%, -50%); border-radius: 50%;"></div> | ||
</div> | </div> | ||
سطر ٣٦: | سطر ٣٦: | ||
<div style="width: max-content; text-align: center; style="margin-bottom: 10px;">'''[[{{{الخريطة|Aucun nom}}}]]'''</div> | <div style="width: max-content; text-align: center; style="margin-bottom: 10px;">'''[[{{{الخريطة|Aucun nom}}}]]'''</div> | ||
<div style="width: 100%; overflow: auto; display: flex"> | <div style="width: 100%; overflow: auto; display: flex"> | ||
− | <div class="cadreCarte" style="width: max-content; margin: 0 auto;">{{#if:{{{صورة الخريطة|}}}|[[Image:{{{صورة الخريطة}}} | + | <div class="cadreCarte" style="width: max-content; margin: 0 auto;">{{#if:{{{صورة الخريطة|}}}|[[Image:{{{صورة الخريطة}}}|220px|link={{{الخريطة|}}}]]|لا توجد صورة متاحة<includeonly>[[تصنيف:معلومات غير مكتملة]]</includeonly>}}</div> |
</div>}} | </div>}} | ||
}} | }} | ||
}} | }} | ||
<noinclude> | <noinclude> |