Template:PatternRealizingThisService: Difference between revisions
Jump to navigation
Jump to search
(again brackets) |
(update for multiple patterns realizing a service) |
||
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 }}}}{{# | {{#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) | |||
|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}} | |||
}}<noinclude> | |||
{{Documentation}} | {{Documentation}} | ||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | <!-- Add categories and interwikis to the /doc subpage, not here! --> | ||
</noinclude> | </noinclude> |
Revision as of 20:38, 16 July 2013
{{#switch:0 |0=(no Applied pattern found that realizes this Applied service) |1=
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |