Page MenuHomePhabricator

Create new generic page
Open, Needs TriagePublic

Assigned To
None
Authored By
Nat_WDU
Oct 15 2025, 3:21 PM
Referenced Files
F66783018: image.png
Oct 23 2025, 2:36 AM
F66767655: image.png
Oct 20 2025, 3:33 PM
F66767661: image.png
Oct 20 2025, 3:33 PM
F66767651: image.png
Oct 20 2025, 3:33 PM
F66753529: Screenshot 2025-10-16 023341.png
Oct 16 2025, 1:54 AM

Description

Create a new page called "new-page" that inherits Paulina's header and footer. Put some dummy text in it. The aim of this task is to practice the ability to create a new, generic page with Flask and Jinja.

Event Timeline

hi @Nat_WDU
i made a merge request related this issue:-https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/93

changes made :-

  • Added a new page: new-page.html
  • Updated app.py to render the new page

Please kindly review, thank you!

Hola @Nat_WDU

I have implemented this task. Please find my MR at this link.

The following changes were made;

  • A new-page template
  • An update to app.py to render the new page
  • A clickable link added to the navigation bar for easy access

    Gracias!

Hi @Nat_WDU

I worked on this task

Screenshot 2025-10-16 023341.png (679×1 px, 51 KB)

After creating my merge request, I noticed that some unexpected changes appeared in the terms file, even though I only ran git add on the two files I actually worked on.

I suspect this might have happened when I updated my branch to avoid merge conflicts.

Please let me know if you’d like me to revert those unrelated changes or submit a clean branch.

Hello @Nat_WDU, @Pepe_piton,

I've submitted my first contribution - a new page as mentioned in the task. Would appreciate your feedback!

MR: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/100

This is my first time contributing to Paulina, so I'm eager to learn from your review. Thank you!

Hi @Pepe_piton @Nat_WDU,

I'd appreciate your feedback on this: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/132

Thanks!

I took it a step further by translating the dummy text into all languages supported by Paulina.

Sample:

image.png (583×1 px, 58 KB)

image.png (583×1 px, 65 KB)

image.png (583×1 px, 64 KB)

Hi @Pepe_piton @Nat_WDU,
I'd appreciate your feedback on this: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/142

Add generic "new-page" template for practice
This patch creates a simple demonstration page to practice creating new pages in Paulina using Flask and Jinja templates.
Changes:

Created templates/new-page.html that extends Paulina's base layout
Added /new-page/ route in app.py
Page includes dummy content with multiple sections
Inherits header and footer from layout.html

@Oluwatumininu.m @Dipanshu1223 @Nurah_Wakili Perfect!

@Chumzine Very good! And very nice that you added the link on the site menu. One detail: if you set the variable wikidata_link with Jinja directly on the template, you don't need to create and pass the same variable from app.py.

@Rolalove Perfect! Don't worry about the minor changes on the term.html page.

@Adwivedii Thanks for joining. Perfect work!

@Afanyulionel You forgot to create a view function for the new page in app.py. View functions are how you tell Flask to display the corresponding template for a given route. You can see examples for existing pages, such as /about in the app.py file itself.

In the next few days I will leave feedback to the rest of the contributions.

@Oluwatumininu.m @Dipanshu1223 @Nurah_Wakili Perfect!

@Chumzine Very good! And very nice that you added the link on the site menu. One detail: if you set the variable wikidata_link with Jinja directly on the template, you don't need to create and pass the same variable from app.py.

@Rolalove Perfect! Don't worry about the minor changes on the term.html page.

@Adwivedii Thanks for joining. Perfect work!

@Afanyulionel You forgot to create a view function for the new page in app.py. View functions are how you tell Flask to display the corresponding template for a given route. You can see examples for existing pages, such as /about in the app.py file itself.

In the next few days I will leave feedback to the rest of the contributions.

Thanks for the feedback @Pepe_piton . I have made the updates and pushed.

image.png (976×1 px, 122 KB)

Same request: https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/106

@Oluwatumininu.m @Dipanshu1223 @Nurah_Wakili Perfect!

@Chumzine Very good! And very nice that you added the link on the site menu. One detail: if you set the variable wikidata_link with Jinja directly on the template, you don't need to create and pass the same variable from app.py.

@Rolalove Perfect! Don't worry about the minor changes on the term.html page.

@Adwivedii Thanks for joining. Perfect work!

@Afanyulionel You forgot to create a view function for the new page in app.py. View functions are how you tell Flask to display the corresponding template for a given route. You can see examples for existing pages, such as /about in the app.py file itself.

In the next few days I will leave feedback to the rest of the contributions.

thanks for feedback @Pepe_piton

@System625 Perfect! And thanks for detecting and coding a fix for the JavaScript errors!

@shreya-bhagat @Blegodwin @Atlas0007 @Raboyusuf2024 Excellent!

@Sopzy Excellent. And what you did with Flask-Babel to get the translations was impeccable.

@Afanyulionel Now it's all right. Nice page!

@System625 Perfect! And thanks for detecting and coding a fix for the JavaScript errors!

@shreya-bhagat @Blegodwin @Atlas0007 @Raboyusuf2024 Excellent!

@Sopzy Excellent. And what you did with Flask-Babel to get the translations was impeccable.

@Afanyulionel Now it's all right. Nice page!

Thanks @Pepe_piton

@System625 Perfect! And thanks for detecting and coding a fix for the JavaScript errors!

@shreya-bhagat @Blegodwin @Atlas0007 @Raboyusuf2024 Excellent!

@Sopzy Excellent. And what you did with Flask-Babel to get the translations was impeccable.

@Afanyulionel Now it's all right. Nice page!

Thank you for the feedback!

@System625 Perfect! And thanks for detecting and coding a fix for the JavaScript errors!

@shreya-bhagat @Blegodwin @Atlas0007 @Raboyusuf2024 Excellent!

@Sopzy Excellent. And what you did with Flask-Babel to get the translations was impeccable.

@Afanyulionel Now it's all right. Nice page!

@Pepe_piton Thank you so much for your time and for providing your feedback.

@Oluwatumininu.m @Dipanshu1223 @Nurah_Wakili Perfect!

@Chumzine Very good! And very nice that you added the link on the site menu. One detail: if you set the variable wikidata_link with Jinja directly on the template, you don't need to create and pass the same variable from app.py.

@Rolalove Perfect! Don't worry about the minor changes on the term.html page.

@Adwivedii Thanks for joining. Perfect work!

@Afanyulionel You forgot to create a view function for the new page in app.py. View functions are how you tell Flask to display the corresponding template for a given route. You can see examples for existing pages, such as /about in the app.py file itself.

In the next few days I will leave feedback to the rest of the contributions.

Thank you for the feedback!!

@Oluwatumininu.m @Dipanshu1223 @Nurah_Wakili Perfect!

@Chumzine Very good! And very nice that you added the link on the site menu. One detail: if you set the variable wikidata_link with Jinja directly on the template, you don't need to create and pass the same variable from app.py.

@Rolalove Perfect! Don't worry about the minor changes on the term.html page.

@Adwivedii Thanks for joining. Perfect work!

@Afanyulionel You forgot to create a view function for the new page in app.py. View functions are how you tell Flask to display the corresponding template for a given route. You can see examples for existing pages, such as /about in the app.py file itself.

In the next few days I will leave feedback to the rest of the contributions.

Thank you so much for the feedback @Pepe_piton. Yes I completely agree, thank you for pointing it out. I was trying something out with the wikidata_link variable and forget to correct it.