Part 1
Create a template for tracking, based on existing de.wiki template {{Wertung}}
- Name the template {{Fortschritt}} with three states: offen, in Arbeit, fertig so that the template works when used as {{Fortschritt|offen}}
- Each state simply displays an svg, 15x15px
- Each svg should have alt text. fertig alt = grüner Kreis mit Häkchen, in Arbeit alt = gelber Kreis mit drei Punkten, offen = roter Kreis
Svgs: Red_circle_without_icon.svg, Yellow_circle_with_progress_dots.svg, Green_circle_with_checkmark.svg
Part 2
Count templates on article list page and display both at top the page and on the start page (see in progress project page for locations)
- Count number of templates per status on article list page (excluding those in the example) and display template count for each status in the respective circle --> We moved the example code to a separate page.
- Ideally the same display can be put on both the start and article list pages. If this is not possible with the final solution, then please note that in the ticket. --> https://de.wikipedia.org/wiki/Benutzerin:Johanna_Strodt_(WMDE)/Kartensaison
- The circular text background should change size with the text if user zooms in and out of the page
Mock and specs
All text should be bold and use system default sans-serif
Numbers should be centered in the middle of the circles both vertically and horizontally
Numbers = 2.5 em
Text = 2 em
Colors = offen #E8585D, in Arbeit #F0E660, fertig #34A26E
For review
Part 1:
- New template for the status: https://de.wikipedia.org/wiki/Benutzer:Svantje_Lilienthal_(WMDE)/Vorlage:Fortschritt
Part 2:
- Based on the existing lua template https://de.wikipedia.org/wiki/Modul:String_count I created the usage numbers of the three types of Fortschritt: https://de.wikipedia.org/wiki/Benutzer:Svantje_Lilienthal_(WMDE)/Test.
- New template that draws a colored circle: https://de.wikipedia.org/wiki/Benutzer:Svantje_Lilienthal_(WMDE)/Vorlage:Kreis
- New page that contains three colored circles with generated numbers: https://de.wikipedia.org/wiki/Benutzer:Svantje_Lilienthal_(WMDE)/Kartenfortschritt. This page is included in start page and at the Kartenwünsche tab. It will need a small update after the example description and "real" data have been separated.
- The wiki preview will not show the generated number, but after the page is saved, the counter is updated. Also when included in other pages, a page reload updates the number.