Template:See above/doc

Usage
The templates See above (a.k.a. See at, which defaults to "above"), and See below (which changes "above" to "below") will format text into a standardized style for an (not block-level) crossreference to other content in the same article, either above or below the insertion point of the template, respectively.

The template automatically creates the link to the in-page anchor, without addition of  markup around the target. It also auto-formats the output into its own round-bracketed parenthetical sentence, italicized like other block-format and inline hatnotes and crossreferences. (Sentence display can be suppressed, but brackets cannot). By default, it expects to link to a section name, and prepends the section symbol (§) before the section name, as does Section link.

When cross-referencing something other than a section (the heading for which is a link anchor), an anchor must be manually inserted, e.g. with the anchor template, so that the template has something to which to link.

They are not Wikipedia self-references, but self-references to the content at hand, and are thus printworthy. Their output is ultimately generated by Module:Hatnote inline.

produces:
 * Basic usage:

Technical limitation: MediaWiki provides no means of checking that #-anchor link targets are valid. It is advisable to add an HTML comment like  after any heading or other anchor to which such a template links, so that cleanup after renaming the heading/anchor is easy.

Parameters

 * All parameters:


 * With custom text:

This template accepts the following parameters:
 * 1 (a.k.a. first unnamed parameter) – The cross-reference anchor name. Normally, but need not be specified with  unless the content contains a  }}, but links to the heading (anchor)  . In normal use, this does nothing without 1, but can be used alone with short to suppress linking and to replace "above"/"below" (it is more intuitive to do this with at, however).
 * pre (a.k.a. before) – Add text before "See" (also lower-cases "See" to "see" and introduces a comma before it): gives . Capitalization of first letter must be done manually if needed (it will be, unless y a.k.a. y is set, or undefined is set).
 * see – Replaces the word "See" (or "see") with something else, e.g. "Detailed", "as defined", or "see also". Must be manually capitalized if needed (it usually will be). Examples: gives: ;  gives:
 * content (a.k.a. text) – give custom text; this overrides many of the features described here (including 1 ... 4, also, label, at, comma, but not see, mid, pre, or post). If you want something to link, you have to link it manually (or with ), and if you want a word like "above" to be included, you have to add it.
 * y (or with any other value such as ) – Another way of getting "See also" (or "see also"): It adds the word "also" after "See" (or "see", or the value of see):  gives:
 * label – Changes the section symbol (§) to something else: gives
 * at – Replace "above" (or "below") with some other location, e.g. "in sidebar", "in table", etc. The default is "above". The parameter name is easy to remember if you also use the  shortcut of the template: the code  yields: .  that an anchor exist for the link (e.g., in the previous example, the infobox template must have  or   at the beginning of its "Breed standards" header).  Display of any link (along with any value of label) can be suppressed with a particular use of short with at:  yields:.
 * n (or any value such as ,  ,  ) or at (with empty value) – suppress display of "above"/"below". Example:  gives:
 * post (a.k.a. ps, a.k.a. after) – Add text following "above" (or "below", or the value of at). Typical example:  gives: . A short example:  gives: .  Note that it leaves out the comma when y is set.
 * y or y (or with any other value such as ) – For -sentence use; this  "See" to "see", and removes the period (full stop) at end of the construction:  produces  in mid-sentence.
 * y (or with any other value such as ) – Compresses the entire entry to just link "above" (or "below", or the value of 2, or the value given in at, as applicable) to the anchor, and formats as per the y parameter. E.g.  yields  in mid-sentence. The value of 2 trumps that of at, and the use of either will override the default "above" or "below":  gives ;  gives, and this is intentional.  The most concise use, which suppresses linking, is simply : . The equivalents also work:   for ;  for , etc. Equivalent to the last are , giving: ; and , giving: . , where a link would be pointless. Because it is intended for abbreviated display, use of this parameter suppresses the output of any additional link provided with 3, etc.
 * 3 (a.k.a. third unnamed parameter) – An additional cross-reference anchor name. (Need not be specified with  unless the content contains a   or   or  ) – insert a comma between the two links; this is only needed when one or more of the links is complex (e.g. contains "and" or a comma) and makes the construction hard to parse without separating the two links more explicitly:  gives:
 * , (a.k.a. comma – insert something other than a comma, such as a semicolon with ; or "as well as" with &amp;nbsp;as well as. Note that this parameter is mostly used for commas and semicolons, so if you want words, you have to add a hard space before the first word.

A contrived complex case illustrating most features at once:

gives:

However this would be so silly as to be minnow-worthy, since the following achieves the same result:

and we wouldn't use something that long-winded anyway.

For both-above-and-below references (which should normally be avoided), these tricks can be used:

giving:

or:

giving:

or:

giving:

For even more complex cases (3 or more link targets, etc.), just use to make a custom cross-reference.