Template:Article: Difference between revisions

From WikiMSK

No edit summary
No edit summary
Line 13: Line 13:
}}
}}
}}
}}
{{#if: {{{Additional contributors|
{{infobox section
{{infobox section
|Additional contributors
|Additional contributors
Line 24: Line 23:
   }}
   }}
}}
}}
}}|
}}
}}}
{{infobox section
{{infobox section
|Peer reviewer:
|Peer reviewer
| {{#if:{{{Assigned editor|}}}|{{#if:{{#ask:
|{{#if: {{{Assigned editor|}}}
[[{{#arraymap:{{{Category|}}}|,|XXX|Portal:XXX|{{!}}{{!}}}}]]
  |{{#arraymap:{{{Assigned editor|}}}
[[Portal member::{{#arraymap:{{{Assigned editor|}}}|,|XXX|User:XXX|{{!}}{{!}}}}]]
    |,
}}|
    |xyz
{{#set:Has assigned editor=true}}|
    |{{#set:Assigned editor=User:xyz}}[[User:xyz|{{#ask: [[User:xyz]] |?Has user name=|mainlabel=-|default=xyz|limit=1|searchlabel=}}]]
{{#set:Has assigned editor=false}}
    |,  
  }}
}}
}}
}}
{{#arraymap:{{{Assigned editor|}}}|,|x|{{#set:Assigned editor=User:x|Assigned to=User:x}}{{UserLookup|x}}|, }}
|{{#set:Has assigned editor=false}}}}}}<!--
<!-- set Review expriation date property:
-->{{#if:{{{Date reviewed}}}|{{#set:Has review=Yes}}{{#set:Review expiration date={{#timel: d F Y|{{{Date reviewed}}} + 6 months}}}}|{{#set:Has review=No}}}}<!--
--><!--
-->{{infobox section
|Review:
|Assigned status '''{{#if:{{Review expired|{{PAGENAME}}}}|[[Article status::Update Pending]]|[[Article status::{{{Article status|Update Pending}}}]]}}'''
}}<!--
--><!--
-->{{#if:{{{Reviewer|}}}
      |&nbsp;by {{#set:Reviewer=User:{{{Reviewer|}}}}}[[User:{{{Reviewer|}}}|{{#ask: [[User:{{{Reviewer|}}}]]|?Has user name=|mainlabel=-|default={{{Reviewer|}}}|limit=1|searchlabel=}}]] on [[Date reviewed::{{{Date reviewed|}}}|{{{Date reviewed|an unknown date}}}]]}}.
{{infobox end}}
{{infobox end}}
<div style="display:none;">
<div style="display:none;">
{| cellspacing="5"
[[Category:Articles]]{{#arraymap:{{{Category|}}}|,|xyz|[[Category:xyz]]{{#ifeq:{{{Article status|}}}|Update Pending|[[Category:xyz articles that need work]]}}|<nowiki> </nowiki>}}</div>
|-!align="right" |'''[[Property:Lead Editors|Lead Editors]]:'''
</includeonly>
|{{#if: {{{Lead Editors|}}}|{{#arraymap:{{{Lead Editors|}}}|,|xyz|{{#set:Lead Editors=User:xyz}}{{#ifexist: User:xyz | [[User:xyz|{{#ask: [[UserName::xyz]]|?Has user name=|mainlabel=-|}}]] | [[User:xyz]]}}}}|<small>[{{fullurl:{{FULLPAGENAME}}|action=formedit}} add]</small>}}
|-
!align="right" |'''[[Property:Contributing Editors|Contributing Editors]]:'''
|{{#if: {{{Contributing Editors|}}}|{{#arraymap:{{{Contributing Editors|}}}|,|xyz|{{#set:Contributing Editors=User:xyz}}{{#ifexist: User:xyz | [[User:xyz|{{#ask: [[UserName::xyz]]|?Has user name=|mainlabel=-|}}]] | [[User:xyz]]}}}}|<small>[{{fullurl:{{FULLPAGENAME}}|action=formedit}} add]</small>}}
|-
|}[[Category:Articles]]{{#arraymap:{{{Category|}}}|,|xyz|[[Category:xyz]]{{#ifeq:{{{Article status|}}}|Update Pending|[[Category:xyz articles that need work]]}}{{#set:Category={{{Category}}}}}|<nowiki> </nowiki>}}</div>
<div style="display:none;">
{{#if: {{{Authors|}}}||{{#set:Authors empty=yes}}}}
{{#if: {{{Category|}}}|[[Semantic Dependency::Portal:{{{Category}}}| ]]|{{#set:Category empty=yes}}}}
</div>
</div></includeonly>

Revision as of 18:04, 3 April 2022