الفرق بين المراجعتين لصفحة: «قالب:شكل موسوعة»

من مرصد الاقتصاد الأردني
لا ملخص تعديل
لا ملخص تعديل
وسم: مسترجع
سطر ١: سطر ١:
<div class="box" style="
<div class="featured-article-box" style="
width: {{{3|100%}}};
    width: 100%;
height: {{{4}}};
    border: 2px solid #a2a9b1; /* Border for the whole box */
float: {{{5}}};
     background-color: #f8f9fa; /* Light gray background */
margin-bottom: {{#if:{{{8|}}}|0|20px}};
    border-radius: 8px;
{{#if:{{{8|}}}|position: fixed;
     padding: 10px;
{{{8}}}<!--if 8th parameter, add it to fixed positioning-->}}
     box-sizing: border-box; /* Prevents extra width issues */
border: 2px solid #a2a9b1; /* Border */
     background: #f8f9fa; /* Background Color */
     padding: 10px; /* Adds spacing inside the box */
     border-radius: 5px; /* Optional: Rounded corners */
">
">
<div class="box-header" style="
 
text-align: center;
    <!-- Static Heading -->
font-size: 1.5em;
    <div class="featured-header" style="
"><span>{{#if: {{{7|}}} | [[{{{7}}}|{{{1}}}]] | {{{1}}} }}</span><!--If 7th parameter exists, make the title a link.-->{{#if:{{{collapse|}}}|<span style="font-size: 1rem; float: right">{{nbsp}}[<span style="color: #4d97ff" class="mw-customtoggle-{{{collapseid|wikiframe}}}">{{{collapsetext|show/hide}}}</span>]</span>}}
        width: 100%;
</div><div {{#if:{{{collapse|}}}|id="mw-customcollapsible-{{{collapseid|wikiframe}}}" class|class}}="{{#if:{{{collapse|}}}|box-content {{{collapse}}} mw-collapsible|box-content}}" style="
        background: #cedff2; /* Light blue background */
padding: 5px;
        border: 2px solid #0645ad; /* Blue border */
"><!--
        padding: 8px;
-->{{{2}}}
        font-size: 1.3em;
</div></div>
        font-weight: bold;
<noinclude>{{/doc}}[[Category:Templates]]</noinclude>
        text-align: center;
        color: #0645ad;
        border-radius: 8px;
        margin-bottom: 10px;
    ">
        📰 '''مقال مختار'''
    </div>
 
    <!-- Content Box -->
    <div class="featured-body" style="
        display: flex;
        align-items: flex-start;
    ">
        <!-- Left Image (Optional) -->
        <div class="featured-image" style="flex-shrink: 0; margin-left: 10px;">
            [[ملف:Example.jpg|120px|يسار|alt=وصف الصورة]]
        </div>
 
        <!-- Article Content -->
        <div class="featured-text" style="flex-grow: 1;">
            <h2 class="featured-title" style="
                font-size: 1.2em;
                font-weight: bold;
                color: #0645ad;
                margin-bottom: 5px;
            ">[[{{{1}}}]]</h2>
 
            {{#lstx:{{{1}}}|مقدمة}}
 
            <div class="featured-read-more" style="
                margin-top: 5px;
                font-size: 1.1em;
            ">
                (<small>'''[[{{{1}}}|المقالة الكاملة]]'''</small>)
            </div>
        </div>
    </div>
</div>

مراجعة ٢٢:١٣، ٦ مارس ٢٠٢٥