Talk:List of Internet top-level domains
|
Zundark, why did remove the bullets from List of Internet TLDs GTLDs? Noldoaran 20:41, Nov 27, 2003 (UTC)
- Because it looks better when everything lines up properly. --Zundark 08:22, 28 Nov 2003 (UTC)
Is the .sj domain not in use? Google lists one http://einkaritara.sj/ domain name. ᚣᚷᚷᛞᚱᚫᛋᛁᛚ 03:07, 19 May 2004 (UTC)
- According to Norid (http://www.norid.no/domenenavnbaser/bv-sj.html), to whom it is assigned, .sj is not in use. I get a DNS look-up failure for einkaritara.sj, don't you? Google lists three .sj pages (http://www.google.com/search?q=site%3Asj), but it has no cache of these pages, and none of them work for me. Further experimentation shows that Google lists pages with TLDs that don't exist at all. It has no cache of such pages, of course. Perhaps non-existent pages are listed if there are links to them (though I can't find any such links at the moment). --Zundark 07:23, 19 May 2004 (UTC)
.something links
Why some TLDs are links and others aren't?
- Becuase those with links have articles regarding that particular TLD? I don't think there are articles for most TLDs, and if they were all links it would be a big sea of red. --kjd 06:54, 24 Aug 2004 (UTC)
Converted to table
I've recently written quick programs to convert text data presented in tabular form into tables to improve accessibility. Here's the program I used on this article:
// File: convert-tld.cpp // License: Public domain // Author: Ardonik #include <fstream> #include <iostream> #include <string> using namespace std; void generate(istream& in, ostream& out) { out << "{| border=\"1px\" cellspacing=\"0\" cellpadding=\"2px\"\n"; out << "|- style=\"background-color: #a0d0ff;\"\n"; out << "!TLD!!Country or entity!!Notes\n"; out << "|-\n"; string line; while (getline(in, line)) { // If the line begins with [[, the TLD is linked, and we need to find the // end of it. Otherwise, search for whitespace. string tld, remainder; size_t tld_start = 1, remainder_start; if (line.substr(tld_start, 2) == "[[") tld = line.substr(tld_start, line.find("]]", tld_start) + 2 - tld_start); else tld = line.substr(tld_start, line.find(" ", tld_start) - tld_start); remainder_start = line.find_first_not_of(" ", tld_start + tld.length()); remainder = line.substr(remainder_start); out << "|" << tld << "||" << remainder << "|| \n"; // Will fill in 3rd out << "|-\n"; // columns by hand } out << "|}\n"; if (in.fail() && !in.eof()) cout << "Could not read from input\n"; if (out.fail()) cout << "Could not write to output\n"; } int main(int argc, char* argv[]) { if (argc != 3) { cout << "Usage: " << argv[0] << " [infile] [outfile]\n"; cout << " If infile is \"-\", input will be read from stdin.\n"; cout << " If outfile is \"-\", output will be written to stdout.\n"; return 0; } string infile = argv[1], outfile = argv[2]; if (infile == "-" && outfile == "-") { generate(cin, cout); } else if (infile == "-") { ofstream out(outfile.c_str()); generate(cin, out); } else if (outfile == "-") { ifstream in(infile.c_str()); generate(in, cout); } else { ifstream in(infile.c_str()); ofstream out(outfile.c_str()); generate(in, out); } return 0; }
To use it, copy the tld text from the pre-table version (http://en.wikipedia.org/w/wiki.phtml?title=List_of_Internet_TLDs&oldid=5730373) of the page into a text file. Run convert-iso on it and the Wikified table will be printed to stdout. You'll still have to copy the parenthetical information into the third columns by hand--they were too inconsistent for me to automate their parsing without expending more than a minimal effort. --Ardonik.talk() 01:32, Sep 8, 2004 (UTC)