Template:Dablink/doc: Difference between revisions
(New page: {{documentation subpage}} {{tlx|dablink|''text''}} formats text into the standard style for a {{SITENAME}} hatnote<!--Wikipedia hatnote-->, a short note placed at the top o...) |
mNo edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
== Examples == | == Examples == | ||
===No break=== | ===No break=== | ||
:<code><nowiki>{{dablink|See also [[ | :<code><nowiki>{{dablink|See also [[:Category:Page 3 girls]]. For the American porn star, see [[Samantha Fox (porn star)]].}}</nowiki></code> | ||
gives | gives | ||
{{dablink|See also [[ | {{dablink|See also [[:Category:Page 3 girls]]. For the American porn star, see [[Samantha Fox (porn star)]].}} | ||
===Break using <nowiki><br/></nowiki>=== | ===Break using <nowiki><br/></nowiki>=== | ||
:<code><nowiki>{{dablink|See also [[ | :<code><nowiki>{{dablink|See also [[:Category:Page 3 girls]].<br/>For the American porn star, see [[Samantha Fox (porn star)]].}}</nowiki></code> | ||
gives | gives | ||
{{dablink|See also [[ | {{dablink|See also [[:Category:Page 3 girls]].<br/>For the American porn star, see [[Samantha Fox (porn star)]].}} | ||
<includeonly> | <includeonly> | ||
Latest revision as of 14:45, 9 June 2008
{{Dablink|text}} formats text into the standard style for a Boobpedia hatnote, a short note placed at the top of an article to provide disambiguation of closely related terms or summarise a topic, explaining its boundaries.
Usage and purpose
This template is primarily used to add disambiguation links (dab is Boobpedia shorthand for "disambiguation") to the top of article pages. It places an HTML div- / div block around the material given as its only argument, which provides standardized formatting (contents are indented and italicized in most displays); it also isolates the contained code to make sure that it is interpreted correctly.
This template is also used as the "meta-template" for additional specialized disambiguation link templates; see {{Otheruses4}}.
Contrary to what its name may imply, the template does not automatically create links of any kind. Links and other desired formatting must be explicitly added.
Examples
No break
{{dablink|See also [[:Category:Page 3 girls]]. For the American porn star, see [[Samantha Fox (porn star)]].}}
gives
Break using <br/>
{{dablink|See also [[:Category:Page 3 girls]].<br/>For the American porn star, see [[Samantha Fox (porn star)]].}}
gives