Template:Services Being Served: Difference between revisions

From OIAr
Jump to navigation Jump to search
(Created page with "{{#vardefine:pagename|{{PAGENAME}}}} {{#vardefine:numberofusages {{#ask: Category:Service[[Must use service::{{#var:pagename}}]]|format=count}}}} {{#switch:{{#ask: Categ...")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#vardefine:pagename|{{PAGENAME}}}}
{{#vardefine:pagename|{{PAGENAME}}}}
{{#vardefine:numberofusages {{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}}}
{{#vardefine:numberofusages1 {{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}}}
{{#switch:{{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}
{{#switch:{{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}
|0        = There are no services registered in this repository that are depending on this service.
|0        = There are no services registered in this repository that are depending on this service.
|1        = The following service is registered in this repository to be dependent on this service:
|1        = The following service is registered in this repository to be dependent on this service:
|#default = The following services are registered in this repository to be dependent on this service::}}
|#default = There are {{#var:numberofusages1}} services registered in this repository to be dependent on this service:}}
{{#switch:{{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}
{{#switch:{{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}
  | 0      =  
  | 0      =  
  |#default = {{SmartTable Service Must Usage}} }}
  |#default = {{SmartTable Service Must Usage}} }}
{{#vardefine:pagename|{{PAGENAME}}}}
{{#vardefine:pagename|{{PAGENAME}}}}
{{#vardefine:numberofusages {{#ask: [[Category:Service]][[May use service::{{#var:pagename}}]]|format=count}}}}
{{#vardefine:numberofusages2 {{#ask: [[Category:Service]][[May use service::{{#var:pagename}}]]|format=count}}}}
{{#switch:{{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}
{{#switch:{{#ask: [[Category:Service]][[May use service::{{#var:pagename}}]]|format=count}}
|0        = There are no services registered in this repository that may be served by this service.
|0        = There are no services registered in this repository that may be served by this service.
|1        = The following service is registered in this repository that may be served by this service:
|1        = The following service is registered in this repository that may be served by this service:
|#default = The following services are registered in this repository may be served by this service::}}
|#default = There are {{#var:numberofusages2}} services registered in this repository may be served by this service:}}
{{#switch:{{#ask: [[Category:Service]][[Must use service::{{#var:pagename}}]]|format=count}}
{{#switch:{{#ask: [[Category:Service]][[May use service::{{#var:pagename}}]]|format=count}}
  | 0      =  
  | 0      =  
  |#default = {{SmartTable Service Must Usage}} }}
  |#default = {{SmartTable Service May Usage}} }}
<noinclude>
<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>

Latest revision as of 18:20, 28 November 2019


There are no services registered in this repository that are depending on this service.


There are no services registered in this repository that may be served by this service.


Template documentation