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:

  1. Detect compliant WikiProject templates (Template:WikiProjectBannerShell/Compliant banner list) and put them into a temporary array
  2. Skip page if less than 3 are found; empty array
  3. Replace in each of the templates "}}" with "|nested=yes}}" (unless it already has nested=yes)
  4. Add to top }}
  5. If "|living=yes" is found inside the WPBiography template add |blp=yes
  6. If "|activepol=yes" is found inside the WPBiography template add |activepol=yes
  7. Move templates from array to the top of the page
  8. Add to top "{{WikiProjectBannerShell|1=" at the top of the page
  9. Add talkheader at the top of the page if it exists anywhere on the page
  10. Add skiptotoctalk at the top of the page if it exists anywhere on the page