Open main menu

Editprotected requestEdit

{{editprotected}} Please use the new #safesubst:, as so:

{| class="messagebox plainlinks user-block" style="margin-left:0; padding:5px; background:#F9F9F9; {{{CSS-box|}}}"
| {{<includeonly>#safesubst:</includeonly>#ifeq:{{{image}}}|none||[[{{{image|File:Stop x nuvola.svg}}}|50px]]}}
| {{{msg}}}
|}

The ParserFunction will be substed when this template is substed, and will remain the same when this template is transcluded. MC10 (TCEM) 04:30, 9 November 2010 (UTC)

Tried it, and that seems to have broken the template (substituting produced an extraneous "none}}" and transclusion simply pasted the template code with "subst:"). Could you test the code in a sandbox first? Jafeluv 10:03, 9 November 2010 (UTC)
Now it should work. I have created Template:Warning message/sandbox and Template:Warning message/testcases. I put an extra # in front of safesubst; it should just be safesubst:, not #safesubst:. The following code should work:
{| class="messagebox plainlinks user-block" style="margin-left:0; padding:5px; background:#F9F9F9; {{{CSS-box|}}}"
| {{<includeonly>safesubst:</includeonly>#ifeq:{{{image}}}|none||[[{{{image|File:Stop x nuvola.svg}}}|50px]]}}
| {{{msg}}}
|}
Cheers, MC10 (TCEM) 03:26, 16 November 2010 (UTC)
  Done Jafeluv 09:46, 16 November 2010 (UTC)

Editprotected requestEdit

{{editprotected}} Is there any way to center this and other templates, ala the rest of the Wikimedia projects? Maybe I've missed something, but it would probably be good to have it look more like other WMF sites when we template things. Kevin Rutherford (talk) 07:41, 23 February 2016 (UTC)

Never liked so much the current design. Have any ideas in mind? Template:Warning message/sandbox. Best regards, —MarcoAurelio 15:36, 25 February 2016 (UTC)
@MarcoAurelio: Maybe using Template:Mbox as a base would work, ala this example on the English Wikipedia. Kevin Rutherford (talk) 15:43, 14 March 2016 (UTC)
Return to "Warning message" page.