Fortune 매크로 플러그인은 GNU fortune프로그램을 이용한 매크로입니다.
현재 유닉스만 지원하며 다음을 만족시켜야 합니다.- fortune이 설치되어 있어야 한다.
/usr/bin/fortune, /usr/share/games/fortune/
- 이게 맞지 않는다면
$fortune_dir="/to_my_fortune_dir";라는 식의 설정을config.php에 넣어줍니다.
- 모니위키 1.1.5 이전 버전의 경우에는
plugin/Fortune.php파일을 직접 수정해주어야 합니다.
- 모니위키 1.1.5 이전 버전의 경우에는
사용예 ¶
[[Fortune]] (default art)"I'd love to go out with you, but my favorite commercial is on TV."
[[Fortune(love)]]Love is the only game that is not called on account of darkness.
-- M. Hirschfield
[[Fortune(*)]]=== ALL USERS PLEASE NOTE ========================
The garbage collector now works. In addition a new, experimental garbage
collection algorithm has been installed. With SI:%DSK-GC-QLX-BITS set to 17,
(NOT the default) the old garbage collection algorithm remains in force; when
virtual storage is filled, the machine cold boots itself. With SI:%DSK-GC-
QLX-BITS set to 23, the new garbage collector is enabled. Unlike most garbage
collectors, the new gc starts its mark phase from the mind of the user, rather
than from the obarray. This allows the garbage collection of significantly
more Qs. As the garbage collector runs, it may ask you something like "Do you
remember what SI:RDTBL-TRANS does?", and if you can't give a reasonable answer
in thirty seconds, the symbol becomes a candidate for GCing. The variable
SI:%GC-QLX-LUSER-TM governs how long the GC waits before timing out the user.
특징 ¶
Please see also
Fortune 파일 직접 설치하기 ¶
fortune 파일을 직접 설치하실 수 있습니다. 예를 들어 data/fortune 디렉토리를 만들어 여기에 fortune 파일을 복사해 넣고,
config.php에 $fortune_dir="data/fortune"; 식으로 디렉토리를 직접 지정해 넣으면 됩니다.









.png)