Template:InternalLinkCounter/doc
Appearance
This is a documentation subpage for Template:InternalLinkCounter. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
Usage
This template has only one parameter and can insert a wikitext, and returns only the number of blue and red internal links (excluding external links) in the given text. Returns "0" if there is no internal link. This can be used with other templates, ParserFunctions and singular and plural cases.
Examples
{{InternalLinkCounter|[[Wikipedia]]}}
→ 1{{InternalLinkCounter|[[Wikipedia]] and [[Wiktionary]]}}
→ 2
Does not count external links and empty internal links:
{{InternalLinkCounter|[https://en.wikipedia.org Wikipedia] and [[]]}}
→ 0
The following shows examples of some articles and number of their internal link(s). Unintentionally "Full article..." link counted too.
See also
- {{Counter}} – To count the parameters of a template