Template:Canvassed and Template:Canvassed/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
Doggy54321 (talk | contribs) Full link Tags: Mobile edit Mobile web edit Advanced mobile edit |
Drop one break; minor doc tweak. |
||
Line 1: | Line 1: | ||
<onlyinclude><small>— '''Note''': An editor has expressed a concern that <!-- |
|||
<onlyinclude><small>— '''Note''': An editor has expressed a concern that {{{{{|safesubst:}}}#if:{{{1|}}}|[[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]] • [[Special:Contributions/{{{1}}}|contribs]]) has|editors have}} been [[Wikipedia:Canvassing|canvassed]] to this discussion. {{{{{|safesubst:}}}#if:{{{2|}}}|({{{{{|safesubst:}}}#if:{{{3|}}}|diffs: }}[{{{2}}} {{{{{|safesubst:}}}#if:{{{3|}}}||diff}}]{{{{{|safesubst:}}}#if:{{{3|}}}||)}}|}}{{{{{|safesubst:}}}#if:{{{3|}}}|, [{{{3}}}]|}}{{{{{|safesubst:}}}#if:{{{4|}}}|, [{{{4}}}]|}}{{{{{|safesubst:}}}#if:{{{5|}}}|, [{{{5}}}]|}}{{{{{|safesubst:}}}#if:{{{6|}}}|, [{{{6}}}]|}}{{{{{|safesubst:}}}#if:{{{7|}}}|, [{{{7}}}]|}}{{{{{|safesubst:}}}#if:{{{8|}}}|, [{{{8}}}]|}}{{{{{|safesubst:}}}#if:{{{9|}}}|, [{{{9}}}]|}}{{{{{|safesubst:}}}#if:{{{3|}}}|)}}</small></onlyinclude><noinclude> |
|||
-->{{#if:{{{1|}}}|[[User:{{{1}}}|{{{1}}}]] ([[User talk:{{{1}}}|talk]] • [[Special:Contributions/{{{1}}}|contribs]]) has|editors have}} been [[Wikipedia:Canvassing|canvassed]] to this discussion. <!-- |
|||
-->{{#if:{{{2|}}}| <!-- Do we have at least one diff arg (i.e., arg2)? |
|||
-->({{#if:{{{3|}}}| <!-- YES: emit left paren. Check for more: Are there at least two diff args? |
|||
--> diffs: <!-- YES: emit 'diffs: ' label (w colon and blank) as prefix to all further diffs (which will be in comma-series) |
|||
-->}}<!-- END Are there are at least two diff args. |
|||
-->[{{{2}}} <!-- Begin linking the 1st diff arg (ie. arg 2); emit left bracket + full diff url + mandatory space |
|||
-->{{#if:{{{3|}}}||diff}}]<!-- complete the link: If 2 is alone then link it w anchor diff. (not alone: no anchor will emit '[1]⭜', '[2]⭜', etc.) |
|||
-->{{#if:{{{3|}}}||)}}|<!-- If no arg3, then arg 2 is the last (only) one, so emit right paren. All remaining ifs below will fail and we are done. |
|||
-->}}<!-- END do we have at least one diff arg. We might have emitted an unclosed left paren by this point if arg2 exists; closure still pending. |
|||
-->{{#if:{{{3|}}}|, [{{{3}}}]|}}<!-- if arg 3 exists, emit comma after arg 2, a space, and the diff link for arg 3. |
|||
-->{{#if:{{{4|}}}|, [{{{4}}}]|}}<!-- if arg N exists, emit comma after arg N-1, a space, and the diff link for arg N (for N in 4..9) |
|||
-->{{#if:{{{5|}}}|, [{{{5}}}]|}}<!-- |
|||
-->{{#if:{{{6|}}}|, [{{{6}}}]|}}<!-- |
|||
-->{{#if:{{{7|}}}|, [{{{7}}}]|}}<!-- |
|||
-->{{#if:{{{8|}}}|, [{{{8}}}]|}}<!-- |
|||
-->{{#if:{{{9|}}}|, [{{{9}}}]|}}<!-- Emit arg 9 diff link, if needed. And we still might be in an unclosed left paren situation. |
|||
-->{{#if:{{{3|}}}|)}}<!-- If there are at least two diff links (arg3 exists) then emit a right paren to close the diffs series. |
|||
--></small></onlyinclude><noinclude> |
|||
{{Documentation}} |
{{Documentation}} |
||
<!-- Add categories and interwikis to the /doc subpage, not here! --> |
<!-- Add categories and interwikis to the /doc subpage, not here! --> |