Components/Links: Difference between revisions

From Visual Data Wiki
Jump to navigation Jump to search
(Created page with "'''Internal Links''' <syntaxhighlight lang="wikitext">Send me home</syntaxhighlight> Send me home '''External Links''' <syntaxhighlight lang="wikitext">[https://webmo.info WebMo Website]</syntaxhighlight> [https://webmo.info WebMo Website] '''External Links that behaves like internal links''' This is useful if you have a link with URL parameters. There are two CSS classes in the <span>-wrapper: # plainlinks - This MediWiki core class hides t...")
Tag: 2017 source edit
 
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
'''Internal Links'''
'''Internal Links'''
<syntaxhighlight lang="wikitext">[[Main_Page|Send me home]]</syntaxhighlight>
<syntaxhighlight lang="wikitext">[[Main Page|Send me home]]</syntaxhighlight>
[[Main_Page|Send me home]]
[[Main Page|Send me home]]


'''External Links'''
'''External Links'''
Line 13: Line 13:
# link-target-self - This class comes with [https://www.mediawiki.org/wiki/Extension:LinkTarget Extension:LinkTarget] and overwrites the standard behavior for external links (opens in the same tab instead of a new one).
# link-target-self - This class comes with [https://www.mediawiki.org/wiki/Extension:LinkTarget Extension:LinkTarget] and overwrites the standard behavior for external links (opens in the same tab instead of a new one).


<syntaxhighlight lang="html"><span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main Page?user={{CURRENTUSER}} Send me home with my name as URL parameter]</span></syntaxhighlight>
<syntaxhighlight lang="html"><span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main_Page?user={{CURRENTUSER}} Send me home with my name as URL parameter]</span></syntaxhighlight>
<span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main Page?user={{CURRENTUSER}} Send me home with my name as URL parameter]</span>
<span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main_Page?user={{CURRENTUSER}} Send me home with my name as URL parameter]</span>

Revision as of 12:33, 13 March 2024

Internal Links

[[Main Page|Send me home]]

Send me home

External Links

[https://webmo.info WebMo Website]

WebMo Website

External Links that behaves like internal links This is useful if you have a link with URL parameters. There are two CSS classes in the -wrapper:

  1. plainlinks - This MediWiki core class hides the symbol for external links
  2. link-target-self - This class comes with Extension:LinkTarget and overwrites the standard behavior for external links (opens in the same tab instead of a new one).
<span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main_Page?user={{CURRENTUSER}} Send me home with my name as URL parameter]</span>

Send me home with my name as URL parameter