Sjabloon:Reference formatter: verschil tussen versies

 
(3 tussenliggende versies door dezelfde gebruiker niet weergegeven)
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:varHyperlink|{{#show:{{#var:varResource}} | ?hyperlink | link=none }} }}{{#if: {{#var:varHyperlink}} | [{{#show:{{#var:varResource}} | ?hyperlink | link=none }} {{#var:varTitle}}] | {{#var:varTitle}} }} }}{{#if: {{{3|}}} | , {{{3}}} }}{{#if: {{{5|}}} | , {{{5}}} }}{{#if: {{{4|}}} | , {{{4}}} }}{{#if: {{{6|}}} | &nbsp;({{{6}}}) }}.</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: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:varResource}} | {{#var:varTitle}}]] }} }} }}{{#if: {{{3|}}} | , {{{3}}} }}{{#if: {{{5|}}} | , {{{5}}} }}{{#if: {{{4|}}} | , {{{4}}} }}{{#if: {{{6|}}} | &nbsp;({{{6}}}) }}.</includeonly>

Huidige versie van 1 jul 2016 om 19:59

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.