Sjabloon:Cite: verschil tussen versies

 
(17 tussenliggende versies door 3 gebruikers niet weergegeven)
Regel 1: Regel 1:
 
<noinclude>
 
<noinclude>
  +
[[Category:EMont core]]
 
This is the "Cite" template.
 
This is the "Cite" template.
 
It should be called in the following format:
 
It should be called in the following format:
Regel 9: Regel 10:
 
}}
 
}}
 
</pre>
 
</pre>
  +
<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.
 
Edit the page to see the template text.
</noinclude><includeonly>
+
</noinclude><includeonly>{{#vardefine:varResource|{{{resource|}}} }}{{#vardefine:varName|{{#if: {{{name|}}}| {{{name}}} | {{#show: {{#var:varResource}} | ?Dct:title }} }} }}{{#vardefine:varResourceName|{{#replace:{{#replace:{{#var:varResource}}|File:|Media:}}|Bestand:|Media:}} }}{{#set:Reference={{#var:varResource}} }}{{#ifeq:{{#sub:{{#var:varResourceName}}|0|6}}|Media:|[[{{#var:varResourceName}}|{{#var:varName}}]] | {{External link|resource={{#var:varResourceName}}|name={{#var:varName}} }} }}{{#if: {{{optional|}}}| <nowiki> </nowiki>({{{optional}}})|}}</includeonly>
Dit is de resource: {{{resource|}}}
 
 
 
{{#vardefine:varResource|{{{resource|}}} }}{{#vardefine:varName|{{#if: {{{name|}}}| {{{name}}} | {{#show: {{#var:varResource}} | ?Dct:title }} }} }}{{#set:Reference={{#var:varResource}} }}[[{{#replace:{{#var:varResource}}|File:|Media:}}|{{#var:varName}}]]{{#if: {{{optional|}}}| <nowiki> </nowiki>({{{optional}}})|}}</includeonly>
 

Huidige versie van 17 mrt 2016 om 15:07

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

{{Cite
|resource=
|name=
|optional=
}}

Cite

Sjabloonparameters

Parameter Beschrijving Type Status
Resource resource

Link to a resource

Standaard
leeg
Voorbeeld
leeg
Automatische waarde
leeg
Pagina vereist
Name name

Name of resource in page

Standaard
leeg
Voorbeeld
leeg
Automatische waarde
leeg
Tekenreeks voorgesteld
Optional optional

Optional info

Standaard
leeg
Voorbeeld
leeg
Automatische waarde
leeg
Tekenreeks optioneel

Edit the page to see the template text.

HZ University of Applied Sciences
Rijkswaterstaat, Ministerie van Infrastructuur en Milieu
Projectbureau Zeeweringen
Waterschap Scheldestromen
Provincie Zeeland
Deltares