Author: filop
Description:
I want to write extension that will show advertisement units called by hooks. Lot of website place ads units in the middle of text, for example just after first paragraph or section, but it is not possible with MediaWiki (or maybe it is?). The hooks should be like Section1Start, Section2End and so on (with section 0 as well).
One of idea of extension with these hooks is to allow to place one of ads units in the middle of article. We're taking number of section, and if there's 4 or more sections, we place ads on the end of ((number of sections / 2) round 0) section.
Hooks shouldn't couse any trouble. Action registred with nonexisting hook and nonexisting section just will not be proceed. That could be even usefull for showing ads depending on text long (I'm also planning to show no ads on too short pages to avoid breaking the Google's TOC and other providers conditions).
Version: unspecified
Severity: enhancement