Sjabloon:Internal link: verschil tussen versies

 
(4 tussenliggende versies door dezelfde gebruiker niet weergegeven)
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=
  +
|resource=
  +
|name=
  +
}}
  +
</pre>
 
<templatedata>
 
<templatedata>
 
{
 
{
Regel 5: Regel 16:
 
"link": {
 
"link": {
 
"label": "Link",
 
"label": "Link",
  +
"description": "Link to page",
 
"type": "wiki-page-name",
 
"type": "wiki-page-name",
"required": true,
+
"suggested": true
"description": "Link to page"
+
},
  +
"resource": {
  +
"label": "Link",
  +
"description": "Resource containing link to page",
  +
"type": "wiki-page-name",
  +
"suggested": true
 
},
 
},
 
"name": {
 
"name": {
 
"label": "Name",
 
"label": "Name",
 
"description": "Name of link in this page",
 
"description": "Name of link in this page",
  +
"type": "string",
 
"suggested": true
 
"suggested": true
 
}
 
}
Regel 17: Regel 35:
 
}
 
}
 
</templatedata>
 
</templatedata>
<noinclude>
 
[[Category:EMont core]]
 
This is the "Internal link" template.
 
It should be called in the following format:
 
<pre>
 
{{Internal link
 
|link=
 
|name=
 
}}
 
</pre>
 
 
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>{{#if: {{{resource|}}}| {{#vardefine:varLink|{{#show: {{{resource|}}} | ?Wikipage | link=none | default={{{resource|}}}}}}}|{{#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}}}}]]

Huidige versie van 15 jun 2016 om 18:17

This is the "Internal link" template. It should be called in the following format:

{{Internal link
|link=
|resource=
|name=
}}

<templatedata> { "description": "Internal link", "params": { "link": { "label": "Link", "description": "Link to page", "type": "wiki-page-name", "suggested": true }, "resource": { "label": "Link", "description": "Resource containing link to page", "type": "wiki-page-name", "suggested": true }, "name": { "label": "Name", "description": "Name of link in this page", "type": "string", "suggested": true } } } </templatedata> Edit the page to see the template text.

"<span class="smw-highlighter" data-type="4" data-state="inline" data-title="Fout"><span class="smwtticon warning"></span><div class="smwttcontent">&quot;:&quot; kan niet gebruikt worden als paginanaam.</div></span>" kan niet gebruikt worden als paginanaam.
[[|]]