Recent

Author Topic: Wiki on new server  (Read 69620 times)

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Wiki on new server
« 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.


Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Wiki on new server
« Reply #1 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.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Wiki on new server
« Reply #2 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.

Zoran

  • Hero Member
  • *****
  • Posts: 1830
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: Wiki on new server
« Reply #3 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.

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.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Wiki on new server
« Reply #4 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.

lainz

  • Guest
Re: Wiki on new server
« Reply #5 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.

Ocye

  • Hero Member
  • *****
  • Posts: 518
    • Scrabble3D
Re: Wiki on new server
« Reply #6 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? ;-)
Lazarus 1.7 (SVN) FPC 3.0.0

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Wiki on new server
« Reply #7 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.

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Wiki on new server
« Reply #8 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.
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 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.
 :'(
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

DirkS

  • Sr. Member
  • ****
  • Posts: 251
Re: Wiki on new server
« Reply #9 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.
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 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.
« Last Edit: March 23, 2012, 11:19:27 pm by DirkS »

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Wiki on new server
« Reply #10 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.
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: Wiki on new server
« Reply #11 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
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
« Last Edit: March 24, 2012, 08:55:07 am by BigChimp »
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Wiki on new server
« Reply #12 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.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
Re: Wiki on new server
« Reply #13 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.

eny

  • Hero Member
  • *****
  • Posts: 1634
Re: Wiki on new server
« Reply #14 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?
All posts based on: Win10 (Win64); Lazarus 2.0.10 'stable' (x64) unless specified otherwise...

 

TinyPortal © 2005-2018