Jump to content

Template talk:Center block

Page contents not supported in other languages.
Add topic
From Wikisource
Latest comment: 8 months ago by Yodin in topic Breaking {{floating quotation mark}}

Breaking {{floating quotation mark}}

[edit]

I just noticed that the documentation of {{floating quotation mark}} is now broken, with the quotation mark below the text when used with {{center block}}. Is this as a result of the (relatively) recent syncing with enwp? And if so, what is the advantage of their css styling over what we'd used before? (Pinging past editors of this template: @Great Brightstar, @Inductiveload, @George Orwell III, @Rehua, @EncycloPetey, @T. Mazzei) --YodinT 18:27, 22 August 2023 (UTC)Reply

Looks like this was being caused by {{span-based-template}}, as all other examples are working as expected. I've moved that template a bit lower on the page to stop it from breaking the first example. --YodinT 21:58, 17 December 2023 (UTC)Reply
Sorry for late response. I think this template could be fixed by applying following code:
<includeonly><div class="__center_block" style="position:relative; margin:0 auto; padding:0; text-align:{{{talign|initial}}}; {{ #if: {{{width|}}} | display:block; width:{{{width}}}; | width:-moz-fit-content;width:-webkit-fit-content;width:fit-content; }} {{ #if: {{{height|}}} | height:{{{height}}}; }} {{ #if: {{{style|}}} | {{{style}}}; }}"><!--
::-->{{#if:{{{title|}}}|<span style="display:inline-block;text-align:center;{{ #if: {{{width|}}} | width:{{{width}}}; | width:auto; }}">{{{title}}}</span>|}}
::{{{text|{{{1}}}}}}
::</div><!--
::# tracking categories
::-->{{#if:{{{height|}}}|[[Category:Pages using center block with height parameter]]}}<!--
::--></includeonly><noinclude>
::{{documentation}}</noinclude>
Hopefully administrator could accept soon. -- Great Brightstar (talk) 00:52, 2 April 2024 (UTC)Reply
Done This should be fixed. -- Great Brightstar (talk) 00:57, 2 April 2024 (UTC)Reply
Thanks @Great Brightstar 👍 --YodinT 12:12, 2 April 2024 (UTC)Reply