Difference between revisions of "Template:Count and list"
Jump to navigation
Jump to search
Kevin Wang (talk | contribs) m |
Kevin Wang (talk | contribs) m |
||
| (One intermediate revision by the same user not shown) | |||
| Line 7: | Line 7: | ||
Given a list of fields (comma delimited), count the number of links which point to pages with exist and the number which point to pages that don't. | Given a list of fields (comma delimited), count the number of links which point to pages with exist and the number which point to pages that don't. | ||
| − | Currently breaks at | + | Currently breaks at ~300 items due to [https://en.wikipedia.org/wiki/Help:Template_limits#Post-expand_include_size WP:PEIS] - unclear how to resolve. As such, '''DO NOT USE THIS FOR LARGE LISTS''' - as nice as it would be to automatically tally long lists of links in the article itself, doing so with an outside method remains the simplest method. |
Incorporates [[Template:Exists]] to circumvent the "500 per page" limit of #ifexist. | Incorporates [[Template:Exists]] to circumvent the "500 per page" limit of #ifexist. | ||
Latest revision as of 10:05, 14 September 2022
Given a list of fields (comma delimited), count the number of links which point to pages with exist and the number which point to pages that don't.
Currently breaks at ~300 items due to WP:PEIS - unclear how to resolve. As such, DO NOT USE THIS FOR LARGE LISTS - as nice as it would be to automatically tally long lists of links in the article itself, doing so with an outside method remains the simplest method.
Incorporates Template:Exists to circumvent the "500 per page" limit of #ifexist.
| Input | Output |
|---|---|
{{Count and list|
2020 ACF Fall,
2021 ACF Fall,
2022 ACF Regionals}}
|
This list includes 3 blue links and 0 red links. |
{{Count and list|
{{#loop:j|1|277|{{#var:j}},
}}}}
|
Template:Count and list |