Components/Links: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: 2017 source edit |
No edit summary Tag: 2017 source edit |
||
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=" | <syntaxhighlight lang="wikitext"><span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main_Page?name={{CURRENTUSER}} Send me home with my name as URL parameter]</span></syntaxhighlight> | ||
<span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main_Page?name={{CURRENTUSER}} Send me home with my name as URL parameter]</span> | <span class="plainlinks link-target-self">[{{SERVER}}/wiki/Main_Page?name={{CURRENTUSER}} Send me home with my name as URL parameter]</span> |
Revision as of 12:34, 13 March 2024
Internal Links
[[Main Page|Send me home]]
External Links
[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 -wrapper:
- plainlinks - This MediWiki core class hides the symbol for external links
- 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?name={{CURRENTUSER}} Send me home with my name as URL parameter]</span>