The vertical post is the mast, and the horizontal post is the spar. Both are required.
caravel
"Square-riggers" have primarily square sails, but the jib sails are triangular.
yardarm - an extension would be a sprit
Sloops, ketches, and yawls have triangular-shaped sails.
Dragon Quest VI: Sailing the High Seas Gameplay
The Queen Elizabeth II Sets Sail
Sailing on the Endeavor in Nantucket
Explore Military Watercraft