User:Ultimantium/Sandbox/6

This template takes a string with wiki links in it, and then separates the wiki links out one at a time, and puts their subject (either before the ]] or the |) into a category like so:

If Captain America is entered, Category:Captain America/Appearances is returned.

If Captain America is entered, Category:Steven Rogers (Earth-616)/Appearances is returned.

If Captian America is entered, Category:Captian America/Appearances is returned. (spelling error)

Anything that is not a link is ignored. This template is designed to be used with the Comic template, to auto-categorize the people, teams, locations, etc. that appear in the comic.

Limit: 70

--Nathan (Peteparker) (Earth-1218) (talk • contribs • email) 17:02, 4 August 2008 (UTC)