Template talk:Crew

From YPPedia

Do we want to modify this template (and Template:Flag and Template:Pirate) to work like Template:Viridian et al? Only it doesn't seem like they're working for their originally intended function, and they're not being used as they currently stand. --Belthazar451 16:29, 19 June 2008 (PDT)

Just playing devils advocate here, but what happens when we are talking about a couple crews and a flag that all share the same name but are not related so we end up with XYZ (Viridian crew), XYZ (Viridian flag), XYZ (Hunter crew)? Not saying I don't like the idea, seeing as all of those templates aren't being used, I just wanted to get everyone thinking about all of the possibilities. -- Cedarwings (talk) 21:08, 19 June 2008 (PDT)
My thought for that sort of case is to make a new template named... I dunno, disambiglink or something. Then we call it with {{disambiglink|pagename|ocean|pagetype}}, and it'll automatically make a wikilink with [[pagename (ocean pagetype)|pagename]]. For example, {{disambiglink|XYZ|Hunter|flag}}, would render [[XYZ (Hunter flag)|XYZ]]. Considering that it's a shade clunky, you'd probably only use it where it's actually needed. And a better name than "disambiglink" couldn't hurt either. And a similarly-functioning Template:Building.
Mind you, we could also include an optional Ocean parameter with this (potential) template, but considering you'd need to include a space after the ocean name in the link only if there is an ocean name entered, I'm not sure how easy it'd be to implement. I could do it in VisualBasic, but I don't know enough about wiki templates to try doing it here. --Belthazar451 22:18, 19 June 2008 (PDT)
It's possible. In fact you could make both the pagetype and ocean optional so that you could disambig to either XYZ (Ocean), XYZ (crew) or XYZ (Ocean crew). Maybe I'll see if I can mock something up. -- Cedarwings (talk) 23:33, 19 June 2008 (PDT)
What do you know, in searching for how to do this I ran across this. And here is a test of it in action. Check out the conversation regarding this here. Might be easier just to modify the ocean disambig templates with the addition since everyone already knows they exist, it would just be a modification to them. -- Cedarwings (talk) 23:49, 19 June 2008 (PDT)
Heh, I was busily suggesting a similar but reversed idea, when I got an edit conflict. Basically my idea was including an optional oceans parameter in my suggested Crew template. As in {{crew|XYZ}} for [[XYZ (crew)|XYZ]] or {{crew|XYZ|Viridian}} for [[XYZ (Viridian crew)|XYZ]]. But including an optional pagetype in the ocean templates also works. The real trick is that we've not nothing covering links with a page type only - as in "XYZ (crew)", which I suspect is possibly more common. --Belthazar451 23:53, 19 June 2008 (PDT)