Template talk:Process header

From Meta, a Wikimedia project coordination wiki

Using for multilingual pages[edit]

{{edit request}}

Please replace:

text-align: left;


text-align: {{#switch:{{dir|{{#titleparts:{{FULLPAGENAME}}|1|-1}}}}|rtl=right|ltr|#default=left}};
text-align: right;


text-align: {{#switch:{{dir|{{#titleparts:{{FULLPAGENAME}}|1|-1}}}}|rtl=left|ltr|#default=right}};

Result may be tested at the Global_rollback/ar. --Kaganer (talk) 20:29, 11 March 2013 (UTC)Reply[reply]

PS: Arrows character also replaced to Template:Process_arrow. --Kaganer (talk) 20:29, 11 March 2013 (UTC)Reply[reply]

Done. --MF-W 20:36, 11 March 2013 (UTC)Reply[reply]
Thanks! Please also protect of {{Process arrow}} (and redirects to the him). --Kaganer (talk) 22:16, 11 March 2013 (UTC)Reply[reply]


{{edit request}}

Please change:

  1. {{#titleparts:{{FULLPAGENAME}}|1|-1}}}} to {{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}
  2. {{#if:{{{shortcut|}}}|{{shortcut|{{{shortcut}}}}}}} to {{#if:{{{shortcut|}}}|{{shortcut|{{{shortcut}}}|uselang={{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}}}

These needs to improve calls of localized /header templates from non-translatable pages (e.g. steward requests). --Kaganer (talk) 17:33, 17 September 2015 (UTC)Reply[reply]

Done Matiia (talk) 17:46, 17 September 2015 (UTC)Reply[reply]
@Kaganer: I've partially reverted it as it was responsible for breaking the template. --Glaisher (talk) 11:32, 20 September 2015 (UTC)Reply[reply]

I'm sorry. This my mistake (grabbed the redundant braces in the source string). Should be changed:

{{#titleparts:{{FULLPAGENAME}}|1|-1}} to {{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}

--Kaganer (talk) 20:04, 20 September 2015 (UTC)Reply[reply]

Done. Matiia (talk) 20:11, 20 September 2015 (UTC)Reply[reply]

Protected edit request on 7 October 2019[edit]

Can we put [[Category:Headers]] on the /doc subpage? Thanks! IPad365 (talk) 22:42, 7 October 2019 (UTC)Reply[reply]

That would be pretty pointless as it is already on the template, so you then are categorising the document for no additional benefit.  — billinghurst sDrewth 04:05, 8 October 2019 (UTC)Reply[reply]

Protected edit request on 20 May 2022[edit]

Extended content
Line 1: Line 1:
{| style="width: 100%; border: 1px solid #060; background: #dfd; margin-top: 2px; margin-bottom: 2px;" {| style="margin-top: 2px; margin-bottom: 2px; width: 100%; border: 1px solid #060; background: #dfd;"
|- |-
| style="width: 20%; text-align: {{#switch:{{dir|{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}|rtl=right|ltr|#default=left}}; font-size: 90%" | {{{previous|}}} | style="width: 20%; font-size: 90%; text-align: {{#switch:{{dir|{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}|rtl=right|ltr|#default=left}};" | {{{previous|}}}
| style="text-align: center" | '''{{{title|{{SUBPAGENAME}}}}}''' {{{section|}}} | style="text-align: center;" | '''{{{title|{{SUBPAGENAME}}}}}''' {{{section|}}}
| style="width: 20%; text-align: {{#switch:{{dir|{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}|rtl=left|ltr|#default=right}}; font-size: 90%" | {{{next|}}} | style="width: 20%; font-size: 90%; text-align: {{#switch:{{dir|{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}|rtl=left|ltr|#default=right}};" | {{{next|}}}
|} |}
{{#if:{{{notes|}}}{{{shortcut|}}}|<table style="width:100%; border:1px solid grey; background:#fafaff; margin:1ex 0"> {{#if:{{{notes|}}}{{{shortcut|}}}
{{(!}} style="margin: 1ex 0; border: 1px solid grey; width: 100%; background:#fafaff;"
<td>{{#if:{{{shortcut|}}}|{{shortcut|{{{shortcut}}}|uselang={{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}}} {{{notes|}}}</td>
</table>|<br />}}<noinclude>{{documentation}}[[Category:Headers]]</noinclude>
-->|uselang = {{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}<!--

Please replace the content of this template with the sandbox version. I converted HTML tags to wikitext and improved code readability. NguoiDungKhongDinhDanh 10:20, 20 May 2022 (UTC)Reply[reply]

Donexaosflux Talk 13:52, 25 May 2022 (UTC)Reply[reply]

Protected edit request on 12 December 2023[edit]

Hi! Update from Template:Process header/sandbox, please: moved from table to div, added TS, colors from DSG. Testcases: Template:Process header/testcases. Iniquity (talk) 19:30, 15 December 2023 (UTC)Reply[reply]

Done --M/ (talk) 20:15, 15 December 2023 (UTC)Reply[reply]
Thanks! :) Iniquity (talk) 20:24, 15 December 2023 (UTC)Reply[reply]
Is the role of the green box purely navigational? Then it's best to add role="navigation" to it. Compare the yellow box at Help:Link. Ideally, also something like aria-labelledby="process-header-header" and add the process-header-header id to the header. Jack who built the house (talk) 20:32, 15 December 2023 (UTC)Reply[reply]
@M7, can you update from sandbox one more time, please? :) Iniquity (talk) 20:37, 15 December 2023 (UTC)Reply[reply]
I also added role="note" to the notes. ombox'es on English Wikipedia utilize role="presentation" which I'm not sure I get the function of, except for – to indicate this is not really a table with content. en:Template:Dmbox, in the other hand, has role="note". Here, we now have a div anyway. Jack who built the house (talk) 20:48, 15 December 2023 (UTC)Reply[reply]
Done --M/ (talk) 23:17, 15 December 2023 (UTC)Reply[reply]
Thanks! Iniquity (talk) 05:52, 16 December 2023 (UTC)Reply[reply]
@Jack who built the house: I don’t think the aria-labelledby is appropriate. First, the text appearing in the middle “cell” labels the page, not the navigation bar (it’s by default the page title). Second, now there are three identical ids on Template:Process header, and possibly on other pages as well, as nothing enforces that the template is used only once on a given page. Either it should be aria-label="Process header" (but then translation should be set up for that), or it should not be there at all.
  • All three style attributes could be removed if the root <div> would have an attribute dir="{{dir|{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}", and the following styles were added:
    .ts-Process_header-controls:first-child {
    	text-align: start;
    .ts-Process_header-controls:last-child {
    	text-align: end;
  • The shortcut box can now flow out of the outer box, see Neutral point of view. Adding
    .ts-Process_header-notes::after {
    	display: block;
    	content: "";
    	clear: both;
    would fix that.
  • I’d like to get rid of {{CURRENTCONTENTLANGUAGE}} in the long term. A first step would be not using it on pages translated using the Translate extension, as the {{PAGELANGUAGE}} magic word works on them more reliably than the template. This can be achieved by replacing all occurrences of {{CURRENTCONTENTLANGUAGE}} by {{#if:{{TRANSLATABLEPAGE}}|{{PAGELANGUAGE}}|{{CURRENTCONTENTLANGUAGE}}}}.
Tacsipacsi (talk) 10:40, 17 December 2023 (UTC)Reply[reply]