{{define "Main"}}
{{if .Query}}{{if .NameParseError}} Invalid name: {{.Query}} {{else}} Namecoin Name: {{.NamecoinName}} Domain Name: {{.DomainName}} Bare Name: {{.BareName}} Exists: {{if .ExistenceError}}{{.ExistenceError}}{{else}}Yes{{end}} {{if not .ExistenceError}}Expired: {{.Expired}}{{end}} {{if not .ExistenceError}} Valid: {{.Valid}} Raw Value: {{.Value}} {{if .ParseErrors}} Parse Errors:{{range .ParseErrors}} {{.}}{{end}} {{end}}{{if .ParseWarnings}} Parse Warnings:{{range .ParseWarnings}} {{.}}{{end}} {{end}} {{.NCValue}} {{if .Advanced}} Parsed Value: {{.NCValueFmt | printf "%# v"}} {{end}} RRs:{{range .RRs}} {{.}}{{end}} {{if .RRError}} RR Generation Error: {{.RRError}} {{end}} {{end}} {{end}}{{end}} {{end}}