Template talk:Block indent
Latest comment: 6 months ago by Jonesey95 in topic Default indent
![]() | Text and/or other creative content from this version of Template:Block_indent was copied or moved into incubator:Template:Wp/nod/block_indent with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
![]() | Template:Block indent is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Template-protected edit request on 26 September 2020
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
This is some preceding text.
This is some following text...
- Reason, the example of this in the documentation should show as in an article?
- Plus I have display problem requires a leading
<b r />
line-break. - GSMC(Chief Mike) Kouklis U.S.NAVY Ret. ⛮🇺🇸 / 🇵🇭🌴⍨talk 10:06, 26 September 2020 (UTC)
- Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format and provide a reliable source if appropriate. * Pppery * it has begun... 01:43, 27 September 2020 (UTC)
Block indent cuts off content
edit- I will be importing some items from my own talk page to illustrate the problem shortly, but the short of it is that if content is not wrappable (or is an image, say) then if the screen is narrow enough (like a phone) then any textual or image data is lost to the beyond (the edges of the screen) without any scrolling capabilities. :- indentation with <math> as is often paired allows sideways scrolling of the image. So does the display="block" attribute in the math tag. But say for {{math}} or some other situation where indent is required and :-indentation is discouraged, this template is the ideal candidate. Except when the content is too wide. Hellacioussatyr (talk) 16:56, 30 April 2021 (UTC)
- As stated in my talk page,
- As stated in my talk page,
Default indent
editThis edit request has been answered. Set the |answered= parameter to no to reactivate your request. |
Why the default indent is chosen so? It is incompatible with the current practice of using :
– "most editors have used it almost everywhere for indenting" – which is condemned but very widely used (including WP:MOS itself).
Current usual (:
):
MOS:MATH recommendation (display=block
):
This template:
It's not even consistent with <blockquote>
:
Maybe a more compatible default should be used? — Mikhail Ryazanov (talk) 22:24, 8 April 2022 (UTC)
- And, by the way, with the recent Wikimedia style for paragraphs that made the bottom margin for
<p>
larger than the top margin, the<div>
created by this template is visually attached to the following paragraph rather that the preceding one or being equally separated from both. I think, in most cases this is not the intended behavior. Perhaps this can be corrected by changing<div>
to<span style="display:block">
, as it has been done for<math display="block">
. Or to<p>
with an appropriate indent, if it is semantically supposed to be a separate paragraph instead of a visually distinct part of the surrounding paragraph. — Mikhail Ryazanov (talk) 08:03, 19 February 2025 (UTC)- Oops, if this template should support multiple paragraphs inside, then replacing
<div>
by<span>
or<p>
will not work. So:- The problem with the top/bottom margins needs to be solved explicitly.
- It there an alternative template that works like
<span style="display:block">
but for wikitext instead of LaTex?
- — Mikhail Ryazanov (talk) 09:45, 19 February 2025 (UTC)
- Oops, if this template should support multiple paragraphs inside, then replacing
- Not done: it's not clear what changes you want to be made. Please mention the specific changes in a "change X to Y" format
and provide a reliable source if appropriate. – Jonesey95 (talk) 17:49, 20 February 2025 (UTC)- @Jonesey95: "Reliable source" for what? The linked WP:RS is about articles content and has nothing to do with representation or technical implementation details.
- The requested changes are quite clear:
- Change the default indent to be consistent with
:
(as Template:Block indent#Alternatives that are not recommended says) and<math display="block">
. - Remove the extra top margin (to be consistent with the documentation: "does not: ... introduce whitespace margins above or below the indented material").
- Change the default indent to be consistent with
- — Mikhail Ryazanov (talk) 20:39, 20 February 2025 (UTC)
- It's boilerplate text that makes it easy to respond to incomplete edit requests, hence "if appropriate" at the end. I do not see any implementable code change above, just questions and suggestions. I should probably have chosen the response that asks you to edit {{Block indent/sandbox}} with your proposed changes, and then make sure it works at {{Block_indent/testcases}}. – Jonesey95 (talk) 21:55, 20 February 2025 (UTC)