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

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


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


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


<div class="wd-version-history-card"
{{#cargo_store:
    style="direction:rtl; text-align:right; margin:8px 0; padding:0; border:1px solid #dfe7e5; border-radius:8px; overflow:hidden; background:#ffffff;">
_table=WDArticleMetadata
|قانون={{{قانون|}}}
|شماره_ماده={{{شماره ماده|}}}
|وضعیت={{{وضعیت|}}}
|تاریخ_تصویب={{{تاریخ تصویب|}}}
|تاریخ_آخرین_اصلاح={{{تاریخ آخرین اصلاح|}}}
|موضوع={{{موضوع|}}}
|سابقه_تقنینی={{{سابقه تقنینی|}}}
|مبنای_آخرین_اصلاح={{{مبنای آخرین اصلاح|}}}
|یادداشت={{{یادداشت|}}}
}}


<div style="display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 12px; background:#f5f8f7; border-bottom:1px solid #e3eae7;">
<div class="wd-article-metadata"
    style="direction:rtl; text-align:right; margin:14px 0 20px; padding:0; border:1px solid #dfe7e5; border-radius:9px; overflow:hidden; background:#ffffff;">


<div style="font-size:13px; line-height:1.9; color:#405b56;">
<!-- ردیف بالای شناسنامه -->


{{#ifeq:{{{نسخه|}}}|1|
<div style="display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding:10px 14px; background:#f3f7f5;">
<strong>متن مصوب اولیه</strong>
|
<strong>اصلاحیه</strong>
}}


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


<div class="wd-version-toggle"
<div style="font-size:12px; color:#71807c; white-space:nowrap;">
    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;">
وضعیت:
 
<strong style="color:#28706a;">
<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;">
</strong>
+
</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>
</div>


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


{{#if:{{{تاریخ آخرین اصلاح|}}}|


<div style="padding:8px 12px;">
<div style="font-size:12px; color:#71807c; white-space:nowrap;">
 
آخرین اصلاح:
{{#ifeq:{{{نسخه|}}}|1|
 
<div style="font-size:12px; line-height:1.9; color:#60706c;">
 
تاریخ تصویب:
<strong style="color:#405b56;">
<strong style="color:#405b56;">
{{{تاریخ شروع|}}}
{{{تاریخ آخرین اصلاح}}}
</strong>
</strong>
</div>
</div>


|
|}}


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


سند اصلاح:
<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>
}}


</div>
</div>


}}


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


{{#if:{{{توضیح تغییر|}}}|
<div style="padding:10px 14px; background:#fafcfb; border-top:1px solid #e6ece9;">


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


|}}
{{#cargo_query:
tables=WDArticleVersions
|fields=نسخه=نسخه,وضعیت=وضعیت,تاریخ_شروع=تاریخ_شروع,تاریخ_پایان=تاریخ_پایان,تاریخ_اصلاح=تاریخ_اصلاح,مبنای_اصلاح=مبنای_اصلاح,متن=متن,توضیح_تغییر=توضیح_تغییر,منبع=منبع
|where=WDArticleVersions.قانون='{{{قانون|}}}' AND WDArticleVersions.شماره_ماده={{{شماره ماده|0}}}
|order by=WDArticleVersions.نسخه ASC
|format=template
|template=نمایش نسخه ماده
|named args=yes
|delimiter=
}}


</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:{{{منبع|}}}|
{{#if:{{{یادداشت|}}}|


<div style="margin-top:9px; padding-top:8px; border-top:1px solid #e7ecea; font-size:12px; color:#607d8b;">
<div style="padding:8px 14px; border-top:1px solid #edf1ef; font-size:12px; line-height:1.9; color:#52615e;">


<strong>منبع:</strong>
<strong>یادداشت:</strong>
[{{{منبع}}} مشاهده منبع]
{{{یادداشت}}}


</div>
</div>


|}}
|}}
</div>


</div>
</div>


</includeonly>
</includeonly>

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


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

این الگو جدول «WDArticleMetadata» را تعریف می‌کند. این جدول، هنوز ایجاد نشده است.