Link/Hash – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Lou Montana moved page Template:HashLink to Template:Link/Hash: Name standard) |
Lou Montana (talk | contribs) m (HashLink → Link/Hash) |
||
Line 7: | Line 7: | ||
}}}}]] | }}}}]] | ||
| -no link specified- | | -no link specified- | ||
}}</includeonly><noinclude>Creates an auto-formatted hash link (e.g {{hl|#value}} or {{hl|page#anchor}}). | }}</includeonly><noinclude>{{Doc/Template | ||
|descr= Creates an auto-formatted hash link (e.g {{hl|#value}} or {{hl|page#anchor}}). | |||
|param1= hashLink | |||
|descr1= wiki hash link, e.g {{hl|#toc}} or {{hl|Arma 3#Key features}} | |||
|param2= text | |||
|descr2= display text | |||
|example1= <nowiki>{{Link/Hash}}</nowiki> | |||
|result1= {{Link/Hash}} | |||
|example2= <nowiki>{{Link/Hash|setDir}}</nowiki> | |||
|result2= {{Link/Hash|setDir}} | |||
|example3= <nowiki/> | |||
<nowiki>{{Link/Hash|#toc}}</nowiki><br> | |||
<nowiki>{{Link/Hash|#Multipart Hashlink}}</nowiki> | |||
| {{ | |result3= {{Link/Hash|#toc}}<br>{{Link/Hash|#Multipart Hashlink}} | ||
| | |example4= <nowiki>{{Link/Hash|#Multipart Hashlink|Display text}}</nowiki> | ||
|result4= {{Link/Hash|#Multipart Hashlink|Display text}} | |||
| {{ | |example5= <nowiki>{{Link/Hash|Arma_3#Key_features}}</nowiki><br><nowiki>{{Link/Hash|Arma 3#Key features}}</nowiki> | ||
| | |result5= {{Link/Hash|Arma_3#Key_features}}<br>{{Link/Hash|Arma 3#Key features}} | ||
|example6= <nowiki>{{Link/Hash|Arma 3#Key features|A3's Key Features}}</nowiki> | |||
|result6= {{Link/Hash|Arma 3#Key features|A3's Key Features}} | |||
|example7= <nowiki/> | |||
<nowiki>.{{Link/Hash|Arma 3#Key features}}.</nowiki><br> | |||
<nowiki>{{Link/Hash|##if}}</nowiki><br> | |||
| | <nowiki>{{Link/Hash|##if#then##else}}</nowiki><br> | ||
<nowiki>{{Link/Hash|CT_LISTNBOX#BIS_fnc_initList example}}</nowiki><br> | |||
| {{ | <nowiki>{{Link/Hash|:Category:Community Tools#Code Edition}}</nowiki><br> | ||
| | <nowiki>{{Link/Hash|Arma Reforger:Server Hosting#Dedicated Server}}</nowiki> | ||
|result7= <nowiki/> | |||
.{{Link/Hash|Arma 3#Key features}}.<br> | |||
{{Link/Hash|##if}}<br> | |||
{{Link/Hash|##if#then##else}}<br> | |||
| {{ | {{Link/Hash|PreProcessor Commands##if}}<br> | ||
| | {{Link/Hash|CT_LISTNBOX#BIS_fnc_initList example}}<br> | ||
{{Link/Hash|:Category:Community Tools#Code Edition}}<br> | |||
| {{ | {{Link/Hash|Arma Reforger:Server Hosting#Dedicated Server}} | ||
| | }}</noinclude> | ||
| | |||
Revision as of 17:12, 4 January 2023
Creates an auto-formatted hash link (e.g #value or page#anchor).
This template is used on these pages.
Usage
{{Link/Hash|hashLink|text}}
- hashLink: wiki hash link, e.g #toc or Arma 3#Key features
- text: display text
Code | Result |
---|---|
{{Link/Hash}} | -no link specified- |
{{Link/Hash|setDir}} | setDir - |
{{Link/Hash|#toc}} |
toc Multipart Hashlink |
{{Link/Hash|#Multipart Hashlink|Display text}} | Display text |
{{Link/Hash|Arma_3#Key_features}} {{Link/Hash|Arma 3#Key features}} |
Arma_3 - Key_features Arma 3 - Key features |
{{Link/Hash|Arma 3#Key features|A3's Key Features}} | A3's Key Features |
.{{Link/Hash|Arma 3#Key features}}. |
.Arma 3 - Key features. |