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) We don't claim Interactive EasyFlow is good for anything -- if you
think it is, great, but it's up to you to decide. If Interactive EasyFlow
doesn't work: tough. If you lose a million because Interactive EasyFlow
messes up, it's you that's out the million, not us. If you don't like this
disclaimer: tough. We reserve the right to do the absolute minimum provided
by law, up to and including nothing.
This is basically the same disclaimer that comes with all software
packages, but ours is in plain English and theirs is in legalese.
We didn't really want to include any disclaimer at all, but our
lawyers insisted. We tried to ignore them but they threatened us with the
attack shark at which point we relented.
-- Haven Tree Software Limited, "Interactive EasyFlow"
[[Fortune(love)]]
On a tous un peu peur de l'amour, mais on a surtout peur de souffrir
ou de faire souffrir.
[One is always a little afraid of love, but above all, one is
afraid of pain or causing pain.]
[[Fortune(*)]]
Mac Airways:
The cashiers, flight attendants and pilots all look the same, feel the same
and act the same. When asked questions about the flight, they reply that you
don't want to know, don't need to know and would you please return to your
seat and watch the movie.
특징 ¶
Please see also
Fortune 파일 직접 설치하기 ¶
fortune 파일을 직접 설치하실 수 있습니다. 예를 들어 data/fortune 디렉토리를 만들어 여기에 fortune 파일을 복사해 넣고,
config.php
에 $fortune_dir="data/fortune";
식으로 디렉토리를 직접 지정해 넣으면 됩니다.