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)You can tune a piano, but you can't tuna fish.
You can tune a filesystem, but you can't tuna fish.
-- from the tunefs(8) man page
[[Fortune(love)]]Why I Can't Go Out With You:
I'd LOVE to, but...
-- I have to answer all of my "occupant" letters.
-- None of my socks match.
-- I'm having all my plants neutered.
-- I changed the lock on my door and now I can't get out.
-- My yucca plant is feeling yucky.
-- I'm touring China with a wok band.
-- My chocolate-appreciation class meets that night.
-- I'm running off to Yugoslavia with a foreign-exchange student
named Basil Metabolism.
-- There are important world issues that need worrying about.
-- I'm going to count the bristles in my toothbrush.
-- I prefer to remain an enigma.
-- I think you want the OTHER Peggy/Cathy/Mike/whomever.
-- I feel a song coming on.
[[Fortune(*)]]It looks like it's up to me to save our skins. Get into that garbage chute,
flyboy!
-- Princess Leia Organa
특징 ¶
Please see also
Fortune 파일 직접 설치하기 ¶
fortune 파일을 직접 설치하실 수 있습니다. 예를 들어 data/fortune 디렉토리를 만들어 여기에 fortune 파일을 복사해 넣고,
config.php에 $fortune_dir="data/fortune"; 식으로 디렉토리를 직접 지정해 넣으면 됩니다.









.png)