Template talk:Restriction-Layout

Replacement of deprecated attributes

{{Editprotected}} Remove cellspacing="8" cellpadding="0" and add border-spacing: 8px;. They're deprecated attributes in HTML5. Baris6161TURK (talk) 21:31, 7 January 2023 (UTC)

✓ Done Awesome! Thank you! —Mdaniels5757 (talk  contribs) 19:40, 23 February 2023 (UTC)

25 August 2025

{{Edit request}}

The only one without cellspacing="8" cellpadding="0" but has border-spacing:8px;. Is there any particular reasoning for that?

border-spacing:8px;
+
cellspacing="8" cellpadding="0"

Waddie96 (talk) 01:27, 25 August 2025 (UTC)

border-spacing:8px; should also be inbetween style="":

Add: under style="" put border-spacing: 8px; box-sizing: border-box;
Reason: cellspacing and cellpadding have been deprecated and are obsolete. The cellspacing attribute is replaced by the border-spacing properties defined on the parent <table> element ({| in wikitext). The cellpadding is replaced by the padding property on the <td> element. border-sizing so 100% is width of content area + width of border + padding. And not 100% + width of border + padding and then it runs the 100% width of page. Waddie96 (talk) 03:53, 25 August 2025 (UTC)
@Waddie96: I’m confused. cellspacing and cellpadding are deprecated and obsolete… and that’s why you’re requesting to add them back? Lucas Werkmeister (talk) 17:26, 25 August 2025 (UTC)
No to remove them... but I've copied pasted this so many times this one I forgot to delete the right things. but the border-spacing:8px; has been put in the wrong place.
:::<noinclude>{|</noinclude>border-spacing:8px; style="width:100%; clear:both; margin:0.5em auto; background-color:var(--background-color-neutral-subtle,#f7f8ff); border:2px solid #8888aa;color: inherit;{{{style|}}}" lang="{{{lang|{{int:lang}}}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" class="layouttemplate restrictiontemplate {{{class|}}}"<noinclude> :::| example :::|}
must become:
:::<noinclude>{|</noinclude>style="width:100%; clear:both; margin:0.5em auto; background-color:var(--background-color-neutral-subtle,#f7f8ff); border:2px solid #8888aa;color: inherit; border-spacing:8px; {{{style|}}}" lang="{{{lang|{{int:lang}}}}}" dir="{{#dir:{{{lang|{{int:lang}}}}}}}" class="layouttemplate restrictiontemplate {{{class|}}}"<noinclude> :::| example :::|}
look how border-spacing:8px; moved :-D Waddie96 (talk) 18:17, 25 August 2025 (UTC)
@Lucas Werkmeister it's not nested in style="" so nothing will even happen? Waddie96 (talk) 18:18, 25 August 2025 (UTC)
✓ Done -- WOSlinker (talk) 06:43, 27 August 2025 (UTC)