User:Shinhan/AWB BannerSheller
From Wikipedia, the free encyclopedia
AWB BannerSheller would be a (module? plugin? ruleset?) that encloses multiple WikiProject banners with {{WikiProjectBannerShell}}.
(Article Talk pages only)
Simple algorithm:
- Detect compliant WikiProject templates (Template:WikiProjectBannerShell/Compliant banner list) and put them into a temporary array
- Skip page if less than 3 are found; empty array
- Replace in each of the templates "}}" with "|nested=yes}}" (unless it already has nested=yes)
- Add to top }}
- If "|living=yes" is found inside the WPBiography template add |blp=yes
- If "|activepol=yes" is found inside the WPBiography template add |activepol=yes
- Move templates from array to the top of the page
- Add to top "{{WikiProjectBannerShell|1=" at the top of the page
- Add talkheader at the top of the page if it exists anywhere on the page
- Add skiptotoctalk at the top of the page if it exists anywhere on the page