Jump to content

Template talk:Process header

Add topic
From Meta, a Wikimedia project coordination wiki
Latest comment: 1 year ago by Tacsipacsi in topic Protected edit request on 12 December 2023

Using for multilingual pages

[edit]

{{edit request}}

Please replace:

text-align: left;

to

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

to

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

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

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

Uselang

[edit]

{{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

Done Matiia (talk) 17:46, 17 September 2015 (UTC)Reply
@Kaganer: I've partially reverted it as it was responsible for breaking the template. --Glaisher (talk) 11:32, 20 September 2015 (UTC)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

Done. Matiia (talk) 20:11, 20 September 2015 (UTC)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

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

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|}}}
|
<tr>
{{(!}} style="margin: 1ex 0; border: 1px solid grey; width: 100%; background:#fafaff;"
<td>{{#if:{{{shortcut|}}}|{{shortcut|{{{shortcut}}}|uselang={{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}}} {{{notes|}}}</td>
{{!}}
</tr>
{{#if:{{{shortcut|}}}
</table>|<br />}}<noinclude>{{documentation}}[[Category:Headers]]</noinclude>
|<!--
-->{{shortcut<!--
-->|{{{shortcut}}}<!--
-->|uselang = {{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}<!--
-->}}
}}
{{{notes|}}}
{{!)}}
|<br>
}}<noinclude>
{{documentation}}
</noinclude>

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

Donexaosflux Talk 13:52, 25 May 2022 (UTC)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

Done --M/ (talk) 20:15, 15 December 2023 (UTC)Reply
Thanks! :) Iniquity (talk) 20:24, 15 December 2023 (UTC)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
@M7, can you update from sandbox one more time, please? :) Iniquity (talk) 20:37, 15 December 2023 (UTC)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
Done --M/ (talk) 23:17, 15 December 2023 (UTC)Reply
Thanks! Iniquity (talk) 05:52, 16 December 2023 (UTC)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.
Furthermore,
  • 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