SDrewthbot/Header template:header manipulation |
AWB manipulations edit
"title" to "section" edit
- Advanced > (Type:Inside templates) Find > RegExp > Singleline
(title *= *)([^\n]+?)\n( *\| *author *=.+\n( *\| *translator[^\n]+?)? *\| *section *= *)
Replace
$1[[../]]\n$3$2
"prev" / "next" replacement edit
- Normal > Regex
<Typo word="<enter a name>" find="((previous|next) *= *)\[\[%%basepagename%%\/" replace="$1[[../" />
subpage title conversion edit
Main ns, and requiring forward slash (/) eyeball for translations
- Normal > Regex
<Typo word="<enter a name>" find="(title *= *)%%basepagename%%" replace="$1[[../]]" />
year removal edit
Where work has year on subpages, typically select by Special:PrefixIndex with "basepagename title/", slash to just grab subpages
- Normal > Regex
<Typo word="remove year" find="\n *\| *year *= *\d{4}" replace="" />
translator removal edit
If doing a clean and the translator field is truly redundant
- Normal > Regex
<Typo word="rm translator" find=" *\| *translator *= *\n" replace="" />
Author link edit
- If needing to do a disambiguation of author, and just need things to be easier, the {{author link}} can be problematic (simple form); needs to be above any disambiguation replacement script
- Normal > Regex
<Typo word="{{al}} -> [[Author:]]" find="\{\{(?:author link|al)\|([^\|]+?)\|([^\}]+?)\}\}" replace="[[Author:$1|$2]]" />