Link/Internal – Template
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Fix category link to friendlier name) |
Lou Montana (talk | contribs) m (Fix link text) |
||
Line 10: | Line 10: | ||
| {{Link/Hash|{{{link}}}|{{{text|}}}}} | | {{Link/Hash|{{{link}}}|{{{text|}}}}} | ||
}} | }} | ||
| {{#ifeq: {{#pos:{{{link}}}|Category:}} | 0 | [[:{{{link}}} | {{{text|{{PAGENAME:{{{link}}}}} Category | | {{#ifeq: {{#pos:{{{link}}}|Category:}} | 0 | [[:{{{link}}} | {{#if:{{{text|}}}|{{{text}}}|{{PAGENAME:{{{link}}}}} Category}}]] | [[{{{link}}} | {{#if:{{{text|}}}|{{{text}}}|{{PAGENAME:{{{link}}}}} Category}}]]}} | ||
}} | }} | ||
| -no link provided-{{TemplateCase||[[Category:Link template usage error]]}} | | -no link provided-{{TemplateCase||[[Category:Link template usage error]]}} | ||
Line 41: | Line 41: | ||
|result5= {{Link/Internal|link= setDir#Example 1}} | |result5= {{Link/Internal|link= setDir#Example 1}} | ||
|example6= <nowiki>* {{Link/Internal|link= :Category:Scripting Commands}}</nowiki><br><nowiki>* {{Link/Internal|link= Category:Scripting Commands}}</nowiki><br><nowiki>* {{Link/Internal|link= :Category:Scripting Commands|text= All Commands}}</nowiki><br><nowiki>* {{Link/Internal|link= Category:Scripting Commands|text= All Commands}}</nowiki><br><nowiki>* {{Link/Internal|link= Category:Arma 3: Scripting Commands}}</nowiki> | |example6= <nowiki/> | ||
<nowiki>* {{Link/Internal|link= :Category:Scripting Commands}}</nowiki><br> | |||
<nowiki>* {{Link/Internal|link= Category:Scripting Commands}}</nowiki><br> | |||
<nowiki>* {{Link/Internal|link= :Category:Scripting Commands|text= All Commands}}</nowiki><br> | |||
<nowiki>* {{Link/Internal|link= Category:Scripting Commands|text= All Commands}}</nowiki><br> | |||
<nowiki>* {{Link/Internal|link= Category:Arma 3: Scripting Commands}}</nowiki><br> | |||
<nowiki>* {{Link/Internal|link= Category:Arma 3: Scripting Commands |text=}}</nowiki><br> | |||
<nowiki>* {{Link/Internal|link= :Category:Arma 3: Scripting Commands |text=}}</nowiki><br> | |||
<nowiki>* {{Link/Internal|link= Category:Arma 3: Scripting Commands |text= A3's commands}}</nowiki> | |||
|result6= <nowiki/> | |result6= <nowiki/> | ||
* {{Link/Internal|link= :Category:Scripting Commands}} | * {{Link/Internal|link= :Category:Scripting Commands}} | ||
Line 48: | Line 56: | ||
* {{Link/Internal|link= Category:Scripting Commands|text= All Commands}} | * {{Link/Internal|link= Category:Scripting Commands|text= All Commands}} | ||
* {{Link/Internal|link= Category:Arma 3: Scripting Commands}} | * {{Link/Internal|link= Category:Arma 3: Scripting Commands}} | ||
* {{Link/Internal|link= Category:Arma 3: Scripting Commands |text= }} | |||
* {{Link/Internal|link= Category:Arma 3: Scripting Commands |text= A3's commands}} | |||
* {{Link/Internal|link= :Category:Arma 3: Scripting Commands |text= A3's commands}} | |||
|example7= <nowiki>* {{Link/Internal|link= DayZ:Diag Menu}}</nowiki><br><nowiki>* {{Link/Internal|link= Template:Link}}</nowiki><br><nowiki>* {{Link/Internal|link= Template:Link#Usage}}</nowiki> | |example7= <nowiki>* {{Link/Internal|link= DayZ:Diag Menu}}</nowiki><br><nowiki>* {{Link/Internal|link= Template:Link}}</nowiki><br><nowiki>* {{Link/Internal|link= Template:Link#Usage}}</nowiki> |
Latest revision as of 14:44, 16 October 2024
This template creates an internal link (within the BIKI). It uses {{Link/Hash}}.
If text is not provided:
- if link's namespace is identical to the current page, only the page name is used as text
- otherwise, the full namespace:pagename is used
This template is used on these pages.
Usage
{{Link/Internal|link|text}}
- link: the internal link
- text: (Optional) the text to display
Code | Result |
---|---|
{{Link/Internal}} | -no link provided- |
{{Link/Internal|link= setDir}} | setDir |
{{Link/Internal|text= setDir's page}} | -no link provided- |
{{Link/Internal|link= setDir|text= setDir's page}} | setDir's page |
{{Link/Internal|link= setDir#Example 1}} | setDir - Example 1 |
* {{Link/Internal|link= :Category:Scripting Commands}} |
|
* {{Link/Internal|link= DayZ:Diag Menu}} * {{Link/Internal|link= Template:Link}} * {{Link/Internal|link= Template:Link#Usage}} |