https://bugzilla.wikimedia.org/show_bug.cgi?id=16624

           Summary: Requesting hooks for start and end of the sections
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: easy
          Severity: enhancement
          Priority: Normal
         Component: Page rendering
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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).


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to