Template talk:JCW-selected-source
Latest comment: 5 years ago by Headbomb in topic Convert to module
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
Convert to module
edit@Galobtter:, since you helped with Module:JCW-selected, could you help here too?
The idea of the template is it has two parameters, |source=
and |note=
.
|note=
is a plain jane field that returns what you input.|source=
has a list of valid codes, but failing that, returns the plain input.
The issue here is that is that it only supports one valid code at a time, e.g.
{{JCW-selected-source|source=BLJ}}
→ [Beall's journal list]{{JCW-selected-source|source=DOAJ}}
→ [Lying about DOAJ]{{JCW-selected-source|source=CIRC}}
→ [WP:CIRCULAR / WP:MIRROR]{{JCW-selected-source|source=BLJ, DOAJ}}
→ [Beall's journal list · Lying about DOAJ]{{JCW-selected-source|source=CIRC, [https://example.com]}}
→ [WP:CIRCULAR / WP:MIRROR · [1]]
whereas the desired output would be supporting multiple codes. For the last two, this would look like
That would be much appreciated. Each code in |source=
would be comma delimited. And if you don't have time, that's ok too, I'll just ping someone else. Headbomb {t · c · p · b} 01:36, 3 March 2019 (UTC)
- Done, kinda, simpler to use Template:MultiReplace in a template. Galobtter (pingó mió) 06:55, 3 March 2019 (UTC)