Wikia

Community Central

Admin Forum:Redesigning the Delete template

18,696pages on
this wiki
Talk0

This Forum has been archived

Forums: Admin Central Index Technical Help Redesigning the Delete template
Wikia's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.


We have decided to modify our {{Delete}} template and adopt wikiHow's deletion policy, which uses three-letter codes instead of manually typing a reason (i.e. {{nfd|abc}}). You can read about it here. Currently, our wiki uses {{Delete|Type reason here}}. Being an active editor at wikiHow, I've gotten community manager's permission to emulate their template.

However, I am not good at advanced syntax, especially when it comes to templates. How can I write the code so that the original message, "This article has been nominated for deletion. This reason for this is:" stays, but the three-letter code is the parameter that changes? Basically, for us, one exmaple would be {{Delete|ppp}}, which would make "This article has been nominated for deletion. The reason for this is: Personal player pages are not allowed."

Thanks! :) --Immunizations (talk) (contribs) (Habbo page) 03:41, May 30, 2012 (UTC)

Hi. In my example I've written in another parser function into the delete template. So the norm is: {{#if: {{{1|}}}|<nowiki/><br> The reason given is: {{{1}}}.|}}. Whereas I've changed this too: {{#if:{{{1|}}}|{{#ifeq: {{{1}}}|ppp|<nowiki/><br> The reason given is: Personal player pages are not allowed.|}}|}}. The #ifeq: function compares the input parameter {{{1|}}} with "ppp". If they are the same then it will display your wanted text. If they are different then it won't. Feel free to reply if you don't follow my poor explanation. Here's the whole thing if you would like to see it in the code:
<div name="Deletion notice" class="boilerplate metadata" id="delete" style="background-color: #fee; margin: 0 1em; padding: 0 10px; border: 1px solid #aaa;">
'''This page is a [[Project:Candidates for speedy deletion|candidate for speedy deletion]].{{#ifexist:{{TALKPAGENAME}}|<nowiki/> There may be discussion about this deletion at [[{{TALKPAGENAME}}|the talk page]].|}}'''{{#if:{{{1|}}}|{{#ifeq: {{{1}}}|ppp|<nowiki/><br> The reason given is: Personal player pages are not allowed.|}}|}}

If you disagree with its speedy deletion, please explain why at [[Category talk:Candidates for speedy deletion]] or improve the page and remove the <code>{{Delete}}</code> tag.

Remember to check [[Special:Whatlinkshere/{{NAMESPACE}}:{{PAGENAME}}|what links here]] and [{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=history}} the page history] before deleting.
</div>
STARFLEET ACADEMY 07:48, May 30, 2012 (UTC)
PS Oh and could you link to your wiki please? so I can give a more tailored answer if need be. :) STARFLEET ACADEMY 07:52, May 30, 2012 (UTC)
Thank you. I will try the code out once I get onto a proper computer. The link to my wiki is habbo.wikia.com with the Delete template at Template:Delete. You could also send a message to Imdill3, our techie. --Immunizations (talk) (contribs) (Habbo page) 14:30, May 30, 2012 (UTC)
Okay, this topic is moving to the wiki itself.
@Immunizations: I've created a new version. It's here on w:c:Habbo:Template talk:D. I've sent you a message on Habbo Wiki as well. Talk soon STARFLEET ACADEMY 07:14, May 31, 2012 (UTC)

Around Wikia's network

Random Wiki