User:Alexis Jazz/Factotum/modules/SeeAlso.js

if ( typeof window.FTTModules == 'undefined' ) { window.FTTModules=[]; } window.FTTModules.push({'load':['afterOpenForm'],'buttonLabel':'SEE ALSO','buttonFunc':function{	mw.loader.using(['oojs-ui-core','oojs-ui-windows']).then(function{ OO.ui.alert(new OO.ui.HtmlSnippet(FTT.MD.seeAlso.HTML),{size:'large'}).done( function {		}); }); }}, {'load':['afterOpenForm'],'afterOpenFormFunc':function(saInt){ FTT.MD.seeAlso = {}; //nicked from Template:Done/See also, CC BY-SA 3.0 FTT.MD.seeAlso.GreenCheck = '  Resolved   \n  Implemented   \n  Partially implemented  \n  Resolved   \n <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/20px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/30px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/40px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="20" height="21"> Accepted  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/20px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/30px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/40px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="20" height="21"> Agree  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/20px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/30px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/40px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="20" height="21"> Approved  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/20px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/30px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/40px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="20" height="21"> Checked  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/20px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/30px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/40px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="20" height="21"> Verified   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="Conditional yes" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/05/Yes_check_lines.svg/20px-Yes_check_lines.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/05/Yes_check_lines.svg/30px-Yes_check_lines.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/05/Yes_check_lines.svg/40px-Yes_check_lines.svg.png 2x" data-file-width="600" data-file-height="600" width="20" height="20"> CY   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/16px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/24px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/32px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="16" height="16"> Confirmed  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/16px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/24px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/32px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="16" height="16"> Confirmed with respect to the named user(s). <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/16px-Symbol_oppose_vote.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/24px-Symbol_oppose_vote.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Symbol_oppose_vote.svg/32px-Symbol_oppose_vote.svg.png 2x" data-file-width="180" data-file-height="185" width="16" height="16"> No comment with respect to IP address(es). \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/16px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/24px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/32px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="16" height="16"> Technically </b>indistinguishable \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Art%C3%ADculo_bueno-blue.svg/16px-Art%C3%ADculo_bueno-blue.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Art%C3%ADculo_bueno-blue.svg/24px-Art%C3%ADculo_bueno-blue.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/c4/Art%C3%ADculo_bueno-blue.svg/32px-Art%C3%ADculo_bueno-blue.svg.png 2x" data-file-width="180" data-file-height="185" width="16" height="16"> '''Blocked and tagged. Closing. \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="check" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/30px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/40px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="20" height="20"> Y   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/30px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/40px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="20" height="20"> Helped  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="18" height="18"> Done   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="18" height="18"> <a href="/wiki/User:Example" title="User:Example">Done</a>   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="18" height="18"> Task complete.   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="18" height="18"> Done''' – as a contested <a href="/wiki/Wikipedia:PROD" class="mw-redirect" title="Wikipedia:PROD">proposed deletion</a>, the article has been restored on request. \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/30px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/40px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="20" height="20"> Answered on user\'s talk page. \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/20px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/30px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/40px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="20" height="20"> Responded at the appropriate venue.  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="18" height="18"> Sure!   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/commons/thumb/5/52/Merge-arrows.svg/32px-Merge-arrows.svg.png" decoding="async" title="Merge arrows" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/5/52/Merge-arrows.svg/48px-Merge-arrows.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/5/52/Merge-arrows.svg/64px-Merge-arrows.svg.png 2x" data-file-width="50" data-file-height="20" width="32" height="13">  <img alt="check" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/18px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/27px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/36px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="18" height="18"> Y <a href="/wiki/Wikipedia:Merging" title="Wikipedia:Merging">Merger</a> complete.  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> ✓   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> ✓ Pass  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="Green tick" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/13px-Green_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/20px-Green_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/03/Green_check.svg/26px-Green_check.svg.png 2x" data-file-width="600" data-file-height="600" width="13" height="13"> Y   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="" src="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/11px-Yes_check.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/17px-Yes_check.svg.png 1.5x, //upload.wikimedia.org/wikipedia/en/thumb/f/fb/Yes_check.svg/22px-Yes_check.svg.png 2x" data-file-width="600" data-file-height="600" width="11" height="11"> Yes  \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> ✓   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="Green checkmark" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/20px-Symbol_confirmed.svg.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/30px-Symbol_confirmed.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/41/Symbol_confirmed.svg/40px-Symbol_confirmed.svg.png 2x" data-file-width="180" data-file-height="185" width="20" height="21"> Y   \n<tr style="vertical-align:top"><td style="width:11.0em;padding-left:0.9em;padding-right:0.6em;"> <img alt="Gray check mark" src="//upload.wikimedia.org/wikipedia/commons/thumb/1/16/Symbol_confirmed_gray.png/20px-Symbol_confirmed_gray.png" decoding="async" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/1/16/Symbol_confirmed_gray.png/30px-Symbol_confirmed_gray.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/1/16/Symbol_confirmed_gray.png/40px-Symbol_confirmed_gray.png 2x" data-file-width="996" data-file-height="1024" width="20" height="21"> Yg   '.split(/\n/);

/*templates = [] for(i=0;i<$('td code').length;i++){ templates.push($('td code')[i].innerText.replace(/[\{\}]/g,'')); }*/ FTT.MD.seeAlso.GreenCheckTemplates = ['Resolved mark large','Implemented','PImplemented','Resolved mark','Accepted','Agree','Approved','Checked2','Verified','Conditional yes','Confirmed','Confirmed-nc','Tallyho','Blockedtaggedclosing','Tick','Helped','Done','DoneU','Donetask','Unprod','Autp','Responded','Sure','Merge done','Marked','Pass','Aye','Yes check','Y&','Yeac','Yeag'];

FTT.MD.seeAlso.HTML = ' <tr style="vertical-align:top"><td style="padding-left:none;"> Green check marks  ';

for (saInt=0;saInt<FTT.MD.seeAlso.GreenCheck.length;saInt++){

FTT.MD.seeAlso.HTML = FTT.MD.seeAlso.HTML + FTT.MD.seeAlso.GreenCheck[saInt].replace(/<tr /,'<tr onclick="FTT.UITextInput.encapsulateContent(\'\',\'\');$(\'.oo-ui-window-frame .oo-ui-buttonElement-button:eq(0)\')[0].click;" '); } } } );