Anonymous
×
Create a new article
Write your page title here:
We currently have 55 articles on SR5 Foundry VTT System Wiki. Type your article name above or click on one of the titles below and start writing!



SR5 Foundry VTT System Wiki

Template:Redbox/Documentation

Revision as of 21:34, 17 November 2023 by Mr. Johnson (talk | contribs) (Created page with "<includeonly>Category:Box Template</includeonly> {{Template|Box}} is used to create formatted text boxes. ==Usage== It accepts one {{Parameter|mandatory|string}} and one {{Parameter|optional|string}}. * {{Code|1}} is the name of the article and the header for the text box. * {{Code|2}}, if supplied, is the contents of the text box. If not supplied, the contents is transcluded from a subpage of the article, using the header as the subpage name. It also uses {{Template...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Box is used to create formatted text boxes.

Usage

It accepts one mandatory string parameter and one optional string parameter.

  • 1 is the name of the article and the header for the text box.
  • 2, if supplied, is the contents of the text box. If not supplied, the contents is transcluded from a subpage of the article, using the header as the subpage name. It also uses Template:Edit to adds a link to directly edit the subpage.

It also accepts two optional named parameters:

  • width accepts Xpx or X%, and controls the width of the box. If undefined, the box has 10% margins left and right.
  • float accepts left, right, or clear.
    • If left or right, the box is floated to the selected side of the screen and the margins and padding are setup coorespondingly.
    • If clear, the box is arranged clear of all content, above and below.
  • color (default: blue) controls the color of the background. The valid options are: Template:Box/Color

Return

{{{Box|color=green|Lorem Ipsum|{{Lorem Ipsum|2}}}} returns:

{{Box|Sample}} returns:

No examples are included for float, as they don't appear correctly inside Template:Return.