On November 27th, 2022, the 8,000th article was added to the SuccuWiki!

Template talk:Tmbox: Difference between revisions

From SuccuWiki - The Wiki of the Succubi
Jump to navigation Jump to search
m (1 revision)
 
m (Replaced content with "Template talk:Tmbox")
 
Line 1: Line 1:
{{Message box standardisation}}
Template talk:Tmbox
 
* [[Wikipedia:Talk page templates]] – The (old) guideline specifying the styles for talk page message boxes.
* [[Template:Tmbox/styles]] – Shows the different suggestions for new styles for talk page message boxes. Has a [[Template talk:Tmbox/styles|special talk page]] to discuss the different designs.
 
{{User:MiszaBot/config
|archiveheader = {{talkarchivenav}}
|maxarchivesize = 100K
|counter = 3
|minthreadsleft = 7
|algo = old(21d)
|archive = Template talk:Tmbox/Archive %(counter)d
}}
{{AutoArchivingNotice
|small=yes
|age=21
|bot=MiszaBot II
}}
{{archive box|auto=long|search=yes}}
{{clearright}}{{shortcut|WT:TMBOX}}
 
== The default shade of "tan" ==
 
In case anyone else is looking for the color code for the default "tan" color, it is most likely #F8EABA.  Thanks to [[User:Spitfire]] for this.--[[User:Rockfang|Rockfang]] ([[User talk:Rockfang|talk]]) 15:51, 24 February 2010 (UTC)
 
== Using Tmbox itself as a template ==
 
[[:Template:Tmbox]] says that {{Tl|Tmbox}} is a meta-template, "used to build message box templates for talk pages, such as {{Tl|central}} etc."  But, is it okay to use {{Tl|Tmbox}} itself as a talk page message box template?  It seems very well suited for the creation of custom talk page message boxes:
{{Tmbox |text='''Notice:''' This is an example of a custom talk page message box created using <nowiki>{{Tmbox}}</nowiki>.}}
I'm guessing that the answer is "yes" and that people do it all the time, but I don't see this discussed in the template documentation.  Thanks. <font face="cursive">— [[User:Mudwater|Mudwater]]<small><sup> ([[User talk:Mudwater|Talk]])</sup></small></font> 20:10, 8 August 2010 (UTC)
 
:There's no technical reason not to, but Tmbox (and the other meta-templates) are really designed to create a uniform boilerplate for the wide range of system messages used on the project.  making a one-off message directly from Tmbox for use in a particular situation would be fine, but if it's something that deserves this kind of prominent display (and isn't already covered by a separate template) it probably ought to be constructed as separate template anyway.  I can add something to that effect to the docs, if you like. --[[User_talk:Ludwigs2|<span style="color:darkblue;font-weight:bold">Ludwigs</span><span style="color:green;font-weight:bold">2</span>]] 20:27, 8 August 2010 (UTC)
 
::It seems to me that there is sometimes a need for one-off talk page message boxes.  {{Tl|Tmbox}} is very well suited for that.  I would therefore suggest updating the documentation to say that it's also okay to use it to create such message boxes. <font face="cursive">— [[User:Mudwater|Mudwater]]<small><sup> ([[User talk:Mudwater|Talk]])</sup></small></font> 20:50, 8 August 2010 (UTC)
 
:::{{done}} --[[User_talk:Ludwigs2|<span style="color:darkblue;font-weight:bold">Ludwigs</span><span style="color:green;font-weight:bold">2</span>]] 21:49, 8 August 2010 (UTC)
 
::::Looks good.  Thanks. <font face="cursive">— [[User:Mudwater|Mudwater]]<small><sup> ([[User talk:Mudwater|Talk]])</sup></small></font> 23:26, 8 August 2010 (UTC)
 
I did tun into the [[Template:Notice]], I assume that it suits better for building message boxes for talk pages. Should we change this template back to a "meta-template" and encourige users to use Notice template instead? Opinions? --[[User:Kslotte|Kslotte]] ([[User talk:Kslotte|talk]]) 14:34, 13 September 2010 (UTC)
 
== making it official ==
 
Is the procedure to make a TMBOX official the same as infoboxes? I made a tmbox and posted it to [[P:lgbt]] but got no response about it in a week. Is it okay to just post a tmbox without discussion? Or where should I post it for concensus?  <small><span class="autosigned">—Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Kaotac|Kaotac]] ([[User talk:Kaotac|talk]] • [[Special:Contributions/Kaotac|contribs]]) 20:30, 15 August 2010 (UTC)</span></small><!-- Template:Unsigned --> <!--Autosigned by SineBot-->
 
== wikitable ==
 
Can you put wikitables in these? I can't get it to work, ie:
<nowiki>{{tmbox|small=yes|text=
{| class="wikitable"
|-
! Header 1
! Header 2
|-
| row 1, cell 1
| row 1, cell 2
|-
| row 2, cell 1
| row 2, cell 2
|}}}</nowiki>
Is there a way? html tables seem to work. thanks, [[User:ErikHaugen|ErikHaugen]] <small>([[User talk:ErikHaugen|talk]] | [[Special:Contributions/ErikHaugen|contribs]])</small> 23:51, 11 February 2011 (UTC)
 
:You would need to escpae the pipe characters with {{tl|!}}, so <tt>{|</tt> becomes <tt>{&#123;{!}}</tt>, and |- becomes <tt>{&#123;!}}-</tt>, etc. <span style="font-family:'Trebuchet MS',sans-serif"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User_talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 00:55, 12 February 2011 (UTC)
 
== Substitution ==
 
Unless I shortly hear any objections, i am going to make this template substitutable. It is used on talk pages a lot, so the functionality is desirable. [[User:Magog the Ogre|Magog the Ogre]] ([[User talk:Magog the Ogre|talk]]) 22:57, 31 October 2011 (UTC)
:Why is substitutability advantageous in this template?  Tmbox is a display template; it implements the current consensus for the appearance of message boxes.  If that consensus changes, so too can the appearance of millions of boxes, with a few careful changes here.  There are still thousands of implementations of the ''previous'' generation of talkpage message boxes precisely because they were ''not'' centralised through a metatemplate like {{tlx|tmbox}}, that's not a mistake we want to repeat.  So yes, consider this an objection: there is no reason to make this template substitutable because there is no (common) reason to want to substitute it. [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 00:08, 1 November 2011 (UTC)
 
== Classes ==
 
Please see centralised discussion at [[Wikipedia talk:Manual of Style/Article message boxes#Classes]]. <span class="vcard"><span class="fn">[[User:Pigsonthewing|Andy Mabbett]]</span> (<span class="nickname">Pigsonthewing</span>); [[User talk:Pigsonthewing|Talk to Andy]]; [[Special:Contributions/Pigsonthewing|Andy's edits]]</span> 10:22, 29 November 2011 (UTC)
 
== Edit request - option for background colours ==
 
{{editrequest|answered=yes}}
 
An option for background colours would be nice {{smiley}} it seems there is no way to do it in the documentation other than substing which on a talk page is bad because it adds to the spam for people --''[[User:Mistress Selina Kyle|<u>Mistress Selina Kyle</u>]] <sup>'''<span style='color:#800080;'>(</span>'''[[User_talk:Mistress Selina Kyle|Α⇔Ω]] ¦ [[Special:Emailuser/Mistress Selina Kyle|⇒✉]]'''<span style='color:#800080;'>)</span>'''</sup>'' 10:21, 10 February 2012 (UTC)
:That the background colour is standardised across all templates is ''precisely the point'' of this template!  [[User:Happy-melon|<b style="color:forestgreen">Happy</b>]]‑[[User talk:Happy-melon|<b style="color:darkorange">melon</b>]] 10:27, 10 February 2012 (UTC)
 
{{tmbox
|image = none
|text = Seems to work for me. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 10:33, 10 February 2012 (UTC)
|style = background:#e0ffff;border:1px solid blue;
}}
 
I actually figured it out and changed it already if you look at with my talk page, of course, style, thanks :) It should probably mention that in the description/documentation for people that don't know CSS ha. {{smiley}}
 
===Edit request - option for Padding===
{{editrequest|answered=yes}}
Another thing though, is it possible to set the padding currently? I thought it would be padding=whatever in the CSS style but that doesn't appear to do anything for some reason, I am thinking the template probaby needs a separate setting added to it to let people change padding for some reason?
 
For instance the difference between tmbox:
 
{{tmbox
|style = background-color:#fdffe7; border:1px solid #fceb92;
|textstyle = padding:0.75em 0.9em
|image = [[Image:Kitten (06) by Ron.jpg|100px]]
|text = <div style='font-size:x-large;'>'''A kitteh for you!'''</div><p>Dianna has given you an evil attack kitteh! Evil attack kittehs help promote '''[[WP:LOVE|<font color=green>wiki-love</font>]]''' and protect your talk page from trollish elements. [[User:Diannaa|Dianna]] ([[User talk:Diannaa|talk]]) 15:38, 6 February 2012 (UTC)
}}
 
and table (this is what the New [[mw:wikilove|Wikilove]] button at top of the screen stuff uses at the moment, weirdly - and without centring set to, I just changed that in to make the comparison easier):
 
{| align=center width=870 style="background-color: #fdffe7; border: 1px solid #fceb92;"
|rowspan="2" style="vertical-align: middle; padding: 5px;" | [[File:Kitten (06) by Ron.jpg|100px]]
|style="font-size: x-large; padding: 3px 3px 0 3px; height: 1.5em;" | '''A kitteh for you!'''
|-
|style="vertical-align: middle; padding: 3px;" | Dianna has given you an evil attack kitteh! Evil attack kittehs help promote '''[[WP:LOVE|<font color=green>wiki-love</font>]]''' and protect your talk page from trollish elements. [[User:Diannaa|Dianna]] ([[User talk:Diannaa|talk]]) 15:38, 6 February 2012 (UTC)
|}
 
It's more noticable in larger boxes if you compare the padding around the picture in the [[mw:wikilove|Wikilove]] table: [https://en.wikipedia.org/w/index.php?title=User_talk:Mistress_Selina_Kyle&oldid=476095132] to the much smaller padding tmbox uses : [https://en.wikipedia.org/w/index.php?title=User_talk:Mistress_Selina_Kyle&oldid=476099300]
 
I tried to change with padding style but didn't seem to do anything, not sure what's up with that - thanks for any help {{smiley}} --''[[User:Mistress Selina Kyle|<u>Mistress Selina Kyle</u>]] <sup>'''<span style='color:#800080;'>(</span>'''[[User_talk:Mistress Selina Kyle|Α⇔Ω]] ¦ [[Special:Emailuser/Mistress Selina Kyle|⇒✉]]'''<span style='color:#800080;'>)</span>'''</sup>'' 11:18, 10 February 2012 (UTC)
 
:You can use {{tl|fmbox}} for fullwidth boxes. Also, anyone can edit the docs, they are not protected. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 11:32, 10 February 2012 (UTC)
 
::ah I was talking about padding, not width {{smiley}} in CSS padDing is the gap between images/text and the border inside an object (margin is for the gap outside an object) --''[[User:Mistress Selina Kyle|<u>Mistress Selina Kyle</u>]] <sup>'''<span style='color:#800080;'>(</span>'''[[User_talk:Mistress Selina Kyle|Α⇔Ω]] ¦ [[Special:Emailuser/Mistress Selina Kyle|⇒✉]]'''<span style='color:#800080;'>)</span>'''</sup>'' 11:36, 10 February 2012 (UTC)
 
:Tmbox is a table to which the style parameter is applied, and cannot have a padding. <s>Default table cell padding is used.</s> Tmbox has it's padding controlled by the tmbox CSS classes. I think that in the interest of having a standard formatting for all *mbox templates, it is best kept this way. <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 15:18, 10 February 2012 (UTC)
 
::If you look at the difference between the padding this template uses and the one the WikiLove function uses as I compared above, it looks to me like the padding underneath and above is missing - it looks slightly wrong {{smiley}} There is padding to the left but above and below the image it just cuts off suddenly compared ot the WikiLove ne where it's even around all sides of the image like a pictureframe {{smiley}}
 
::Maybe fix the default padding then if you don't want to give people an option? {{smiley}} --''[[User:Mistress Selina Kyle|<u>Mistress Selina Kyle</u>]] <sup>'''<span style='color:#800080;'>(</span>'''[[User_talk:Mistress Selina Kyle|Α⇔Ω]] ¦ [[Special:Emailuser/Mistress Selina Kyle|⇒✉]]'''<span style='color:#800080;'>)</span>'''</sup>'' 03:11, 11 February 2012 (UTC)
 
:::The wikilove box is not a tmbox and has a different structure alltogether. But I see there is a <tt>textstyle</tt> parameter where you can override the default padding for the text (0.25em 0.9em). Example code added above. How does that look? <span style="font-family:'Trebuchet MS'"> — [[User:Edokter|<span style="color:#008"><i>E</i>dokter</span>]] ([[User talk:Edokter|<span style="color:#080">talk</span>]]) — </span> 10:49, 11 February 2012 (UTC)

Latest revision as of 12:13, 10 October 2012

Template talk:Tmbox