Template:Infobox network service provider/doc: Difference between revisions

Content deleted Content added
added basic template documentation
 
clarify wikidata prop sourcing requirement
 
(17 intermediate revisions by 2 users not shown)
Line 2:
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) -->
== Usage ==
If a page has a corresponding Wikidata item with at least one [[Module:WikidataIB#Sourcing|sourced]] {{prop|P3797}}, and an infobox that supports [[WP:IEmbed]] using {{para|module}}, simply add the following to the existing infobox:
To use this template in an article, copy the template below, then paste the template into an article.
 
<syntaxhighlight lang="wikitext" style="overflow: hidden; background: unset;">
All parameters are optional – those you do not populate with data will not show up in the infobox when the article is saved.
| module = {{Infobox network service provider|child=yes}}
</syntaxhighlight>
 
To manually specify ASNs, or to provide other optional parameters, the full template is:
 
<syntaxhighlight lang="wikitext" style="overflow: hidden; background: unset;">
{{Infobox network service provider
| asn =
| asn_suffix =
| asn2 =
| asn2_suffix =
| asn3 =
| asn3_suffix =
| peeringpolicy =
| trafficlevels =
| qid =
}}
</syntaxhighlight>
 
==Parameters==
{{Uses Wikidata|P3797}}
 
; asn, asn2, asn3 : Each ISP must have at least one officially registered autonomous system number (ASN), used for routing purposes. If no ASN is specified, but a [[Module:WikidataIB#Sourcing|sourced]] Wikidata {{prop|P3797}} exists for the current article, it is used instead.
Do not erase parameters that could logically apply now or in the future because you do not yet have data (such as financial results) or because the parameter does not apply today (such as defunct date), except the genre parameter, which pertains only to publishing companies, and the aum parameter, which applies only to financial services companies. You may erase a parameter if it can never logically be applicable. The intl parameter, for example, only applies to companies based outside the United States and can therefore be erased from articles about United States-based companies.
 
; asn_suffix, asn2_suffix, asn3_suffix : If an ISP has multiple ASNs, suffixes to designate each one.
Note that the examples below are for demonstration purposes only and do not necessarily reflect actual data.
 
; peeringpolicy : This describes an ISP's policy for sharing traffic with other networks. Options are either '''open''', '''selective''' or '''restrictive'''.
'''Primary ASN '''
:Each ISP must have an officially registered autonomous system number (ASN), used for routing purposes.
 
; trafficlevels : The speed of the provider's network traffic.
'''Peering policy'''
:This describes an ISP's policy for sharing traffic with other networks. Options are either '''open''', '''selective''' or '''restrictive'''.
 
; qid : QID of Wikidata item to pull ASN from. If not provided, defaults to the current page, and is primarily intended to be used in [[Template:Infobox network service provider/testcases|testcases]].
'''Traffic levels'''
 
The speed of the provider's network traffic.
==Tracking categories==
The following categories track invocations of this infobox:
* {{clc|Infobox network service provider ASN same as Wikidata}}
* {{clc|Infobox network service provider ASN different from Wikidata}}
* {{clc|Infobox network service provider ASN not in Wikidata}}
* {{clc|Infobox network service provider ASN using Wikidata}}
* {{clc|Infobox network service provider ASN missing and not in Wikidata}}
 
==See also==
 
* {{tl|autnum}}
* {{tl|Infobox Internet exchange point}}
 
<includeonly>{{sandbox other||
<!-- Categories below this line, please; interwikis at Wikidata -->
[[Category:Computer networking templates]]
 
[[Category:Embeddable templates]]
[[Category:Infobox templates using Wikidata|network service provider]]
}}</includeonly>