Link/Hash – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (HashLink → Link/Hash) |
Lou Montana (talk | contribs) m (Fix example) |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
| {{#ifeq:{{#pos:{{Trim|{{{1}}}}}|#}}|0 | | {{#ifeq:{{#pos:{{Trim|{{{1}}}}}|#}}|0 | ||
| {{#replace:{{#sub:{{Trim|{{{1}}}}}|1}}|#|#}} | | {{#replace:{{#sub:{{Trim|{{{1}}}}}|1}}|#|#}} | ||
| {{# | | {{#ifeq: {{NAMESPACENUMBER}} | {{NAMESPACENUMBER:{{#explode:{{Trim|{{{1}}}}}|#|0|0|2}}}} | ||
}}}}]] | | {{#explode:{{Trim|{{PAGENAME:{{#replace:{{{1}}}|:Category|Category}}}}}}|#|0|0|2}} - {{#explode:{{Trim|{{{1}}}}}|#|1|2}} | ||
| {{#explode:{{Trim|{{#replace:{{{1}}}|:Category|Category}}}}|#|0|0|2}} - {{#explode:{{Trim|{{{1}}}}}|#|1|2}} | |||
}} | |||
}} | |||
}}]] | |||
| -no link specified- | | -no link specified- | ||
}}</includeonly><noinclude>{{Doc/Template | }}</includeonly><noinclude>{{Doc/Template | ||
Line 31: | Line 35: | ||
<nowiki>{{Link/Hash|##if}}</nowiki><br> | <nowiki>{{Link/Hash|##if}}</nowiki><br> | ||
<nowiki>{{Link/Hash|##if#then##else}}</nowiki><br> | <nowiki>{{Link/Hash|##if#then##else}}</nowiki><br> | ||
<nowiki>{{Link/Hash|PreProcessor Commands##if}}</nowiki><br> | |||
<nowiki>{{Link/Hash|CT_LISTNBOX#BIS_fnc_initList example}}</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|:Category:Community Tools#Code Edition}}</nowiki><br> | ||
<nowiki>{{Link/Hash|Arma Reforger:Server Hosting#Dedicated Server}}</nowiki> | <nowiki>{{Link/Hash|Arma Reforger:Server Hosting#Dedicated Server}}</nowiki><br> | ||
<nowiki>{{Link/Hash|Template:Link#Usage}}</nowiki> | |||
|result7= <nowiki/> | |result7= <nowiki/> | ||
.{{Link/Hash|Arma 3#Key features}}.<br> | .{{Link/Hash|Arma 3#Key features}}.<br> | ||
Line 41: | Line 47: | ||
{{Link/Hash|CT_LISTNBOX#BIS_fnc_initList example}}<br> | {{Link/Hash|CT_LISTNBOX#BIS_fnc_initList example}}<br> | ||
{{Link/Hash|:Category:Community Tools#Code Edition}}<br> | {{Link/Hash|:Category:Community Tools#Code Edition}}<br> | ||
{{Link/Hash|Arma Reforger:Server Hosting#Dedicated Server}} | {{Link/Hash|Arma Reforger:Server Hosting#Dedicated Server}}<br> | ||
{{Link/Hash|Template:Link#Usage}} | |||
}}</noinclude> | }}</noinclude> |
Latest revision as of 21:07, 1 December 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. |