Issue with Code template

Discussions about the wiki documentation of FreeCAD and its translation.
User avatar
Roy_043
Posts: 2830
Joined: Thu Dec 27, 2018 12:28 pm

Issue with Code template

Postby Roy_043 » Mon May 03, 2021 1:53 pm

The Code template (https://wiki.freecadweb.org/Template:Code) triggers a "Pages using deprecated enclose attributes" warning. This warning appears since the recent wiki software update.

I cannot fix this because AppImage is protected with the "cascading" option turned on. This means that all templates used on that page are also protected.
User avatar
Kunda1
Posts: 10389
Joined: Thu Jan 05, 2017 9:03 pm

Re: Issue with Code template

Postby Kunda1 » Tue May 04, 2021 2:33 am

I've seen this as well. The AppImage wiki page is protected due to it being a traffic heavy download page. What do you need to fix on it?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Roy_043
Posts: 2830
Joined: Thu Dec 27, 2018 12:28 pm

Re: Issue with Code template

Postby Roy_043 » Tue May 04, 2021 8:51 am

It is not the AppImage page, it is the code template that needs to be fixed.
User avatar
Kunda1
Posts: 10389
Joined: Thu Jan 05, 2017 9:03 pm

Re: Issue with Code template

Postby Kunda1 » Tue May 04, 2021 6:19 pm

Roy_043 wrote: ā†‘
Tue May 04, 2021 8:51 am
It is not the AppImage page, it is the code template that needs to be fixed.
Roy_043 wrote: ā†‘
Mon May 03, 2021 1:53 pm
I cannot fix this because AppImage is protected with the "cascading" option turned on. This means that all templates used on that page are also protected.
So what do you need me to do specically?
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Roy_043
Posts: 2830
Joined: Thu Dec 27, 2018 12:28 pm

Re: Issue with Code template

Postby Roy_043 » Tue May 04, 2021 7:16 pm

If you can change the protection of the AppImage so that (most of) the 12 templates used on that page are not locked, I would be able to edit the code template.
User avatar
Kunda1
Posts: 10389
Joined: Thu Jan 05, 2017 9:03 pm

Re: Issue with Code template

Postby Kunda1 » Tue May 04, 2021 7:33 pm

Done. The permissions expire in 1 week.
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
Roy_043
Posts: 2830
Joined: Thu Dec 27, 2018 12:28 pm

Re: Issue with Code template

Postby Roy_043 » Wed May 05, 2021 7:05 am

Thanks.
Removing |enclose="div" from https://wiki.freecadweb.org/Template:Code fixed the problem. There do not seem to be adverse side-effects. The HTML produced by the modified template is the same.