Components/Links
Jump to navigation
Jump to search
Internal Links[edit | edit source]
[[Main Page|Send me home]]
Example: Send me home
External Links[edit | edit source]
[https://webmo.info WebMo Website]
Example: WebMo Website
External Links that behave like internal links[edit | edit source]
This is useful if you have a link with URL parameters. Note CSS class="plainlinks" in the <span>-wrapper:
This class comes with MediWiki core and hides the symbol for external links.
In addition this class is configured in LocalSeetings.php for Extension:LinkTarget and overwrites the standard behavior for external links (opens in the same browser tab instead of a new one).
Note: For external links you need to use an underscore (_) for pagenames with spaces (Main_Page instead of Main Page).
<span class="plainlinks">[{{SERVER}}/wiki/Main_Page?name={{CURRENTUSER}} Send me home with my name as URL parameter]</span>
Example: Send me home with my name as URL parameter
Note: At target page URL parameters can be used as follows:
{{#urlget:parameter-name|default-value}}