Template:Wikisource-multi
Appearance
The output of this template should be similar to Template:Wikisource, but allows for many links in the same box.
Required parameter(s)
[edit]The Wikisource entries are passed as unnamed parameters from 1 to 10.
Optional parameters
[edit]Parameters t1 to t10 pass text to change the text displayed for the 1st to 10th unnamed link.
The parameter "object" replaces the word "article" in the template above.
Very optional parameters
[edit]The parameter "caption" replaces the entire top text if desired (this supersedes "object").
The parameter "leading" changes the distance between lines. The suffix "px" (pixels) is required. 4px is the default.
The parameter "firstleading" changes this distance only between the top (caption) text and the first link. 4px is the default.
The parameters for Template:Side box are also passed:
- "position" - if set to "left" then the <table> tag used to create the box contains class="metadata plainlinks mbox-small-left"; otherwise "-left" is omitted.
- "image" feeds a replacement image for the standard Wikisource image (Size, caption, links, etc. all must be specified).
- "imageright" adds an extra cell (presumably an image you specify) right of the text links.
- "below" adds extra text or an image below the links.
- "style" provides HTML attributes to the style declaration for the table (i.e. the box) created by Side Box.
- "textstyle" provides a similar style, but only to the text in the text fields and parameter "below".
Examples
[edit]Wiki markup | Output |
---|---|
{{Wikisource-multi|Item One|Item Two}} | |
{{Wikisource-multi|Item One|Item Two|Item Three#subsection|t3=Item Three|Item Four}} | |
{{Wikisource-multi|object=section|leading=2px|Document/Book 1|t1=Item One|Document/Book 2|t2=Item Two|Document/Book 3|t3=Item Three}} | |
{{Wikisource-multi|The Descent of Man and Selection in Relation to Sex|Document/Book 2|t2=Item Two|The Zoology of the Voyage of H.M.S. Beagle|leading=5px|firstleading=2px|caption=See also [[Wikisource]]:|below=<div align="center">[[s:Author:Charles Darwin|Part of a series of works by Darwin]]|imageright=[[Image:Hw-darwin.jpg|29px|link=s:Author:Charles Darwin]]</div> |