k (1 versie geïmporteerd: Importeren dump EMont-core hzportfolio-wiki 4 december 2015)
|
|||
(4 tussenliggende versies door 3 gebruikers niet weergegeven) | |||
Regel 1: | Regel 1: | ||
<noinclude> |
<noinclude> |
||
+ | [[Category:EMont core]] |
||
This is the "Convert Link" template. |
This is the "Convert Link" template. |
||
− | Its purpose is to remove the last 3 characters (" VN") of the given string |
+ | Its purpose is to remove the last 3 characters (" VN") of the given string (Link name VN) and turn the remaining string into a link. The optional Alt name is used to provide an alternative display name. |
The template should be called in the following format: |
The template should be called in the following format: |
||
Regel 7: | Regel 8: | ||
{{Convert Link |
{{Convert Link |
||
|Link name VN= |
|Link name VN= |
||
+ | |Alt name= |
||
}} |
}} |
||
</pre> |
</pre> |
||
Edit the page to see the template text. |
Edit the page to see the template text. |
||
− | </noinclude><includeonly>{{#ifeq: {{#sub:{{{Link name VN|}}}|-2}} | VN | [[{{{Link name VN|}}}|{{#sub: {{{Link name VN|}}}|0|-3}}]] | [[{{{Link name VN|}}}]]}} |
+ | </noinclude><includeonly>{{#ifeq: {{#sub:{{{Link name VN|}}}|-2}} | VN | [[{{{Link name VN|}}}|{{#if: {{{Alt name|}}}| {{{Alt name}}} |
|
+ | {{#sub: {{{Link name VN|}}}|0|-3}} }}]] | [[{{{Link name VN|}}}]]}} |
||
</includeonly> |
</includeonly> |
This is the "Convert Link" template. Its purpose is to remove the last 3 characters (" VN") of the given string (Link name VN) and turn the remaining string into a link. The optional Alt name is used to provide an alternative display name.
The template should be called in the following format:
{{Convert Link |Link name VN= |Alt name= }}
Edit the page to see the template text.