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

من مرصد الاقتصاد الأردني
لا ملخص تعديل
لا ملخص تعديل
سطر ١: سطر ١:
<!-- Main Box Wrapper -->
<!-- Static Header Section -->
<div class="box" style="
<div style="
     width: 100%;
     width: 100%;
     height: {{{4|auto}}};
     background: #cedff2; /* Light Blue Header */
     float: {{{5|none}}};
     border: 2px solid #0645ad; /* Blue Border */
     margin-bottom: {{#if:{{{8|}}}|0|20px}};
     padding: 8px;
     {{#if:{{{8|}}}|position: fixed; {{{8}}}}};
     font-size: 1.3em;
     border: 2px solid #a2a9b1; /* Main Border */
     font-weight: bold;
     background: #f8f9fa; /* Light Gray Background */
     text-align: center;
     padding: 10px;
     color: #0645ad;
     border-radius: 5px;
     border-radius: 5px;
     box-sizing: border-box; /* Ensures width stays within limits */
     margin-bottom: 10px;
">
">
 
     📰 مقالة مختارة
     <!-- Static Header Section -->
    <div class="box-header" style="
        width: 100%;
        background: #cedff2; /* Light Blue Header */
        border: 2px solid #0645ad; /* Blue Border */
        padding: 8px;
        font-size: 1.3em;
        font-weight: bold;
        text-align: center;
        color: #0645ad;
        border-radius: 5px;
        margin-bottom: 10px;
    ">
        📰 مقال مختار
    </div>
 
    <!-- Main Content Section -->
    <div class="box-body" style="
        padding: 10px;
    ">
        <!-- Article Title -->
        <h2 class="box-title" style="
            font-size: 1.2em;
            font-weight: bold;
            color: #0645ad;
            margin-bottom: 5px;
            text-align: center;
        ">
            {{#if: {{{7|}}} | [[{{{7}}}|{{{1}}}]] | {{{1}}} }}
        </h2>
 
        <!-- Main Article Content -->
        <div class="box-text" style="font-size: 1em; color: #000;">
            {{{2}}}
        </div>
 
        <!-- Show/Hide Toggle Button (If Collapsible) -->
        {{#if:{{{collapse|}}}|
        <div style="text-align: center; margin-top: 5px;">
            <span style="font-size: 1rem; color: #4d97ff; cursor: pointer;" class="mw-customtoggle-{{{collapseid|wikiframe}}}">
                {{{collapsetext|إظهار/إخفاء}}}
            </span>
        </div>}}
 
    </div>
</div>
</div>


<!-- Original Code Below -->
<div class="box" style="
width: {{{3|100%}}};
height: {{{4}}};
float: {{{5}}};
margin-bottom: {{#if:{{{8|}}}|0|20px}};
{{#if:{{{8|}}}|position: fixed;
{{{8}}}<!--if 8th parameter, add it to fixed positioning-->}}
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;
font-size: 1.5em;
"><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>}}
</div><div {{#if:{{{collapse|}}}|id="mw-customcollapsible-{{{collapseid|wikiframe}}}" class|class}}="{{#if:{{{collapse|}}}|box-content {{{collapse}}} mw-collapsible|box-content}}" style="
padding: 5px;
"><!--
-->{{{2}}}
</div></div>
<noinclude>{{/doc}}[[Category:Templates]]</noinclude>
<noinclude>{{/doc}}[[Category:Templates]]</noinclude>

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

   📰 مقالة مختارة
{{{1}}}
{{{2}}}

قالب:شكل موسوعة/doc