Page MenuHomePhabricator

Add = to certain WikiProject banners parameters if missing
Open, Needs TriagePublicFeature

Description

Sometimes the parameters in WikiProject banners are input correctly either by individuals or bots and it would be good to fix some of that. There are a lot of parameters that many/most WikiProjects share that could be fixed. A few examples are provided below:

ArticleText = Regex.Replace(ArticleText, @"{{\s*WikiProject(.*?)\s*\|[ ]*class[ ]*(stub|start|C|B|A|GA|FA|FL|template|category|project|portal|file|disambig|redirect)(.*?) *\r?([\|}{<\n])", "{{WikiProject$1|class=$2$3$4", RegexOptions.IgnoreCase);
ArticleText = Regex.Replace(ArticleText, @"{{\s*WikiProject(.*?)\s*\|[ ]*importance[ ]*(low|high|mid|top)(.*?) *\r?([\|}{<\n])", "{{WikiProject$1|importance=$2$3$4", RegexOptions.IgnoreCase);
ArticleText = Regex.Replace(ArticleText, @"{{\s*WikiProject Biography(.*?)living[ ]*(yes|no)(.*?) *\r?([\|}{<\n])", "{{WikiProject Biography$1living=$2$3$4", RegexOptions.IgnoreCase);
ArticleText = Regex.Replace(ArticleText, @"{{\s*WikiProject(.*?)\s*\|[ ]*priority[ ]*(low|high|mid|top)(.*?) *\r?([\|}{<\n])", "{{WikiProject$1|priority=$2$3$4", RegexOptions.IgnoreCase);

Related Objects

Event Timeline

Reguyla raised the priority of this task from to Needs Triage.
Reguyla updated the task description. (Show Details)
Reguyla added a project: AutoWikiBrowser.
Reguyla moved this task to Talk page related on the AutoWikiBrowser board.
Reguyla subscribed.
Aklapper changed the subtype of this task from "Task" to "Feature Request".Nov 22 2022, 5:18 PM