Template talk:Thoroughbred racehorse infobox
From Wikipedia, the free encyclopedia
Contents |
[edit] regex
Here is the regex I used to do most of the cleanup: s/{{Thoroughbred racehorse infobox\r\| ?Horse Name\s+= ?(.+)\r\| ?Image\s+= ?(.+)\r\| ?Sire\s+= ?(.+)\r\| ?Dam\s+= ?(.+)\r\| ?Damsire\s+= ?(.+)\r\| ?Sex\s+= ?(.+)\r\| ?Foaled\s+= ?(.+)\r\| ?Country\s+= ?(.+)\r\| ?Colour\s+= ?(.+)\r\| ?Breeder\s+= ?(.+)\r\| ?Owner\s+= ?(.+)\r\| ?Trainer\s+= ?(.+)\r\| ?Record\s+= ?(.+)\r\| ?Prizemoney\s+= ?(.+)\r\| ?Race\s+= ?(.+)\r\| ?Year/s\s+= ?(.+)\r\| ?Edit date\s+= ?(.+)\r}}/{{Thoroughbred racehorse infobox\r| name = \1\r| image = \2\r| caption = \r| sire = \3\r| dam = \4\r| damsire = \5\r| sex = \6\r| foaled = \7\r| country = \8\r| colour = \9\r| breeder = \10\r| owner = \11\r| trainer = \12\r| record = \13\r| prize money = \14\r| honors = \r| race = \15\r| year = \16\r| statistics date = \17\r}}/
[edit] Cleanup??
I think that Handicappers request for assistance may have been slightly misinterpreted. The change has done away with the Major Wins heading and the race details that follow. Each infobox has now been stripped of much of the information that it was seeking to convey. I think that Handicapper was looking for an additional heading of "Honours" to be added underneath the Major wins section. (dark horse 06:40, 30 August 2006 (UTC))
[edit] Latest version
I did another version today that can be seen at Slew o'Gold. I'd still prefer to have the two bottom boxes without subtitles, just whatever text inserted fit automatically left or centered. However, I have no idea how to do that. Comments and improvements please before utilizing/replacing. Handicapper 19:18, 9 September 2006 (UTC)
[edit] Formatting bug
Theres an odd formatting bug visible at Sceptre (horse). This horse has 'race' set but not 'awards' or 'honors'. The template inserts an additional blank paragraph above the article. If you put anything in awards, or honors; or take away the race parameter, this misformatting goes away. I had a look at the templates (about which I know nothing - can you make your own to test them?) and the only thing that struck me as odd was this line:
#if:{{{race|}}}{{{awards|}}}{{{honours|}}}...
... every other occurence of pipe symbols is surrounded by <includeonly> tags, these 3 are left alone. Should they have them too? --Bazzargh (talk) 00:34, 27 February 2008 (UTC)