Template:Universal page list with custom separators
Appearance
| This template is being discussed in accordance with Wikipedia's deletion policy. Help reach a consensus at its entry. |
| This template may be substituted. |
| This template uses Lua: |
The {{Universal page list}} and {{Universal page list with custom separators}} templates create a list of page links, formatted according to each page's role within the encyclopedia (regular page / template / module) and allowing for section links (indicated by the presence of a hash sign #).
The {{Universal page list with custom separators}} template by default does not set separators, but relies on the first three unnamed parameters to set custom separators. Using unnamed parameters makes it easy to set separators that contain trimming and leading spaces. For example:
{{Universal page list with custom separators|, | and |, and |Jupiter|Common sunflower|Cringe culture}}- ↳ Jupiter, Common sunflower, and Cringe culture
The {{Universal page list}} template instead uses commas and "and" as separators. This template inserts a serial comma.
Usage
[edit]{{Universal page list}}
[edit]{{Universal page list|Damasithymus|Tisamenus (son of Antiochus)|Category:People of the Greco-Persian Wars|Greco-Persian Wars#Warfare in the ancient Mediterranean|Template:Hatnote|Module:String|#See also}}{{Universal page list|Jupiter|Common sunflower|Cringe culture}}- ↳ Jupiter, Common sunflower, and Cringe culture
{{Universal page list|Template:Hatnote}}- ↳ {{Hatnote}}
Usage in vertical format:
{{Universal page list
| Damasithymus
| Tisamenus (son of Antiochus)
| Category:People of the Greco-Persian Wars
| Greco-Persian Wars#Warfare in the ancient Mediterranean
| Template:Hatnote
| Module:String
| #See also
}}
Effect:
- Damasithymus, Tisamenus (son of Antiochus), Category:People of the Greco-Persian Wars, Greco-Persian Wars § Warfare in the ancient Mediterranean, {{Hatnote}}, {{#invoke:String}}, and § See also
{{Universal page list with custom separators|, | and | and |Jupiter|Common sunflower|Cringe culture}}{{Universal page list with custom separators|; |; |; |Jupiter|Common sunflower|Cringe culture}}{{Universal page list with custom separators|, | and |, and |Damasithymus|Tisamenus (son of Antiochus)|Category:People of the Greco-Persian Wars|Greco-Persian Wars#Warfare in the ancient Mediterranean|Template:Hatnote|Module:String|#See also}}{{Universal page list with custom separators||||Template:Hatnote}}- ↳ {{Hatnote}}
See also
[edit]- {{Pagelist}}, a generic page listing template
- {{Catlist}}, for a list of linked categories
- {{Comma separated entries}}
- {{Catalog lookup link}}
- {{Oxford list}}, an equivalent which does not wikilink
- {{Enum}}, an equivalent which does not wikilink and without serial comma
- {{Template see also}}, “See also” with lists of templates