Project:Wiki/Archive/Template migrations/USEflag
We have modified the way the {{USEflag}} template works.
Its old implementation was created using only capabilities of the MediaWiki markup language and parser functionality, resulting in a large performance overhead. Additionally, the USE flag data was copied manually into the Wiki in a hard-to-update format.
With the new template, we've integrating data from the new Gentoo Packages database into the Wiki. That means that whenever an article is updated, the latest USE flag information is integrated automatically and without incurring a performance problem in the Wiki parser setup.
Some of these changes require manual verification of the rendered result; we hope the community can assist us in this endeavour.
What do I need to do?
For every USEflag template found:
- Ensure that there is only one USEflag template per package per page
Background: As the old template was limited in the number of supported flags, authors often put multiple instances of the USEflag template with verbatim explanations inbetween - In the one instance you keep: remove all parameters besides
package=
If there was no package=
parameter, consider replacing the manually generated USE flag list with one for a relevant package, or remove the template altogether.
Examples
Convert instances of the {{USEflag}} template, currently found in these articles, as follows:
Old template:
{{USEflag |package=app-misc/screen |debug++no |nethack |pam+Yes+Yes |selinux |multiuser }}
New template:
{{USEflag|package=app-misc/screen}}
(Note that most instances of this template will already have been converted.)
Questions?
As always, please stop by the #gentoo-wiki (webchat) IRC channel, or email us (at wiki@gentoo.org of course) if you have any questions or experience any problems. If not, as always, we are thankful for your help in making the wiki a better place! :)