Template:Link-and-categorize-comma-slash-seperated-list2

From CPU Grave Yard

Description

If you have a string with commas and you want to link to category and join category for each value separately. Will work with single value or list. Will work with comma or comma-space separation.

If there is a link already in place, then it return the original text without linking or categorizing. it ignores any suffixes

If a suffix is entered the SUFFIX is added to each category. For example: if suffix=family and text=Pentium, then link and category will be Pentium family


Usage

  • {{Link-and-categorize-comma-seperated-list2|TEXT|suffix=SUFFIX|display-suffix=TRUE}}


Examples

  • {{Link-and-categorize-comma-slash-seperated-list2|alpha,beta,gamma}}
    • Result: alpha, beta, gamma
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha}}
    • Result: Template:Link-and-categorize-comma-slash-seperated-lis2t
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha, beta, gamma}}
    • Result: alpha,  beta,  gamma
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha}}
    • Result: alpha
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha, [[beta]], gamma}}
    • Result: alpha, beta, gamma
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha,beta,gamma|suffix=_family}}
    • Result: alpha, beta, gamma
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha,beta,gamma|suffix=_family|display-suffix=TRUE}}


    • Result: alpha/beta/gamma
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha/ beta/ gamma}}
    • Result: alpha/ beta/ gamma
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha}}
    • Result: alpha
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha/ [[beta]]/ gamma}}
    • Result: alpha/ beta/ gamma
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha/beta/gamma|suffix=_family}}
  • {{Link-and-categorize-comma-slash-seperated-list2|alpha/beta/gamma|suffix=_family|display-suffix=TRUE}}

Crestmont/Meteor Lake-P

Notes

Requirements

See Also