Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Box/Documentation: Difference between revisions

No edit summary
No edit summary
Line 6: Line 6:
* {{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.
* {{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 accepts one {{Parameter|optional|named}}:
It also accepts one {{Parameter|optional|named}}:
* {{Code|color}} (default: {{Code|red}}) controls the color of the background.
* {{Code|color}} (default: {{Code|red}}) controls the color of the background. The valid options are: {{Box/Color}}
==Return==
==Return==
{{Box|color=red|Lorem Ipsum|{{Lorem Ipsum|2}}}}


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


{{Box|color=blue|Lorem Ipsum|{{Lorem Ipsum|2}}}}
{{Box|color=blue|Lorem Ipsum|{{Lorem Ipsum|2}}}}
{{Code|<nowiki>{{Box|color=red|Box}}</nowiki>}} returns: {{Returns|{{Box|color=red|Box}}}}

Revision as of 18:43, 23 October 2022

Template:Box is used to create formatted text boxes.

Usage

I 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 accepts one optional named parameter:

  • color (default: red) controls the color of the background. The valid options are:
red
green
blue
yellow
purple
cyan
gray
white

Return

Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio. Integer ac magna nunc. In quis libero purus. Praesent mattis eget justo in efficitur. Aenean tempor congue dictum. Mauris hendrerit nunc a auctor dictum.
Lorem Ipsum
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis quis metus nunc. Fusce est libero, interdum vel iaculis et, blandit quis odio. Integer ac magna nunc. In quis libero purus. Praesent mattis eget justo in efficitur. Aenean tempor congue dictum. Mauris hendrerit nunc a auctor dictum.

{{Box|color=red|Box}} returns: Template:Returns