Template talk:Process header
Add topicUsing 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)
PS: Arrows character also replaced to Template:Process_arrow. --Kaganer (talk) 20:29, 11 March 2013 (UTC)
- Done. --MF-W 20:36, 11 March 2013 (UTC)
- Thanks! Please also protect of {{Process arrow}} (and redirects to the him). --Kaganer (talk) 22:16, 11 March 2013 (UTC)
Uselang
[edit]{{edit request}}
Please change:
{{#titleparts:{{FULLPAGENAME}}|1|-1}}}}to{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}{{#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)
Done Matiia (talk) 17:46, 17 September 2015 (UTC)
- @Kaganer: I've partially reverted it as it was responsible for breaking the template. --Glaisher (talk) 11:32, 20 September 2015 (UTC)
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)
Protected edit request on 7 October 2019
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Can we put [[Category:Headers]] on the /doc subpage? Thanks!
IPad365 (talk) 22:42, 7 October 2019 (UTC)
- 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)
Protected edit request on 20 May 2022
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
| Extended content | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
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)
Done — xaosflux Talk 13:52, 25 May 2022 (UTC)
Protected edit request on 12 December 2023
[edit]This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
Done --M/ (talk) 20:15, 15 December 2023 (UTC)
- Thanks! :) Iniquity (talk) 20:24, 15 December 2023 (UTC)
- 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 likearia-labelledby="process-header-header"and add theprocess-header-headerid to the header. Jack who built the house (talk) 20:32, 15 December 2023 (UTC)- @M7, can you update from sandbox one more time, please? :) Iniquity (talk) 20:37, 15 December 2023 (UTC)
- I also added
role="note"to the notes.ombox'es on English Wikipedia utilizerole="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, hasrole="note". Here, we now have a div anyway. Jack who built the house (talk) 20:48, 15 December 2023 (UTC)
Done --M/ (talk) 23:17, 15 December 2023 (UTC)
- Thanks! Iniquity (talk) 05:52, 16 December 2023 (UTC)
- I also added
- @Jack who built the house: I don’t think the
aria-labelledbyis 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 identicalids 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 bearia-label="Process header"(but then translation should be set up for that), or it should not be there at all. - Furthermore,
- All three
styleattributes could be removed if the root<div>would have an attributedir="{{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 would fix that.
.ts-Process_header-notes::after { display: block; content: ""; clear: both; }
- 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}}}}.
- All three
- Tacsipacsi (talk) 10:40, 17 December 2023 (UTC)
- @M7, can you update from sandbox one more time, please? :) Iniquity (talk) 20:37, 15 December 2023 (UTC)