Link/Hash – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Add :Category: support, Remove underscore removal) |
Lou Montana (talk | contribs) m (Text replacement - "<tt>([^ =]+)<\/tt>" to "{{hl|$1}}") |
||
Line 7: | Line 7: | ||
}}}}]] | }}}}]] | ||
|-no link specified- | |-no link specified- | ||
}}</includeonly><noinclude>Creates an auto-formatted hash link (e.g | }}</includeonly><noinclude>Creates an auto-formatted hash link (e.g {{hl|#value}} or {{hl|page#anchor}}). | ||
== Usage == | == Usage == | ||
{{<nowiki/>HashLink|'''''hashLink'''''|'''''text'''''}} | {{<nowiki/>HashLink|'''''hashLink'''''|'''''text'''''}} | ||
* hashLink: wiki hash link, e.g | * hashLink: wiki hash link, e.g {{hl|#toc}} or {{hl|Arma 3#Key features}} | ||
* text: display text | * text: display text | ||
Revision as of 10:33, 16 November 2021
Creates an auto-formatted hash link (e.g #value or page#anchor).
Usage
{{HashLink|hashLink|text}}
- hashLink: wiki hash link, e.g #toc or Arma 3#Key features
- text: display text
Code | Result |
---|---|
{{HashLink}} | -no link specified- |
{{HashLink|#toc}} | toc |
{{HashLink|#Multipart Hashlink}} | Multipart Hashlink |
{{HashLink|#Multipart Hashlink|Display text}} | Display text |
{{HashLink|Arma_3#Key_features}} | Arma_3 - Key_features |
{{HashLink|Arma 3#Key features}} | Arma 3 - Key features |
{{HashLink|Arma 3#Key features|A3's Key Features}} | A3's Key Features |
Edge Cases | |
.{{HashLink|Arma 3#Key features}}. | .Arma 3 - Key features. |
{{HashLink|##if}} | #if |
{{HashLink|##if#then##else}} | #if#then##else |
{{HashLink|PreProcessor Commands##if}} | PreProcessor Commands - #if |
{{HashLink|CT_LISTNBOX#BIS_fnc_initList example}} | CT_LISTNBOX - BIS_fnc_initList example |
{{HashLink|:Category:Community Tools#Code Edition}} | Community Tools - Code Edition |