Forskjell mellom versjoner av «Mal:Infobox server»

Fra Bitraf
Hopp til navigering Hopp til søk
Linje 12: Linje 12:
  
 
| header10 = Nettverk
 
| header10 = Nettverk
| label11 = Public IP
+
| label11 = {{#if:{{{public_ipv6|}}}|Public IPv6}}
| data11  = [[Has IPv6:: {{{ public_ipv6 }}} ]]
+
| data11  = {{#if:{{{public_ipv6|}}}|[[Has IPv6:: {{{ public_ipv6 }}} ]]}}
| label12 = In DNS
+
| label12 = {{#if:{{{enable_dns|}}}|In DNS}}
| data12  = [[Has DNS entry:: {{{ enable_dns }}} ]]
+
| data12  = {{#if:{{{enable_dns|}}}|[[Has DNS entry:: {{{ enable_dns }}} ]]}}
  
| header20 = Tjenester
+
| header20 = {{#if:{{{service_1|}}}{{{service_2|}}}{{{service_3|}}}{{{service_4|}}}{{{service_5|}}}|Tjenester}}
| data21 = {{{ service_1 }}} - {{{ service_1_comment }}}.
+
| data21 = {{#if:{{{service_1|}}}| {{{ service_1 }}}{{#if:{{{service_1_comment|}}}| - {{{service_1_comment|}}} }} }}
| data22 = {{{ service_2 }}} - {{{ service_2_comment }}}.
+
| data22 = {{#if:{{{service_2|}}}| {{{ service_2 }}}{{#if:{{{service_2_comment|}}}| - {{{service_2_comment|}}} }} }}
 
}}
 
}}
  
 
[[Category:Servere]]
 
[[Category:Servere]]
 
</includeonly><noinclude>{{documentation}}<!-- please add category and language links to the /doc sub-page, not here --></noinclude>
 
</includeonly><noinclude>{{documentation}}<!-- please add category and language links to the /doc sub-page, not here --></noinclude>

Revisjonen fra 15. nov. 2018 kl. 20:26

To edit this documentation, go to Mal:Infobox server/doc.


Example usage:

{{Infobox server
| name = Marvin
| hostname = marvin.bitraf.no
| os = Debian Stretch
| hosted_by = Bite
| public_ipv4 = a.b.c.d
| ipv4 = a.b.c.d          # for internal IPs
| ipv6 = a:b:c:d:e:f:g:h
| enable_dns = yes
| service_1 = Windows network shares
| service_1_comment = implementert med [[SAMBA]]
| service_1_title = WINS (set an alternate text for the service_1 value)
| service_2 = S3
| service_2_comment = comment
}}