Forskjell mellom versjoner av «Mal:Infobox server»

Fra Bitraf
Hopp til navigering Hopp til søk
Linje 4: Linje 4:
 
| name = {{{ name }}}
 
| name = {{{ name }}}
 
| subheader = Summary
 
| subheader = Summary
| label1 = Hostname
+
| label1 = {{#if:{{{hostname|}}}|Hostname}}
| data1  = [[Hostname:: {{{ hostname }}} ]]
+
| data1  = {{#if:{{{hostname|}}}|[[Hostname:: {{{ hostname }}} ]]}}
| label2 = Operativsystem
+
| label2 = {{#if:{{{os|}}}|Operativsystem}}
| data2  = [[Has OS:: {{{ os }}} ]].
+
| data2  = {{#if:{{{os|}}}|[[Has OS:: {{{ os }}} ]]}}
| label3 = Kjører på
+
| label3 = {{#if:{{{hosted_by|}}}|Kjører på}}
| data3  = [[Hosted by:: {{{ hosted_by }}} ]]
+
| data3  = {{#if:{{{hosted_by|}}}|[[Hosted by:: {{{ hosted_by }}} ]]}}
  
| header10 = Nettverk
+
| header10 = {{#if:{{{public_ipv6|}}}{{{enable_dns|}}}|Nettverk}}
 
| label11 = {{#if:{{{public_ipv6|}}}|Public IPv6}}
 
| label11 = {{#if:{{{public_ipv6|}}}|Public IPv6}}
 
| data11  = {{#if:{{{public_ipv6|}}}|[[Has IPv6:: {{{ public_ipv6 }}} ]]}}
 
| data11  = {{#if:{{{public_ipv6|}}}|[[Has IPv6:: {{{ public_ipv6 }}} ]]}}
Linje 20: Linje 20:
 
| data21 = {{#if:{{{service_1|}}}| {{{ service_1 }}}{{#if:{{{service_1_comment|}}}| - {{{service_1_comment|}}} }} }}
 
| data21 = {{#if:{{{service_1|}}}| {{{ service_1 }}}{{#if:{{{service_1_comment|}}}| - {{{service_1_comment|}}} }} }}
 
| data22 = {{#if:{{{service_2|}}}| {{{ service_2 }}}{{#if:{{{service_2_comment|}}}| - {{{service_2_comment|}}} }} }}
 
| data22 = {{#if:{{{service_2|}}}| {{{ service_2 }}}{{#if:{{{service_2_comment|}}}| - {{{service_2_comment|}}} }} }}
 +
| data22 = {{#if:{{{service_3|}}}| {{{ service_3 }}}{{#if:{{{service_3_comment|}}}| - {{{service_3_comment|}}} }} }}
 +
| data22 = {{#if:{{{service_4|}}}| {{{ service_4 }}}{{#if:{{{service_4_comment|}}}| - {{{service_4_comment|}}} }} }}
 +
| data22 = {{#if:{{{service_5|}}}| {{{ service_5 }}}{{#if:{{{service_5_comment|}}}| - {{{service_5_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:29

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
}}