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

از ویکی داد
پرش به ناوبری پرش به جستجو
بدون خلاصۀ ویرایش
بدون خلاصۀ ویرایش
خط ۱: خط ۱:
<noinclude>
<noinclude>


این الگو برای ثبت و نمایش شناسنامه ساختاری مواد قوانین استفاده می‌شود.
# الگو:نمایش نسخه ماده
 
{{#cargo_declare:
_table=WDArticleMetadata
|قانون=Page
|شماره_ماده=Integer
|وضعیت=String
|تاریخ_تصویب=Date
|تاریخ_آخرین_اصلاح=Date
|موضوع=String
|سابقه_تقنینی=String
|مبنای_آخرین_اصلاح=Page
|یادداشت=Wikitext
}}


</noinclude>
</noinclude>
خط ۲۰: خط ۷:
<includeonly>
<includeonly>


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


</div>
<div class="wd-version-toggle"
    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;">


<div class="wd-article-metadata"
<span class="wd-version-toggle-icon"
    style="direction:rtl; text-align:right; margin:14px 0 20px; padding:0; border:1px solid #dfe7e5; border-radius:9px; overflow:hidden; background:#ffffff;">
      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 class="wd-version-toggle-label"
      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>


<div style="display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding:10px 14px; background:#f3f7f5;">
</div>


<div style="font-size:14px; font-weight:800; color:#245b55; white-space:nowrap;">
شناسنامه ماده
</div>
</div>




<div style="font-size:12px; color:#71807c; white-space:nowrap;">
<div style="padding:8px 12px;">
وضعیت:
 
<strong style="color:#28706a;">
{{#ifeq:{{{نسخه|}}}|1|
{{{وضعیت|}}}
</strong>
</div>


<div style="font-size:12px; line-height:1.9; color:#60706c;">


<div style="font-size:12px; color:#71807c; white-space:nowrap;">
تاریخ تصویب:
تاریخ تصویب:
<strong style="color:#405b56;">
<strong style="color:#405b56;">
{{{تاریخ تصویب|}}}
{{{تاریخ شروع|}}}
</strong>
</strong>
</div>
</div>


|


{{#if:{{{تاریخ آخرین اصلاح|}}}|
<div style="font-size:12px; line-height:1.9; color:#60706c;">


<div style="font-size:12px; color:#71807c; white-space:nowrap;">
سند اصلاح:
آخرین اصلاح:
<strong style="color:#405b56;">
<strong style="color:#405b56;">
{{{تاریخ آخرین اصلاح}}}
{{{مبنای اصلاح|}}}
</strong>
</strong>
</div>


{{#if:{{{تاریخ اصلاح|}}}|
<span style="margin-right:10px;">
— تاریخ تصویب:
<strong style="color:#405b56;">
{{{تاریخ اصلاح}}}
</strong>
</span>
}}
}}


{{#if:{{{مبنای آخرین اصلاح|}}}|
<div style="font-size:12px; color:#71807c; white-space:nowrap;">
مبنای اصلاح:
<strong style="color:#405b56;">
{{{مبنای آخرین اصلاح}}}
</strong>
</div>
</div>


}}
}}


</div>


{{#if:{{{توضیح تغییر|}}}|


{{#ifeq:{{{سابقه تقنینی|}}}|دارد|
<div style="margin-top:6px; font-size:12px; line-height:1.9; color:#687773;">
{{{توضیح تغییر}}}
</div>


<div style="padding:10px 14px; background:#fafcfb; border-top:1px solid #e6ece9;">
|}}


<div style="font-size:12px; color:#687773; margin-bottom:8px; font-weight:700;">
سابقه تقنینی
</div>
</div>




{{#cargo_query:
<div class="wd-version-text"
tables=WDArticleVersions
    style="display:none; padding:12px; border-top:1px solid #e7ecea; background:#fffdf8;">
|fields=نسخه=نسخه,وضعیت=وضعیت,تاریخ_شروع=تاریخ_شروع,تاریخ_پایان=تاریخ_پایان,تاریخ_اصلاح=تاریخ_اصلاح,مبنای_اصلاح=مبنای_اصلاح,متن=متن,توضیح_تغییر=توضیح_تغییر,منبع=منبع
|where=WDArticleVersions.قانون='{{{قانون|}}}' AND WDArticleVersions.شماره_ماده={{{شماره ماده|0}}}
|order by=WDArticleVersions.نسخه ASC
|format=template
|template=نمایش نسخه ماده
|named args=yes
|delimiter=
}}
 


<div style="font-size:15px; line-height:2.15; color:#263238;">
{{{متن|}}}
</div>
</div>


|}}
{{#if:{{{منبع|}}}|


<div style="margin-top:9px; padding-top:8px; border-top:1px solid #e7ecea; font-size:12px; color:#607d8b;">


{{#if:{{{یادداشت|}}}|
<strong>منبع:</strong>
 
[{{{منبع}}} مشاهده منبع]
<div style="padding:8px 14px; border-top:1px solid #edf1ef; font-size:12px; line-height:1.9; color:#52615e;">
 
<strong>یادداشت:</strong>
{{{یادداشت}}}


</div>
</div>
خط ۱۲۴: خط ۱۰۵:
|}}
|}}


</div>


</div>
</div>


</includeonly>
</includeonly>

نسخهٔ ۱۳ سپتامبر ۲۰۲۶، ساعت ۱۵:۴۰


  1. الگو:نمایش نسخه ماده