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

Content deleted Content added
docs for multi-ASN
clarify wikidata prop sourcing requirement
 
(14 intermediate revisions by the same user 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;">
Line 16 ⟶ 20:
| 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.
 
; asn_suffix, asn2_suffix, asn3_suffix : If an ISP has multiple ASNs, suffixes to designate each one.
Line 29 ⟶ 35:
; trafficlevels : The speed of the provider's network traffic.
 
; 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]].
==Embedding==
 
==Tracking categories==
This template can be embedded into other infoboxes using the technique described in [[WP:IEmbed]] and <syntaxhighlight lang="text" inline>|child=yes</syntaxhighlight>.
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>