Link/Hash – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(Add namespace trim (no css for now))
m (Fix example)
 
Line 35: 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>
{{Link/Hash|PreProcessor Commands##if}}<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>

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
Examples
Code Result
{{Link/Hash}} -no link specified-
{{Link/Hash|setDir}} setDir -

{{Link/Hash|#toc}}
{{Link/Hash|#Multipart Hashlink}}

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}}.
{{Link/Hash|##if}}
{{Link/Hash|##if#then##else}}
{{Link/Hash|PreProcessor Commands##if}}
{{Link/Hash|CT_LISTNBOX#BIS_fnc_initList example}}
{{Link/Hash|:Category:Community Tools#Code Edition}}
{{Link/Hash|Arma Reforger:Server Hosting#Dedicated Server}}
{{Link/Hash|Template:Link#Usage}}

.Arma 3 - Key features.
#if
#if#then##else
PreProcessor Commands - #if
CT_LISTNBOX - BIS_fnc_initList example
Category:Community Tools - Code Edition
Arma Reforger:Server Hosting - Dedicated Server
Link - Usage