Template:Dotted summary row/doc

From Wikisource
Jump to navigation Jump to search

Description[edit]

A simple template to obtain a dotted row to be used into summaries.

Example[edit]

Code (testing various font-sizes too)

<table width="50%" align="center">{{Dotted summary row|Title of the chapter 1|14}}
{{Dotted summary row|Title of the chapter 2, much longer than a single row because it needs to be to show the wrapping effect|15}}
{{Dotted summary row|{{x-larger|Title of the chapter 1}}|{{x-larger|16}}}}
{{Dotted summary row|{{smaller|Title of the chapter 1}}|{{smaller|17}}}}

Result

Title of the chapter 1   14
Title of the chapter 2, much longer than a single row because it needs to be to show the wrapping effect   15
Title of the chapter 1, x-larger   16
Title of the chapter 1, smaller   17

Test implementation[edit]

A test implementation can be seen here: Page:The Modern Art of Taming Wild Horses.djvu/7

css requirements[edit]

To see dots you need these css additive settings:

.dotted {
     background-image:url('http://upload.wikimedia.org/wikipedia/commons/6/61/Dots.png');
     background-repeat:no-repeat;
     background-position:left bottom;
}
.opaque {
     background-color:white; 
}

See also[edit]

  • {{Dotted summary row no image}} - a similar template with more complicated and uglier HTML, which requires line wraps to be manually inserted, but which allows changing the size of the dots and the use of a solid or dashed line in place of dots.