Regel 39: | Regel 39: | ||
{{#if: {{#show: | {{#var:varResource}} | ?Wikipage}} | |
{{#if: {{#show: | {{#var:varResource}} | ?Wikipage}} | |
||
− | |||
− | {{Internal link|resource={{#var: |
+ | {{Internal link|resource={{#var:varResource}}|name={{#var:varName}} }} | |
− | |||
− | ({{#show: | {{#var:varResource}} | ?Dct:creator}}, {{#show: | {{#var:varResource}} | ?Dct:date}}) |
+ |
{{{name|}}} ({{#show: | {{#var:varResource}} | ?Dct:creator}}, {{#show: | {{#var:varResource}} | ?Dct:date}}) |
}} |
}} |
This is the "Cite" template. It should be called in the following format:
{{Cite |resource= |name= |optional= }}
<templatedata> { "description": "Cite", "params": { "resource": { "label": "Resource", "description": "Link to a resource", "type": "wiki-page-name", "required": true }, "name": { "label": "Name", "description": "Name of resource in page", "type": "string", "suggested": true }, "optional": { "label": "Optional", "description": "Optional info", "type": "string" } } } </templatedata> Edit the page to see the template text.