Template talk:Box

From GPWiki

Files:GUITutorial_warn.gif The Game Programming Wiki has moved! Files:GUITutorial_warn.gif

The wiki is now hosted by GameDev.NET at wiki.gamedev.net. All gpwiki.org content has been moved to the new server.

However, the GPWiki forums are still active! Come say hello.

Contents

How To Use

To just get a plain box, use the following:

{{Box|color=COLOUR NAME|content=TEXT}}

To arrange the boxes in columns:

{| width="100%"
 |-
 |style="vertical-align:top;" |

 Insert first column boxes here.

 | width="50%" style="vertical-align:top;" |

 Insert second column boxes here.

 |}

Examples

Hello!

Welcome to the Template:Box discussion page.

Example Colour Names

  • red
  • blue
  • green
  • lightblue
  • lightgreen
  • purple

Freedom!

Almost all, if not all, wiki markup should work in these boxes.

Reminder

Not everything must be on the same line. For example:

{{Box|color=yellow|content=
 ==Freedom!==
 Almost all, if not all, wiki markup should work in these boxes.
 }}

Works just fine.

Discussion

Notes

Note that width values can be adjusted, and more columns can be added as desired.

Note also, that after five boxes are displayed, it seems to just add a link to Template:Box. I don't know why it does this, or if it is fixable.

Enjoy. --Dial-Up 00:53, 19 Aug 2005 (EDT)

Neat and useful template!

Really, really cool Dial-Up! I didn't know how to use "arguments" in templates, but it really opens up a lot of posibilities. Our mother site - Wikipedia - makes extensive use of templates, so it's not just eye candy. I'm tempted to use your box template on the main page to clean up the code, but that would allow others to change the template, and thus also the main page. I could make a new box template to use and the main page and protect that template, but as the saying goes; "Don't fix what ain't broken" :)

However, nice work Dial-Up, keep it up!

Sion 06:34, 19 Aug 2005 (EDT)