Template:Hardlink: Difference between revisions

From railML 3 Wiki
Jump to navigation Jump to search
[checked revision][checked revision]
No edit summary
Tag: Reverted
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[{{Hardlink/version|{{{wiki|}}}}}{{{between|wiki/}}}{{{1}}} {{{2|{{{1}}}}}}][[category:Hardlink]]</includeonly><noinclude>
<includeonly>[{{Hardlink/version|{{{wiki|}}}}}/{{{between|wiki/}}}{{{1}}} {{{2|{{{1}}}}}}][[category:Hardlink]]</includeonly><noinclude>
== Usage ==
== Usage ==
Template to produce and categorize internal links that have to be realized as external hardlinks to transmit link options.
Template to produce and categorize internal links that have to be realized as external hardlinks to transmit link options. The occurances will be collected in [[:category:Hardlink]]. Requires [[Template:Hardlink/version]]
{{note|1=As link options usually contain equality signs, remember to make the first argument explicit (eg:1=Special:AllPages?namespace=8)}}
{{note|Hardlinks should stay an exception. Preferably, use internal links as documented under {{wiki|Help:Links#Internal_links|project=mw}}}}
== Arguments ==
== Arguments ==
*1 (required): the target. This might be an article name plus options.
*1 (required): the target. This might be an article name plus options.
Line 8: Line 10:
*between: By default ''wiki/'' to get you to the article room. might as well be eg. ''api/''.
*between: By default ''wiki/'' to get you to the article room. might as well be eg. ''api/''.
== Examples ==
== Examples ==
{{Hardlink|Special:AllPages?namespace=8}}
{{Hardlink|1=Special:AllPages?namespace=8}}


{{Hardlink|Special:AllPages?namespace=8|wiki=3}}
{{Hardlink|1=Special:AllPages?namespace=8|wiki=3}}


{{Hardlink|Special:AllPages?namespace=8|wiki=r}}
{{Hardlink|1=Special:AllPages?namespace=8|wiki=r}}


{{Hardlink|api.php|wiki=2|between=}}
{{Hardlink|1=api.php|The {{rml|2|link=no}} api|wiki=2|between=}}


[[Category:Template]]
[[Category:Template]]
{{interwiki|2=all}}
</noinclude>
</noinclude>

Latest revision as of 16:29, 31 March 2025

Usage

Template to produce and categorize internal links that have to be realized as external hardlinks to transmit link options. The occurances will be collected in category:Hardlink. Requires Template:Hardlink/version

🗒️ As link options usually contain equality signs, remember to make the first argument explicit (eg:1=Special:AllPages?namespace=8)  
🗒️ Hardlinks should stay an exception. Preferably, use internal links as documented under Help:Links#Internal_links (Wiki banner.png)  

Arguments

  • 1 (required): the target. This might be an article name plus options.
  • 2: A link text
  • wiki: Direct the link to other railML® related wikis
  • between: By default wiki/ to get you to the article room. might as well be eg. api/.

Examples

Special:AllPages?namespace=8

Special:AllPages?namespace=8

Special:AllPages?namespace=8

railML® 2 api The railML® 2 api