Template:Article: Difference between revisions
From EyeWiki
(Set "Has assigned editor" to true if one of the assigned editors belongs to any of the categories' portal) |
(bug fix for empty Assigned editor field) |
||
Line 25: | Line 25: | ||
| {{#if:{{{Assigned editor|}}}|{{#arraymap:{{{Assigned editor|}}}|,|x|{{#set:Assigned editor=User:x|Assigned to=User:x}}{{UserLookup|x}}|, }}}}{{#if:{{#ask: | | {{#if:{{{Assigned editor|}}}|{{#arraymap:{{{Assigned editor|}}}|,|x|{{#set:Assigned editor=User:x|Assigned to=User:x}}{{UserLookup|x}}|, }}}}{{#if:{{#ask: | ||
[[{{#arraymap:{{{Category|}}}|,|XXX|Portal:XXX|{{!}}{{!}}}}]] | [[{{#arraymap:{{{Category|}}}|,|XXX|Portal:XXX|{{!}}{{!}}}}]] | ||
[[Portal member::{{#arraymap:{{{Assigned editor|}}}|,|XXX|User:XXX|{{!}}{{!}}}}]] | [[Portal member::{{#arraymap:{{{Assigned editor|NOBODY}}}|,|XXX|User:XXX|{{!}}{{!}}}}]] | ||
}}|{{#set:Has assigned editor=true}}|{{#set:Has assigned editor=false}}}} | }}|{{#set:Has assigned editor=true}}|{{#set:Has assigned editor=false}}}} | ||
}} | }} |
Revision as of 13:45, November 12, 2019