Lazarus

Announcements => Lazarus => Topic started by: Vincent Snijders on March 23, 2012, 11:37:10 am

Title: Wiki on new server
Post by: Vincent Snijders on March 23, 2012, 11:37:10 am
The Free Pascal and Lazarus wiki has been moved to a new server with the same host name, but different IP. Also the wiki software has been upgraded to the latest Mediawiki version.

Because porting the custom Free Pascal skin to the new version was too time consuming the default monoskin is used now. Therefore you will notice changes in its appearance.

Title: Re: Wiki on new server
Post by: Zoran on March 23, 2012, 11:59:56 am
All over the wiki, code is enclosed in <delphi></delphi> or <pascal></pascal> tags. These tags are not recognized by new wiki.

For example, try to read the code here:
http://wiki.lazarus.freepascal.org/Executing_External_Programs#A_Simple_Example,
or http://wiki.lazarus.freepascal.org/Multithreaded_Application_Tutorial#Units_needed_for_a_multi-threaded_application
and many more.
Title: Re: Wiki on new server
Post by: Vincent Snijders on March 23, 2012, 12:07:06 pm
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.

For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).
Title: Re: Wiki on new server
Post by: Zoran on March 23, 2012, 12:41:08 pm
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.

For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).

Thank you, Vincent. I have just made these corrections on two pages which I used as example in my previous post. Some more effort should be made by all of us to replace these tags in whole our wiki.
Title: Re: Wiki on new server
Post by: Vincent Snijders on March 23, 2012, 12:45:14 pm
Thank you, Zoran. I see others have made similar changes too, so I hope the wiki will be good looking soon.
Title: Re: Wiki on new server
Post by: lainz on March 23, 2012, 02:49:51 pm
I like the new wiki, the menu is in the left side like in this forum =) Nice consistent look.
Title: Re: Wiki on new server
Post by: Ocye on March 23, 2012, 03:31:07 pm
That's good news! In the course of this reorganization I would recommend to introduce some styling to wiki articles. I have in mind:
* classification (to what area belongs a certain topic; the simple "category" structure is too flat IMHO)
* structure (often I'm looking for the unit where a function is defined)
* linking between topics
* implementation sample in visual and non-visual flavor
* usage, best practice.

At the moment most articles are third party contributions. Perhaps I'm wrong and the wiki isn't intended as basic help. I would like to have such a control and pattern library / FAQ / reference / guideline.

BTW: May I vote for a non-animated icon? ;-)
Title: Re: Wiki on new server
Post by: Vincent Snijders on March 23, 2012, 03:47:22 pm
That's good news! In the course of this reorganization I would recommend to introduce some styling to wiki articles. I have in mind:
* classification (to what area belongs a certain topic; the simple "category" structure is too flat IMHO)
* structure (often I'm looking for the unit where a function is defined)
* linking between topics
* implementation sample in visual and non-visual flavor
* usage, best practice.

At the moment most articles are third party contributions. Perhaps I'm wrong and the wiki isn't intended as basic help. I would like to have such a control and pattern library / FAQ / reference / guideline.
It is a wiki intended as basic help, written largely by the community. Feel free to improve it.

Quote
BTW: May I vote for a non-animated icon? ;-)
Use the lazarus wiki (http://wiki.lazarus.freepascal.org).
Title: Re: Wiki on new server
Post by: eny on March 23, 2012, 10:55:57 pm
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.

For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).
This should have been done automatically, as part of the move to the new platform.
It's absurd to do this by hand.
For example I created two tuts (http://wiki.lazarus.freepascal.org/Peg_Solitaire_tutorial) to get going with Lazarus and now the text is unreadable, the articles unusable and the time and effort I spent writing them largly waisted.
 :'(
Title: Re: Wiki on new server
Post by: DirkS on March 23, 2012, 11:17:02 pm
The need to be replaced by <source></source> or <syntaxhighlight></syntaxhighlight> tags. I made Delphi the default language.

For more details about the highlighter, see the docs (http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi).
This should have been done automatically, as part of the move to the new platform.
It's absurd to do this by hand.
For example I created two tuts (http://wiki.lazarus.freepascal.org/Peg_Solitaire_tutorial) to get going with Lazarus and now the text is unreadable, the articles unusable and the time and effort I spent writing them largly waisted.
 :'(
Yes, it should have been changed as part of the change-over, but I think you are over reacting. It takes less than a minute to change a page.

I actually changed the one you link to in under 30 seconds: went in edit mode; copied the text to my editor and did one search and replace ('delphi>' to 'syntaxhighlight>'). Then copy the new text to the wiki editor and save... done

Gr.
Dirk.
Title: Re: Wiki on new server
Post by: eny on March 23, 2012, 11:27:06 pm
I actually changed the one you link to in under 30 seconds: went in edit mode; copied the text to my editor and did one search and replace ('delphi>' to 'syntaxhighlight>'). Then copy the new text to the wiki editor and save... done
Good point; I missed that one.
Nevertheless it would still be highly appreaciated if it were done automatically for the many other pages that are still out there.
There really is no excuse for leaving the pages as distorted as they are now.
Title: Re: Wiki on new server
Post by: BigChimp on March 24, 2012, 08:39:32 am
Wouldn't using something like
Code: [Select]
sed -i 's/<delphi>/<SyntaxHighlight>/'
sed -i 's/<Delphi>/<SyntaxHighlight>/'
sed -i 's/<pascal>/<SyntaxHighlight>/'
sed -i 's/<Pascal>/<SyntaxHighlight>/'
sed -i 's/</delphi>/</SyntaxHighlight>/'
sed -i 's/</Delphi>/</SyntaxHighlight>/'
sed -i 's/</pascal>/</SyntaxHighlight>/'
sed -i 's/</Pascal>/</SyntaxHighlight>/'
be possible?

Or something like
http://www.mediawiki.org/wiki/Extension:Replace_Text (http://www.mediawiki.org/wiki/Extension:Replace_Text)
Quote
Replace Text is an extension to MediaWiki that provides a special page to allow administrators to do a global string find-and-replace on both the text and titles of the wiki's content pages
Quote
By default, only members of the 'sysop' user group have access to the Replace Text functionality.
... can't tell if this works on the wiki source or the resulting text only.

Personnally, I've spent a lot of effort in improving wiki pages and even writing some of my own.
I do appreciate the effort involved in maintaining and moving the wiki, but I'm not exactly raring to go to rewrite all those nicely formatted code samples.
Then again, if the pages I've edited are useful, I'm sure people will start rewriting the code tags... and I might join them....

By the way, I prefer the new look as well because the search/navigation components on the left make it easier to switch between forum and wiki...

Edit: code, comment on layout
Title: Re: Wiki on new server
Post by: Vincent Snijders on March 24, 2012, 08:59:14 am
sed doesn't work on database fields, so it would be done on a database dump. I am a bit worried it might replace too much.
Title: Re: Wiki on new server
Post by: Vincent Snijders on March 24, 2012, 10:29:08 am
I installed the ReplaceText extension and did the replacement on a couple of pages. Please review the result. If it is ok, I wil do the replacement on all pages.
Title: Re: Wiki on new server
Post by: eny on March 24, 2012, 11:15:43 am
I installed the ReplaceText extension and did the replacement on a couple of pages. Please review the result. If it is ok, I wil do the replacement on all pages.
Which ones?
Title: Re: Wiki on new server
Post by: Vincent Snijders on March 24, 2012, 11:18:54 am
See: http://wiki.lazarus.freepascal.org/Special:RecentChanges
The comment starts with "Text replace - ".
Title: Re: Wiki on new server
Post by: BigChimp on March 24, 2012, 11:20:42 am
Thanks, Vincent!

Edit:
Looked at hash, for in loop, fcl-web, fcl image: look ok (note: fcl-image code snippets are broken but they were broken in the previous revision as well)

Edit: wrote it while you posted. Disregard the rest: saw you fixed xml stuff while I was looking for Pascal code...

Saw some changes made on 10:12... do you mean those?

Web Service Toolkit: not ok: still has <delphi> </delphi> tags
or
&lt;delphi&gt;
&lt;/delphi&gt;
in the html source

FPMake: not ok, also <delphi> and <pascal> tags also still present
The code does appear between <pre> tags, so it is properly displayed - though not with syntax highlighting...


Title: Re: Wiki on new server
Post by: eny on March 24, 2012, 11:27:22 am
See: http://wiki.lazarus.freepascal.org/Special:RecentChanges
The comment starts with "Text replace - ".
I saw those, but the Delphi tags were still there, didn't look ok.
So I thought you changed other pages.
As BC said, doesn't look good yet with the Delphi tags.
Title: Re: Wiki on new server
Post by: BigChimp on March 24, 2012, 12:50:04 pm
@eny, I think you misunderstood me.
If I understand correctly, Vincent replaced some pages with <xml></xml> and some other pages with <delphi></delphi> tags.

I looked at a couple of pages with Delphi replacements. These were all fine.
To prevent confusion: one of the pages I looked at has broken Pascal code snippets now but the Pascal code was already broken in the previous version (before the wiki move) as well - I checked the history.

I haven't looked at the xml replacements as I wasn't as interested in that and didn't have time.
.

Title: Re: Wiki on new server
Post by: BigChimp on March 24, 2012, 02:58:43 pm
Looked at xml tutorial de, es and web service toolkit for xml replacements. Looks fine.

As far as I'm concerned it looks good!
Title: Re: Wiki on new server
Post by: eny on March 26, 2012, 10:41:51 pm
@eny, I think you misunderstood me.
If I understand correctly, Vincent replaced some pages with <xml></xml> and some other pages with <delphi></delphi> tags.
Ah, then maybe I looked by chance at pages that were already wrong.

Anyways clicked on some more pages in the 'Text replace list' and they look pretty good.
I'm only not sure about the Chinese changes  :D although I saw that the <sql> tags looked wrong:
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1/zh_CN#.E6.9C.AA.E5.AE.89.E8.A3.85employee.fdb.E6.95.B0.E6.8D.AE.E5.BA.93.3F.28No_employee.fdb_installed.3F.29
Do they need replacement too?
My 2 cents.
Title: Re: Wiki on new server
Post by: Zoran on March 26, 2012, 11:28:54 pm
@eny, I think you misunderstood me.
If I understand correctly, Vincent replaced some pages with <xml></xml> and some other pages with <delphi></delphi> tags.
Ah, then maybe I looked by chance at pages that were already wrong.

Anyways clicked on some more pages in the 'Text replace list' and they look pretty good.
I'm only not sure about the Chinese changes  :D although I saw that the <sql> tags looked wrong:
http://wiki.lazarus.freepascal.org/SQLdb_Tutorial1/zh_CN#.E6.9C.AA.E5.AE.89.E8.A3.85employee.fdb.E6.95.B0.E6.8D.AE.E5.BA.93.3F.28No_employee.fdb_installed.3F.29
Do they need replacement too?
My 2 cents.

I can't read chinese, but it seems obvious to me that <sql> tag should be replaced by <syntaxhighlight lang="sql"> tag, so I did it now.
Title: Re: Wiki on new server
Post by: LazaruX on April 12, 2012, 03:04:12 pm
Why is the old logo used?
Title: Re: Wiki on new server
Post by: j0x on April 17, 2012, 03:13:17 am
can anyone add this hard to find list of tutorials -> http://wiki.lazarus.freepascal.org/Category:Tutorials
to the "Lazarus and Pascal Tutorials" section -> http://wiki.lazarus.freepascal.org/Lazarus_Documentation#Lazarus_and_Pascal_Tutorials
just for the purpose of easy access
Title: Re: Wiki on new server
Post by: Vincent Snijders on April 17, 2012, 07:36:38 am
jOx, anybody can create an account and make this edit. Can you do it yourself?
Title: Re: Wiki on new server
Post by: j0x on April 17, 2012, 07:58:13 am
jOx, anybody can create an account and make this edit. Can you do it yourself?

oh ok ill do it
Title: Re: Wiki on new server
Post by: anis2505 on November 10, 2012, 12:31:14 pm
Hi

Is the wiki offline or what????

I can't access it. does anyone else has this problem

thanks
Title: Re: Wiki on new server
Post by: eny on November 10, 2012, 12:48:43 pm
Is the wiki offline or what????
I can't access it. does anyone else has this problem
Same here  %)
Title: Re: Wiki on new server
Post by: BigChimp on November 10, 2012, 01:00:27 pm
Yep, wiki's been having problems; as per Vincent in the Lazarus mailing list, it's been noticed and is being worked on...
TinyPortal © 2005-2018