Template:PatternRealizingThisService: Difference between revisions

From OIAr
Jump to navigation Jump to search
(syntax prob)
(cut down the diagnostic message)
 
Line 1: Line 1:
{{#vardefine:pagename|{{PAGENAME}}}}{{#if:{{{page|}}}|{{#vardefine:pagename|{{{page}}}}}}}{{#vardefine:typetest|{{#ask:[[{{#var:pagename}}]] [[Category:Generic Service]]|format=list|link=none}}}}{{#vardefine:kind|{{#ifexist:{{#var:typetest}} | Generic | Applied }}}}{{#switch:{{#ask: [[Category:{{#var:kind}} Pattern]][[Realizes::{{#var:pagename}}]]|format=count}}
{{#vardefine:pagename|{{PAGENAME}}}}{{#if:{{{page|}}}|{{#vardefine:pagename|{{{page}}}}}}}{{#vardefine:typetest|{{#ask:[[{{#var:pagename}}]] [[Category:Generic Service]]|format=list|link=none}}}}{{#vardefine:kind|{{#ifexist:{{#var:typetest}} | Generic | Applied }}}}{{#switch:{{#ask: [[Category:{{#var:kind}} Pattern]][[Realizes::{{#var:pagename}}]]|format=count}}
|0=(no {{#var:kind}} pattern found that realizes this {{#var:kind}} service)
|0=(no {{#var:kind}} pattern found)
|1={{#vardefine:pattern|{{#ask: [[Category:{{#var:kind}} Pattern]][[Realizes::{{#var:pagename}}]]|link=none}}}}{{FriendlyPageLink|{{#var:pattern}}}} ({{#show: {{#var:pattern}} |?Brief description}})
|1={{#vardefine:pattern|{{#ask: [[Category:{{#var:kind}} Pattern]][[Realizes::{{#var:pagename}}]]|link=none}}}}{{FriendlyPageLink|{{#var:pattern}}}} ({{#show: {{#var:pattern}} |?Brief description}})
|{{#ask: [[Category:{{#var:kind}} Pattern]][[Realizes::{{#var:pagename}}]]|link=none|format=template|template=PrintPatterns}}
|{{#ask: [[Category:{{#var:kind}} Pattern]][[Realizes::{{#var:pagename}}]]|link=none|format=template|template=PrintPatterns}}

Latest revision as of 12:47, 8 May 2015

(no Applied pattern found)

Template documentation