الگو:شناسنامه ماده: تفاوت میان نسخه‌ها

از ویکی داد
پرش به ناوبری پرش به جستجو
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
 
(۱۲ نسخهٔ میانیِ ایجادشده توسط همین کاربر نشان داده نشد)
خط ۱: خط ۱:
<noinclude>
<noinclude>
این الگو برای نمایش شناسنامه ماده و سابقه تقنینی آن استفاده می‌شود.
</noinclude><includeonly>


# الگو:نمایش نسخه ماده
<div class="wd-article-identity-card"
style="direction:rtl;text-align:right;margin:10px 0;padding:8px 12px;border:1px solid #dfe7e5;border-radius:8px;background:#fff;">


</noinclude>
<div style="display:flex;flex-wrap:wrap;align-items:center;gap:18px;font-size:13px;line-height:2;">


<includeonly>
<span>
<strong>وضعیت:</strong>
{{{وضعیت|}}}
</span>


<div class="wd-version-history-card"
{{#if:{{{تاریخ تصویب|}}}|
    style="direction:rtl; text-align:right; margin:8px 0; padding:0; border:1px solid #dfe7e5; border-radius:8px; overflow:hidden; background:#ffffff;">
<span>
 
<strong>تاریخ تصویب:</strong>
<div style="display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; background:#f5f8f7; border-bottom:1px solid #e3eae7;">
{{{تاریخ تصویب|}}}
 
</span>
<div style="font-size:13px; line-height:1.9; color:#405b56;">
 
{{#ifeq:{{{نسخه|}}}|1|
<strong>متن مصوب اولیه</strong>
|
<strong>اصلاحیه</strong>
}}
}}


</div>
{{#if:{{{تاریخ آخرین اصلاح|}}}|
 
<span>
<div class="wd-version-toggle"
<strong>آخرین اصلاح:</strong>
    style="display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:5px !important; box-sizing:border-box !important; padding:5px 10px !important; margin:0 !important; border:1px solid #cbdad5 !important; border-radius:6px !important; background:#ffffff !important; color:#176c88 !important; font-size:11px !important; font-weight:bold !important; cursor:pointer !important; user-select:none !important; white-space:nowrap !important; line-height:1.5 !important; text-decoration:none !important; vertical-align:middle !important;">
{{{تاریخ آخرین اصلاح|}}}
 
<span class="wd-version-toggle-icon"
      style="display:inline-block !important; margin:0 !important; padding:0 !important; color:#176c88 !important; font-size:13px !important; font-weight:bold !important; line-height:1 !important;">
+
</span>
</span>
}}


<span class="wd-version-toggle-label"
{{#if:{{{مبنای آخرین اصلاح|}}}|
      style="display:inline-block !important; margin:0 !important; padding:0 !important; color:#176c88 !important; font-size:11px !important; font-weight:bold !important; line-height:1.5 !important; white-space:nowrap !important;">
<span>
مشاهده متن
<strong>مبنای اصلاح:</strong>
{{{مبنای آخرین اصلاح|}}}
</span>
</span>
}}


</div>
</div>


</div>
{{#ifeq:{{{سابقه تقنینی|}}}|دارد|


<div style="margin-top:8px;padding-top:8px;border-top:1px solid #e7ecea;">


<div style="padding:8px 12px;">
<div style="font-size:13px;font-weight:bold;color:#405b56;margin-bottom:8px;">
 
سابقه تقنینی
{{#ifeq:{{{نسخه|}}}|1|
 
<div style="font-size:12px; line-height:1.9; color:#60706c;">
 
تاریخ تصویب:
<strong style="color:#405b56;">
{{{تاریخ شروع|}}}
</strong>
 
</div>
</div>


|
{{#cargo_query:
 
tables=WDArticleVersions
<div style="font-size:12px; line-height:1.9; color:#60706c;">
|fields=نسخه=نسخه,وضعیت=وضعیت,تاریخ_شروع=تاریخ_شروع,تاریخ_پایان=تاریخ_پایان,تاریخ_اصلاح=تاریخ_اصلاح,مبنای_اصلاح=مبنای_اصلاح,متن=متن,توضیح_تغییر=توضیح_تغییر,منبع=منبع
 
|where=WDArticleVersions.قانون='{{{قانون|}}}' AND WDArticleVersions.شماره_ماده={{{شماره ماده|}}}
سند اصلاح:
|order by=نسخه ASC
<strong style="color:#405b56;">
|format=template
{{{مبنای اصلاح|}}}
|template=نمایش نسخه ماده
</strong>
|named args=yes
 
|limit=50
{{#if:{{{تاریخ اصلاح|}}}|
<span style="margin-right:10px;">
— تاریخ تصویب:
<strong style="color:#405b56;">
{{{تاریخ اصلاح}}}
</strong>
</span>
}}
}}


خط ۷۴: خط ۵۸:


}}
}}
{{#if:{{{توضیح تغییر|}}}|
<div style="margin-top:6px; font-size:12px; line-height:1.9; color:#687773;">
{{{توضیح تغییر}}}
</div>
|}}
</div>
<div class="wd-version-text"
    style="display:none; padding:12px; border-top:1px solid #e7ecea; background:#fffdf8;">
<div style="font-size:15px; line-height:2.15; color:#263238;">
{{{متن|}}}
</div>
{{#if:{{{منبع|}}}|
<div style="margin-top:9px; padding-top:8px; border-top:1px solid #e7ecea; font-size:12px; color:#607d8b;">
<strong>منبع:</strong>
[{{{منبع}}} مشاهده منبع]
</div>
|}}
</div>


</div>
</div>


</includeonly>
</includeonly>

نسخهٔ کنونی تا ۱۳ سپتامبر ۲۰۲۶، ساعت ۱۶:۳۷

این الگو برای نمایش شناسنامه ماده و سابقه تقنینی آن استفاده می‌شود.