Sjabloon:Contacts show: verschil tussen versies

Regel 12: Regel 12:
 
{{#vardefine:varPaginanaam|{{#if: {{{Page name|}}}| {{{Page name}}} | {{#if: {{{1|}}}| {{{1}}} | {{PAGENAME}} }} }} }}
 
{{#vardefine:varPaginanaam|{{#if: {{{Page name|}}}| {{{Page name}}} | {{#if: {{{1|}}}| {{{1}}} | {{PAGENAME}} }} }} }}
 
{{#vardefine:varModelnaam|{{#show: {{#var:varPaginanaam}} | ?Model link | link=none | default={{#var:varPaginanaam}} }} }}
 
{{#vardefine:varModelnaam|{{#show: {{#var:varPaginanaam}} | ?Model link | link=none | default={{#var:varPaginanaam}} }} }}
</div>
+
</div>{{#ifexpr:{{#ask: [[Contact back link::{{#var:varModelnaam}}]] | format=count}} > 0 |
 
'''Contacten'''
 
'''Contacten'''
{{#ask: [[Contact back link::{{PAGENAME}}]]
+
{{#ask: [[Contact back link::{{#var:varModelnaam}}]]
 
| ?Coordinate
 
| ?Coordinate
 
| format=map
 
| format=map
Regel 37: Regel 37:
 
| template=Contact formatter
 
| template=Contact formatter
 
| default=''Geen contacten.''
 
| default=''Geen contacten.''
  +
}}
 
}}
 
}}
 
</includeonly>
 
</includeonly>

Versie van 18 jun 2016 om 10:57

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

{{Contacts show
|Page name=
}}

Edit the page to see the template text.