On Fanlore, users with accounts can edit pages including user pages, can create pages, and more. Any information you publish on a page or an edit summary will be accessible by the public and to Fanlore personnel. Because Fanlore is a wiki, information published on Fanlore will be publicly available forever, even if edited later. Be mindful when sharing personal information, including your religious or political views, health, racial background, country of origin, sexual identity and/or personal relationships. To learn more, check out our Terms of Service and Privacy Policy. Select "dismiss" to agree to these terms.

Template:Comma separated entries/doc

From Fanlore
Jump to navigation Jump to search

Page Template:Shortcut/styles.css must have content model "Sanitized CSS" for TemplateStyles (current model is "wikitext").

This template is used primarily in infoboxes to create a comma delimited collection of items, only adding the commas where needed.

For lists of items, without bullets, use {{plainlist}}.

Usage

Typing:

{{comma separated entries|entry1|entry2|entry3|entry4|entry5|...}}

Results in:

entry1, entry2, entry3, entry4, entry5, ...

Example

Code Result
{{comma separated entries|entry1|entry2|entry3|entry4}} entry1, entry2, entry3, entry4
{{comma separated entries| |entry2|entry3|entry4}} entry2, entry3, entry4
{{comma separated entries|entry1| |entry3|entry4}} entry1, entry3, entry4
{{comma separated entries|entry1|entry2| |entry4}} entry1, entry2, entry4
{{comma separated entries|entry1|entry2|entry3| }} entry1, entry2, entry3
{{comma separated entries|entry1| | | }} entry1
{{comma separated entries| |entry2| | }} entry2
{{comma separated entries| | |entry3| }} entry3
{{comma separated entries| | | |entry4}} entry4
{{comma separated entries| | | | }}
{{comma separated entries|entry1|entry2|entry3|entry4|entry5|entry6}} entry1, entry2, entry3, entry4, entry5, entry6

See also