Template:TOC row 2dot-1 linked

From Wikisource
Jump to navigation Jump to search

|- class="__toc_row_m-1 __toc_row_2dot-1 wst-toc-row-2dot-1 " style=""

|colspan=2|

[[{{{1}}}/{{{3}}}|{{{3}}}]]
.     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .     .

|style="text-align:right; width:2.0em;" | [[/{{{3}}}#{{{4}}}|{{{4}}}]]

Shortcut for a common Table of Contents format, with unconditional linking to the transcluded version from the title, and conditional linking from the page number to the page in the Index and the transcluded version otherwise.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Base page name1

Everything before the FIRST slash in the transcluded page name; this is only used for the title link

Example
Transactions of the Geological Society, 1st series, vol. 1
Page namerequired
Page NS number2

The page number in the Page namespace to link to

Numberrequired
Displayed title3

This is the title listed in the ToC; it will also form the last segment of the transcluded page title

Example
On the Wrekin and on the Great Coal-field of Shropshire
Stringrequired
Displayed page number4

This is the page number listed in the ToC; it will be linked dynamically either to the associated Page or the transcluded version (with an anchor to the particular page)

Example
45
Numberrequired
Subpagessubpages

Everything between the first and last slashes, including a slash at the end (this needs to be in a separate parameter so it doesn't get included in the displayed title)

Example
Volume 36/
Stringoptional