Module:Block diagram/doc explained

This function takes a long string of text and tags in angle brackets to output a set of HTML <div> elements. This allows you to block out a diagram with arbitrarily placed rectangular elements. The main point of the module is that it allows some attributes to be applied in a "sticky" manner, so that once you set the color or position of a div, the divs coming after it will have the same values unless you change them. Though the text may still be pretty lengthy, it is much shorter than a full specification of all the divs.

Parameters

Tags

Example

is produced by:

{{#invoke:Block diagram|main|width=600|height=245|1=<border-color grey><border-width 0px 0px 0px 1px><left 30><right 30>&nbsp;<left 70><right 70>&nbsp;<border-width 0px><top 0><bottom 12><left 0><right 100><background-color #ffbcd8>Practice of Induced Abortion Methods<background-color #bdc9df><top 19><bottom 29><left 7.5><right 20>[[Manual vacuum aspiration|MVA]]<left 40><right 65>[[Dilation and evacuation|Dilation and Evacuation]]<top 38><bottom 47><left 15><right 30>[[Electric vacuum aspiration|EVA]]<left 50><right 75>[[Hysterotomy]]<left 15><right 37.5><top 56><bottom 66>[[Dilation and curettage|Dilation and Curettage]]<left 50><right 75>[[Intact dilation and extraction|Intact D&X]]<left 7.5><right 22.5><top 74><bottom 84>[[Mifepristone]]<left 40><right 75>[[Induced miscarriage|Induced Miscarriage]]<left 0><right 30><background-color #b7e690><top 90><bottom 100>[[first trimester|1st Trimester]]: 0-12 weeks<left 30><right 70><background-color #dfe988>[[second trimester|2nd Trimester]]: 12-28 weeks<left 70><right 100><background-color #e9c788>[[third trimester|3rd Trimester]]: 28-40 weeks}}

In this example: