Sjabloon:Reference formatter: verschil tussen versies

Regel 15: Regel 15:
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude><includeonly>
 
</noinclude><includeonly>
* {{#vardefine:varResource|{{{1|}}} }}{{#vardefine:varTitle|{{#if: {{{2|}}}| {{{2}}} | {{#var:varResource}} }} }}{{#vardefine:varCount|{{#ask: [[:Bestand:+]][[{{#var:varResource}}]] | format=count}} }}{{#ifeq: {{#var:varCount}} | 1 | [[{{#replace:{{#replace:{{#var:varResource}}|Bestand:|Media:}}|File:|Media:}} | {{#var:varTitle}}]] |  
+
* {{#vardefine:varResource|{{{1|}}} }}{{#vardefine:varTitle|{{#if: {{{2|}}}| {{{2}}} | {{#var:varResource}} }} }}{{#vardefine:varCount|{{#ask: [[:Bestand:+]][[{{#var:varResource}}]] | format=count}} }}{{#ifeq: {{#var:varCount}} | 1 | [[{{#replace:{{#replace:{{#var:varResource}}|Bestand:|Media:}}|File:|Media:}} | {{#var:varTitle}}]] | {{#vardefine:varHyperlink|{{#show:{{#var:varResource}} | ?hyperlink | link=none }} }}{{#if: {{#var:varHyperlink}} | [{{#show:{{#var:varResource}} | ?hyperlink | link=none }} {{#var:varTitle}}] |
 
+
{{#vardefine:varWikipage|{{#show:{{#var:varResource}} | ?Wikipage | link=none }} }}{{#if: {{#var:varWikipage}} | [[{{#var:varWikipage}} | {{#var:varTitle}}]] | {{#var:varTitle}} }} }} }}{{#if: {{{3|}}} | , {{{3}}} }}{{#if: {{{5|}}} | , {{{5}}} }}{{#if: {{{4|}}} | , {{{4}}} }}{{#if: {{{6|}}} | &nbsp;({{{6}}}) }}.</includeonly>
{{#vardefine:varHyperlink|{{#show:{{#var:varResource}} | ?hyperlink | link=none }} }}{{#if: {{#var:varHyperlink}} |  
 
 
 
[{{#show:{{#var:varResource}} | ?hyperlink | link=none }} {{#var:varTitle}}] |
 
 
 
{{#vardefine:varWikipage|{{#show:{{#var:varResource}} | ?Wikipage | link=none }} }}
 
 
 
{{#if: {{#var:varWikipage}} | [[{{#var:varWikipage}} | {{#var:varTitle}}]] | {{#var:varTitle}} }} }}
 
 
 
}}{{#if: {{{3|}}} | , {{{3}}} }}{{#if: {{{5|}}} | , {{{5}}} }}{{#if: {{{4|}}} | , {{{4}}} }}{{#if: {{{6|}}} | &nbsp;({{{6}}}) }}.</includeonly>
 

Versie van 9 jun 2016 om 16:18

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

{{Reference formatter
|Resource=
|Title=
|Creator=
|Date=
|Organization=
|DocType=
}}

Edit the page to see the template text.