Regel 1: | Regel 1: | ||
+ | <noinclude> |
||
+ | [[Category:EMont core]] |
||
+ | This is the "Internal link" template. |
||
+ | It should be called in the following format: |
||
+ | <pre> |
||
+ | {{Internal link |
||
+ | |link= |
||
+ | |name= |
||
+ | }} |
||
+ | </pre> |
||
<templatedata> |
<templatedata> |
||
{ |
{ |
||
Regel 17: | Regel 27: | ||
} |
} |
||
</templatedata> |
</templatedata> |
||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Edit the page to see the template text. |
Edit the page to see the template text. |
||
</noinclude>{{#vardefine:varLink|{{{link|}}}}}{{#vardefine:varName|{{{name|}}}}}{{#if: {{#show: {{PAGENAME}} | ?Model link | link=none}} | {{#vardefine:varIntLink|{{#var:varLink}}}} | {{#vardefine:varIntLink|{{#show: {{#var:varLink}} | ?Model link | link=none | default={{#var:varLink}}}}}}}}{{Refers | Element link={{#var:varIntLink}} | Element link note={{#var:varName}}}}[[{{#var:varLink}}|{{#if: {{#var:varName}}|{{#var:varName}}|{{#var:varLink}}}}]] |
</noinclude>{{#vardefine:varLink|{{{link|}}}}}{{#vardefine:varName|{{{name|}}}}}{{#if: {{#show: {{PAGENAME}} | ?Model link | link=none}} | {{#vardefine:varIntLink|{{#var:varLink}}}} | {{#vardefine:varIntLink|{{#show: {{#var:varLink}} | ?Model link | link=none | default={{#var:varLink}}}}}}}}{{Refers | Element link={{#var:varIntLink}} | Element link note={{#var:varName}}}}[[{{#var:varLink}}|{{#if: {{#var:varName}}|{{#var:varName}}|{{#var:varLink}}}}]] |
This is the "Internal link" template. It should be called in the following format:
{{Internal link |link= |name= }}
<templatedata> { "description": "Internal link", "params": { "link": { "label": "Link", "type": "wiki-page-name", "required": true, "description": "Link to page" }, "name": { "label": "Name", "description": "Name of link in this page", "suggested": true } } } </templatedata> Edit the page to see the template text.