Wikia

Community Central

Admin Forum:Chat Ban template coding

18,702pages on
this wiki
Talk0

This Forum has been archived

Forums: Admin Central Index Technical Help Chat Ban template coding
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.
Note: This topic has been unedited for 1301 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.


Me and a couple of wikia friends made a wiki, and we need help with the chat ban template code. Can you please help us with this? Nobody rocks it the way that you do... (talk) 22:29, August 24, 2012 (UTC)

Can you post a link to the template and explain what you're trying to do? That way others know what you're looking for and can give some tips. 20px_Rin_Tohsaka_Avatar.png Mathmagician ƒ(♫) 22:57 UTC, Fri, 24 August 2012
I am trying to get create a Chat Ban template, and I need help with the coding that creates the box. That's the best as I can describe it. Link to the template:

http://annesther.wikia.com/wiki/Template:ChatBan

Nobody rocks it the way that you do... (talk) 23:22, August 24, 2012 (UTC)

What I'd do is write something similar to this:
<div style="border-radius:4px; border:2px solid red; padding:6px; background-color:lightsalmon">
<div style="font-size:2em; color:maroon; font-weight:bold; text-align:center">You have been blocked from the chat!</div>
<div>
<b>Reason</b>: {{{reason|}}}
<br />
<b>Duration</b>: {{{duration|}}}
<br />
{{{other|}}}
</div>
</div>
This, in turn, renders as:
You have been blocked from the chat!

Reason:
Duration:

When you add it to the template, you will be able to just write
{{ChatBlock
| reason   = reason
| duration = duration
| other    = optional
}}


And your text will be displayed as written. To change the title, just do it on the template. If you have further questions or design requests — this is most basic — feel free to say so. — MateyY • (wall) 23:51, August 24, 2012 (UTC)

Thank you so much! This really helped! :) Nobody rocks it the way that you do... (talk) 00:07, August 25, 2012 (UTC)

You're welcome. --— MateyY • (wall) 00:23, August 25, 2012 (UTC)
You might also consider altering the actual message they receive when accessing chat, as we did at tardis:MediaWiki:Chat-you-are-banned-text. czechout@Wikia    fly tardis  <span style="">00:03: Sun 26 Aug 2012 

Around Wikia's network

Random Wiki