الگو:شناسنامه ماده: تفاوت میان نسخهها
پرش به ناوبری
پرش به جستجو
بدون خلاصۀ ویرایش |
بدون خلاصۀ ویرایش |
||
| خط ۱: | خط ۱: | ||
<noinclude> | <noinclude> | ||
# | این الگو برای ثبت و نمایش شناسنامه ساختاری مواد قوانین استفاده میشود. | ||
{{#cargo_declare: | |||
_table=WDArticleMetadata | |||
|قانون=Page | |||
|شماره_ماده=Integer | |||
|وضعیت=String | |||
|تاریخ_تصویب=Date | |||
|تاریخ_آخرین_اصلاح=Date | |||
|موضوع=String | |||
|سابقه_تقنینی=String | |||
|مبنای_آخرین_اصلاح=Page | |||
|یادداشت=Wikitext | |||
}} | |||
</noinclude> | </noinclude> | ||
| خط ۷: | خط ۲۰: | ||
<includeonly> | <includeonly> | ||
{{#cargo_store: | |||
_table=WDArticleMetadata | |||
|قانون={{{قانون|}}} | |||
|شماره_ماده={{{شماره ماده|}}} | |||
|وضعیت={{{وضعیت|}}} | |||
|تاریخ_تصویب={{{تاریخ تصویب|}}} | |||
|تاریخ_آخرین_اصلاح={{{تاریخ آخرین اصلاح|}}} | |||
|موضوع={{{موضوع|}}} | |||
|سابقه_تقنینی={{{سابقه تقنینی|}}} | |||
|مبنای_آخرین_اصلاح={{{مبنای آخرین اصلاح|}}} | |||
|یادداشت={{{یادداشت|}}} | |||
}} | |||
<div style=" | <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="display:flex; align-items:center; gap:20px; flex-wrap:wrap; padding:10px 14px; background:#f3f7f5;"> | |||
<div style="font-size:14px; font-weight:800; color:#245b55; white-space:nowrap;"> | |||
شناسنامه ماده | |||
</div> | </div> | ||
<div | <div style="font-size:12px; color:#71807c; white-space:nowrap;"> | ||
وضعیت: | |||
<strong style="color:#28706a;"> | |||
{{{وضعیت|}}} | |||
</strong> | |||
< | |||
</ | |||
</div> | </div> | ||
<div style="font-size:12px; color:#71807c; white-space:nowrap;"> | |||
تاریخ تصویب: | |||
<strong style="color:#405b56;"> | |||
{{{تاریخ تصویب|}}} | |||
</strong> | |||
</div> | </div> | ||
{{#if:{{{تاریخ آخرین اصلاح|}}}| | |||
<div style="font-size:12px; color:#71807c; white-space:nowrap;"> | |||
آخرین اصلاح: | |||
<div style="font-size:12px; | |||
<strong style="color:#405b56;"> | <strong style="color:#405b56;"> | ||
{{{تاریخ | {{{تاریخ آخرین اصلاح}}} | ||
</strong> | </strong> | ||
</div> | </div> | ||
| | |}} | ||
{{#if:{{{مبنای آخرین اصلاح|}}}| | |||
<div style="font-size:12px; color:#71807c; white-space:nowrap;"> | |||
مبنای اصلاح: | |||
<strong style="color:#405b56;"> | <strong style="color:#405b56;"> | ||
{{{مبنای اصلاح | {{{مبنای آخرین اصلاح}}} | ||
</strong> | </strong> | ||
</div> | |||
|}} | |||
}} | |||
</div> | </div> | ||
<!-- سابقه تقنینی --> | |||
{{#ifeq:{{{سابقه تقنینی|}}}|دارد| | |||
<div style="padding:10px 14px; background:#fafcfb; border-top:1px solid #e6ece9;"> | |||
<div style=" | <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> | ||
|}} | |||
< | <!-- یادداشت --> | ||
{{#if:{{{ | {{#if:{{{یادداشت|}}}| | ||
<div style=" | <div style="padding:8px 14px; border-top:1px solid #edf1ef; font-size:12px; line-height:1.9; color:#52615e;"> | ||
<strong> | <strong>یادداشت:</strong> | ||
{{{یادداشت}}} | |||
</div> | </div> | ||
|}} | |}} | ||
</div> | </div> | ||
</includeonly> | </includeonly> | ||
نسخهٔ ۱۳ سپتامبر ۲۰۲۶، ساعت ۱۵:۴۲
این الگو برای ثبت و نمایش شناسنامه ساختاری مواد قوانین استفاده میشود.
این الگو جدول «WDArticleMetadata» را تعریف میکند. این جدول، هنوز ایجاد نشده است.