Jump to content

మూస:Dotted summary row/doc

వికీసోర్స్ నుండి

Description

[మార్చు]

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

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

[మార్చు]

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

css requirements

[మార్చు]

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; 
}
  • {{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.