Template:Article: Difference between revisions

From WikiMSK

No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<noinclude>{{#template_params:name (label=Name)
{{infobox begin|class=contributors}}
|quality(label=quality)
{{infobox section
|notice(label=notice)
|[[Property:Authors|Original article contributed by]]:
|{{#if: {{{Authors|}}}
  |{{#arraymap:{{{Authors|}}}
    |,
    |xyz
    |{{#set:Authors=User:xyz}}[[User:xyz|{{#ask: [[User:xyz]] |?Has user name=|mainlabel=-|default=xyz|limit=1|searchlabel=}}]]
    |,&thinsp; 
  }}
  |<small>[{{fullurl:{{FULLPAGENAME}}|action=formedit}} add]</small>
}}
}}
}}
</noinclude><includeonly>{{#if:{{{quality|}}}|{{{{{quality}}}}}}}{{#if:{{{notice|}}}|{{{{{notice}}}}}}}</includeonly><includeonly>[[Category:General Articles]]</includeonly>
{{infobox section
<noinclude>
|Additional contributors
== Articles using Template ==
|{{#if: {{{Additional contributors|}}}
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages}}
  |{{#arraymap:{{{Additional contributors|}}}
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}
    |,
</noinclude>
    |xyz
    |{{#set:Additional contributor=User:xyz}}[[User:xyz|{{#ask: [[User:xyz]] |?Has user name=|mainlabel=-|default=xyz|limit=1|searchlabel=}}]]
    |,&thinsp; 
  }}
}}
}}
{{infobox section
|Peer reviewer:
| {{#if:{{{Assigned editor|}}}|{{#if:{{#ask:
[[{{#arraymap:{{{Category|}}}|,|XXX|Portal:XXX|{{!}}{{!}}}}]]
[[Portal member::{{#arraymap:{{{Assigned editor|}}}|,|XXX|User:XXX|{{!}}{{!}}}}]]
}}|
{{#set:Has assigned editor=true}}|
{{#set:Has assigned editor=false}}
}}
{{#arraymap:{{{Assigned editor|}}}|,|x|{{#set:Assigned editor=User:x|Assigned to=User:x}}{{UserLookup|x}}|,&#32;}}
|{{#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}}
<div style="display:none;">
{| cellspacing="5"
|-!align="right" |'''[[Property:Lead Editors|Lead Editors]]:'''
|{{#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>

Latest revision as of 21:15, 17 April 2022

This is the "Article" template.

It should be called in the following format:

{{Article
|name=
|quality=
|notice=
}}

Edit the page to see the template text.


Articles using Template