Template:LinkCatagolue

From LifeWiki
Jump to navigation Jump to search

{{LinkCatagolue}} is a template for including links to Adam P. Goucher's Catagolue ("About" page) in an article. It can take five parameters:

  • code (mandatory), which specifies the extended Wechsler code of the object linked to
  • rule, which specifies the rulestring to use (default b3s23)
  • patternname, which specifies the name of the pattern as it will appear in the link text (default: name of the current article for style=listitem; "here" for style=brief; code for style=raw; has no effect for style=tabulated)
  • format, which specifies the code's format (format=extended, format=pseudo-object, format=linear growth, format=long-lived pattern, or leave out for regular apgcodes)
  • style, which specifies how to format the link (style=listitem, style=nobullet, style=brief, style=tabulated or style=raw; default: listitem)
  • style=nobullet: the link is formatted to be used either as a list item or inside a footnote.
  • style=listitem: the link is formatted as an item in the "External Links" section of an article.
  • style=brief: the link is formatted in a brief form to be used as an inline link.
  • style=tabulated: the link is formatted to be used for apgcodes inside tables. Note that the patternname parameter has no effect in this case, as the formatting is intended solely for tabulated apgcodes that can be quickly searched on the page via browser search function (Ctrl+F).
  • style=raw: the link is displayed without any additional formatting. Please use sparingly, and try to make sure that any inline external links are easy to distinguish from the usual internal links leading to other LifeWiki pages. Also compare with template {{cata}}.

Examples

You type:

* {{LinkCatagolue|code=xs4_33|patternname=Block}}

You see:

You type:

# {{LinkCatagolue|code=xs4_33|patternname=Block|style=nobullet}}

You see:

  1. Block at Adam P. Goucher's Catagolue

You type:

... [[block]] ({{LinkCatagolue|code=xs4_33|style=brief}}) ...

You see:

... block (Catagoluehere) ...

You type:

{|class="wikitable"
! Column 1
! Column 2
|-
| Some text
| {{LinkCatagolue|code=xs4_33|style=tabulated}}
|}

You see:

Column 1 Column 2
Some text xs4_33

You type:

{{LinkCatagolue|code=xs4_33|style=raw}}

You see:

xs4_33

See also

External link templates