Template talk:OMIM3

From Wikipedia, the free encyclopedia

[edit] Plainlinks version

Regarding the rationale for a plainlinks version of the OMIM template, we (David D. and myself) have been putting together an enhanced protein infobox. Our test page is at ITK (gene). David thought (and I agreed) that the external link icons cluttered the infobox when so many external links were present. Would you agree that this is a practical use of plainlinks? If so, then I'll just create an OMIM4 template and use that. Otherwise, I'm certainly open to hearing suggestions... Cheers, AndrewGNF 01:19, 3 April 2007 (UTC)

That sounds emminently reasonable. See Albinism for an infobox that could make great use of this (of course the regular maintainers of that infox would need to go along with it). That template is actually ideal for this plainlinks idea, since its paremeters are:
|omim|...
for the first occurrence, and
|omim-mult|...
for additional ones, making it a super-trivial documentation change to encourage usage of {{OMIM4}} in |omim-mult|. Schweet. Oh, actually, can you make an {{OMIM4}} that does the plainlinks thing, but uses {{OMIM2}} as its base code, and an {{OMIM5}} that does this but is based on {{OMIM3}}? The infobox you are building would, I think, use {{OMIM5}}, while the one at Albinism would use the proposed {{OMIM4}}. PS: I reverted because {{OMIM3}} was intended for use in prose, not infoboxes; I'd only ever seen {{OMIM2}} used in infoboxes, with a "OMIM: " lead-in in plain text.
SMcCandlish [talk] [contrib] 02:35, 3 April 2007 (UTC)
Done! Can I leave it to you to edit the documentation accordingly? I think you have a better perspective on how these all will be used. Me, I'm just happy to have my {{OMIM5}}...
After browsing the Albinism link above, two questions popped into my head (undoubtedly due to my newbie-ness). If you have a moment to comment...
  1. What's the purpose of having parameters for OMIM and OMIM_mult? Why not just have one of those that takes one or more OMIM entries? Backward compatability?
  2. In the {{Infobox Disease}}, the line that tests whether OMIM or OMIM_mult is specified looks like this:
{{#if: {{{OMIM|}}}{{{OMIM_mult|}}}|
Am I correct that this tests if OMIM or OMIM_mult exists? If so, that will allow me take out a horrible horrible hack that I had to create in my template to approximate this...
If you have a chance to explain, thanks! AndrewGNF 03:17, 3 April 2007 (UTC)
Great! I'll deal with the dox (w/o doing noinclude errors this time...)
  1. I don't know, and thought it a little strange myself, but backcompat sounds plausible.
  2. I'm not certain of that either, but that sounds plausible, too. I'm okay with parser functions, and looking at that I can't see any other possible meaning for it. You could either simply sandbox a copy of it and try it with 1 parameter, then the other, then both, and see what it does, or dig around in the geeky parser function dox at Meta, I suppose. It could mean "if both OMIM and OMIM_mult", in which case I don't that that helps you. My solution for the "if this or that" problem in another template somewhere was to just have a nested "if", but Wiki parser function code makes it a little tricky (because of so many {'s). — SMcCandlish [talk] [contrib] 03:23, 3 April 2007 (UTC)
Super, thanks! I guess there's no substitute for trying things out... AndrewGNF 03:35, 3 April 2007 (UTC)