Template:Plink/doc
From Wikinews, the free news source you can write!
| This is a documentation subpage for Template:Plink (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage [edit]
This creates a link with a tooltip. Warning: many people never notice tooltips, so do not use them for critical information.
- First parameter is page to link to (this takes internal links)
- 2nd parameter is text to link. (defaults to first param)
- 3rd is the tooltip (title in html attribute speak).
Examples:
- {{plink|Wikinews:Sandbox|foo|a tootip!}} → foo
- {{plink|Wikinews:Sandbox|3=hey look no second parameter!}} → Wikinews:Sandbox
- {{plink|Main page|The News|You should be reading if you aren't writing!|highlight=yes}} → The News?
- {{plink|Main Page|bar|3=If the tooltip has an = sign in it, you have to start the parameter with 3=}} bar
- {{plink|Wikinews:Sandbox|2=you also have to start the wikitext with 2= if it has an = sign in it.|another tootip!}} → you also have to start the wikitext with 2=, and the tooltip with 3= if the wikitext has an = sign in it.
See also [edit]
- {{tooltip}}
