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) VII. Certain bodies can pass through solid walls painted to resemble tunnel
entrances; others cannot.
This trompe l'oeil inconsistency has baffled generations, but at least
it is known that whoever paints an entrance on a wall's surface to
trick an opponent will be unable to pursue him into this theoretical
space. The painter is flattened against the wall when he attempts to
follow into the painting. This is ultimately a problem of art, not
of science.
VIII. Any violent rearrangement of feline matter is impermanent.
Cartoon cats possess even more deaths than the traditional nine lives
might comfortably afford. They can be decimated, spliced, splayed,
accordion-pleated, spindled, or disassembled, but they cannot be
destroyed. After a few moments of blinking self pity, they reinflate,
elongate, snap back, or solidify.
IX. For every vengeance there is an equal and opposite revengeance.
This is the one law of animated cartoon motion that also applies to
the physical world at large. For that reason, we need the relief of
watching it happen to a duck instead.
X. Everything falls faster than an anvil.
Examples too numerous to mention from the Roadrunner cartoons.
-- Esquire, "O'Donnell's Laws of Cartoon Motion", June 1980
[[Fortune(love)]]
If you can't be good, be careful. If you can't be careful, give me a call.
[[Fortune(*)]]
If it has syntax, it isn't user friendly.
특징 ¶
Please see also
Fortune 파일 직접 설치하기 ¶
fortune 파일을 직접 설치하실 수 있습니다. 예를 들어 data/fortune 디렉토리를 만들어 여기에 fortune 파일을 복사해 넣고,
config.php
에 $fortune_dir="data/fortune";
식으로 디렉토리를 직접 지정해 넣으면 됩니다.