URL highlighting text tinkering: Difference between revisions
Jump to navigation
Jump to search
Bryandamon (talk | contribs) No edit summary |
Bryandamon (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
URLs to wikis can highlight sections of text using the pages '''URL''', followed by <code>#:~:text=</code>, | URLs to wikis can highlight sections of text using the pages '''URL''', followed by <code>#:~:text=</code>, and ending with the '''URL encoded''' section of the text. | ||
Revision as of 02:01, 3 June 2020
URLs to wikis can highlight sections of text using the pages URL, followed by #:~:text=
, and ending with the URL encoded section of the text.
To build the link:
- Start with a normal external link bracket:
[
- Then add the pages URL, for example:
https://mwstake.org/mwstake/wiki/URL_highlighting_text_tinkering
- Add this little snippet:
#:~:text=
- Add the URL PATH encoded section of the text you want to highlight using
{{urlencode:string|PATH}}
{{urlencode:highlight sections of text|PATH}}
- Which results in:
- highlight%20sections%20of%20text
- Then finish with a space (normal for an external link), the alternative text (probably ideal since the URL will likely be long), and then a closing bracket:
Cool highlighted link]
- Putting this all together, you get:
[https://mwstake.org/mwstake/wiki/URL_highlighting_text_tinkering#:~:text={{urlencode:highlight sections of text|PATH}} Cool tip]
- Which results in (need to open in a new tab):