Leading a team online

From apppm
Revision as of 09:59, 18 September 2015 by Michaelnguyendtu (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Template:Lua

When a Wikipedia article is large, it is often written in summary style. This template is used after the heading of the summary, to link to the sub-article that has been summarized. For Category namespace, please use Template:Tl instead.

Use of this template should be restricted to the purposes described above. It is not to be used as a substitute for inline links or Template:Tl template. The latter is used when the section expounds a specific aspect of the topic instead of summarizing its article. For example, in phthalate, the template under the "Endocrine disruptor" section should not be Template:Tlf, because the section specifically deals with phthalate as an endocrine disruptor and not endocrine disruptors in general.

Template:TOC limit

Usage

Basic usage
Template:Tlf
All parameters
Template:((main | page1 | page2 | page3 | ... | l1 = label1 | l2 = label2 | l3 = label3 | ... | selfref = yesTemplate:))

Parameters

  • 1, 2, 3, ... - the pages to link to. If no page names are specified, the current page name is used instead (without the namespace prefix). Categories and files are automatically escaped with the colon trick, and links to sections are automatically formatted as page § section, rather than the MediaWiki default of page#section.
  • l1, l2, l3, ...; optional labels for each of the pages to link to (this is for articles where a piped link would be used). Note that the extra parameters use a lower case 'L', for example, l1, not 11.
  • selfref - if set to "yes", "y", "true" or "1", adds the CSS class "selfref". This is used to denote self-references to Wikipedia. See Template:Selfref for more information. This is only necessary in articles and other content (e.g. templates) that will appear in articles, and need not be added for uses of this template on Wikipedia: namespace pages.

Examples

Template:Hatnote templates documentation Template:Collapse top Template:TemplateDataHeader <templatedata> { "description": "This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display, in italics, \"Main article: Article 1, Article 2 and Article 3\"", "params": { "1": { "label": "Page 1", "description": "The name of the first page that you want to link to. If this is not specified, the current page name (with no namespace prefix) is used instead. ", "type": "string/line", "required": false }, "2": { "label": "Page 2", "description": "The name of the second page that you want to link to.", "type": "string/line", "required": false }, "3": { "label": "Page 3", "description": "The name of the third page that you want to link to. More pages can be added using the parameters \"4\", \"5\", \"6\", etc.", "type": "string/line", "required": false }, "l1": { "type": "string/line", "label": "Label 1", "description": "What the first linked page is to be displayed as." }, "l2": { "label": "Label 2", "description": "What the second linked page is to be displayed as.", "type": "string/line" }, "l3": { "label": "Label 3", "description": "What the third linked page is to be displayed as. Other labels can be added by using increasing numbers (starting with \"l4\" for page 4) as parameter names.", "type": "string/line" }, "selfref": { "type": "string/line", "label": "Self reference", "description": "Set to \"yes\" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site." } } } </templatedata> Template:Collapse bottom


Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox