John Beckett wrote:
It is important for us to have an easy way to refer to tips,
and the URL of each tip should be simple (and not wrap in an
email).
Below is some detail for a proposal to achieve this.
What does everyone think?
Have a script scrape tip titles from the current Vim Tips.
Create a plain text file with fields (say tab-separated):
<tip_nr><tip_id><tip_name>
<tip_id> would initially be empty.
Example:
Tip #1504: External commands on Windows
http://www.vim.org/tips/tip.php?tip_id=1504
would give line (':' represents '\t'):
1504::External commands on Windows
I would edit this file (or maybe split it over three
volunteers). We would manually insert a short tip_id by
abbreviating tip_name. For example:
1504:win_external_cmd:External commands on Windows
We would manually confirm (with a script) that the 1500
tip_id fields are unique.
The script to import each tip would read the above file:
- Use tip_nr to read the current tip.
- Use tip_id to make the URL of the new tip.
- Ignore tip_name.
The example URL might be:
http://vim.wikia.com/wiki/tips/win_external_cmd
Perhaps a contents page could list all tips:
win_external_cmd External commands on Windows
Where we might once have said "see tip 1504", we would instead
say "see tip win_external_cmd".
John
Wouldn't it be enough to set up the main tip page with a tip _name_ (which
would be the current "title" of the tip, or a disambiguation page if there are
more than one tip with the same title), and have the tip _number_ (only for
tips imported from Vim-online) refer to a redirect page, let's say "Vim tip 1"
=> "The super star"? So the conversion script could convert "vimtip#1" to
"[[Vim tip 1]]", which could be done mechanically, and the redirect would
automagically resend anyone clicking that link to the actual page. I suppose
that links pointing to the redirect pages could be readjusted later, in no
hurry, either by hand or by a "wiki robot", and in either case with the help
of the "What points here" page for the redirect.
Best regards,
Tony.
--
YOU TOO CAN MAKE BIG MONEY IN THE EXCITING FIELD OF
PAPER SHUFFLING!
Mr. TAA of Muddle, Mass. says: "Before I took this course I used to be
a lowly bit twiddler. Now with what I learned at MIT Tech I feel
really important and can obfuscate and confuse with the best."
Mr. MARC had this to say: "Ten short days ago all I could look forward
to was a dead-end job as a engineer. Now I have a promising future and
make really big Zorkmids."
MIT Tech can't promise these fantastic results to everyone, but when
you earn your MDL degree from MIT Tech your future will be brighter.
SEND FOR OUR FREE BROCHURE TODAY!