User:Levi OP/Templates/Text fragment/doc
Appearance
This is a documentation subpage for User:Levi OP/Templates/Text fragment. It may contain usage information, categories and other content that is not part of the original user template page. |
{{Text fragment}} is a template which creates links to text fragments on pages. This allows users to link to parts of pages where there is no section or anchor, but to text on the page. Note that this feature is only supported on Chromium based browsers versions 80 and above, so should probably not be used anywhere permanently (like project pages) for cross-browser support.
Usage
[edit]The template takes a page name, text to search for, and an optional display text
{{Text fragment|Page|Text|Display text}}
Examples
[edit]Linking to the text "A male cat is called a tom or tomcat" on the Cat page.
Markup | Renders as |
---|---|
{{Text fragment|Cat|A male cat is called a tom or tomcat|male cats}} |
|