- if language is 'English'
- $definition_language.html ''
- else
- $definition_language.html " (#{language})"
- $definition_type.html type
- $definition_link.attr 'href', "http://en.wiktionary.org/wiki/#{word}"
- $definition_word.html word.substr(0, 1).toUpperCase() + word.substr(1)
- $definition_text.html definition
- unless definition_credited
- definition_credited = true
- $definition_credit.html "Definitions © <a href=\"http://en.wiktionary.org/\" target=\"_blank\">wiktionary.org</a> CC-BY-SA"
+ html = "<a href=\"http://en.wiktionary.org/wiki/#{word}\" target=\"_blank\">"
+ html += "#{word.substr(0, 1).toUpperCase() + word.substr(1)}</a>, #{type}"
+ if language isnt 'English'
+ html += " (#{language})"
+ html += ': '
+ html += definition
+ html += '<div id="definition_credit">Definition ©<a href="http://en.wiktionary.org/" target="_blank">wiktionary.org</a> CC-BY-SA</div>'
+ $definition_body.html html