Difference between revisions of "Template:Broader2/doc"

From blackwiki
Jump to navigation Jump to search
imported>Fgnievinski
(Created page with '{{documentation subpage}} This template is used to make summary style explicit. It looks like this: {{broader2|Article1|Article2}}...')
 
imported>Nihiltres
(Redirected page to Template:Broader/doc per redirect of Template:Broader2 to Template:Broader)
 
Line 1: Line 1:
{{documentation subpage}}
+
#REDIRECT [[Template:Broader/doc]]
This template is used to make [[Wikipedia:Summary style|summary style]] explicit. It looks like this:
 
 
 
{{broader2|Article1|Article2}}
 
 
 
It is used in sections for which there is also a separate article on the subject.
 
 
 
== Usage ==
 
 
 
; Basic usage:
 
{{broader2|''article1''|''article2''}}
 
 
 
== Parameters ==
 
 
 
This template accepts the following parameters:
 
* <code>1</code> - the page to link to (required). Categories and files are automatically escaped with the [[Help:Colon trick|colon trick]], and links to sections are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''.
 
* <code>2</code> - the second page to link to (required). Categories and files are automatically escaped with the [[Help:Colon trick|colon trick]], and links to sections are automatically formatted as ''page § section'', rather than the MediaWiki default of ''page#section''.
 
 
 
== Examples ==
 
 
 
* <code><nowiki>{{broader2|Article2|Article2}}</nowiki></code> &rarr; {{broader2|Article1|Article2}}
 
 
 
{{Hatnote templates}}
 
{{Collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}}
 
{{TemplateData header|noheader=1}}
 
<templatedata>
 
{
 
  "description": "This template is used to show readers where to find broader coverage related to a particular topic. It is usually placed at the top of a section or article.",
 
  "params": {
 
    "1": {
 
      "label": "Article",
 
      "description": "The name of the article that you want to link to",
 
      "type": "string",
 
      "required": true
 
    },
 
    "2": {
 
      "label": "Topic",
 
      "description": "A brief description of the topic related to which a broader coverage will be provided. If left blank, the template will read 'For broader coverage related to this topic...'",
 
      "type": "string",
 
      "required": false
 
    },
 
    "selfref": {
 
      "type": "string/line",
 
      "label": "Self reference",
 
      "description": "Set to \"yes\" if the hatnote text is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site. (E.g. \"For the Wikipedia Sandbox, see [[WP:SAND]]\".)"
 
    },
 
    "category": {
 
      "label": "Category",
 
      "description": "Set to \"no\", \"n\", \"false\", or \"0\" to suppresses the error tracking category (Category:Hatnote templates with errors). This only has an effect if the hatnote text is omitted."
 
    }
 
  }
 
}
 
</templatedata>
 
{{Collapse bottom}}
 
 
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
[[Category:Cross-reference templates|{{PAGENAME}}]]
 
[[Category:Wikipedia page-section templates|{{PAGENAME}}]]
 
[[Category:Exclude in print|{{PAGENAME}}]]
 
[[Category:Hatnote templates]]
 
 
 
}}</includeonly>
 

Latest revision as of 20:02, 18 April 2020