Difference between revisions of "Template:Trail"

From Xen
m (Example Use with Trailbox)
Line 1: Line 1:
<div style="background: #FFFFC2; border: 2px solid black; margin: 0.2em 10px 10px; padding:0.2em 0.4em; text-align: left; width: 250px;">
+
<div style="background: #FFFFC2; border: 2px solid black; margin: 0.2em 10px 10px; padding:0.2em 0.4em; text-align: left; width: 220px;">
 
{|style="background-color:#FFFFC2;" cellpadding="3" cellspacing="0" border="0"
 
{|style="background-color:#FFFFC2;" cellpadding="3" cellspacing="0" border="0"
|style="align: left; width: 250px;"|<b>{{{1}}}</b>
+
|style="align: left; width: 220px;"|<b>{{{1}}}</b>
 
|-
 
|-
 
|style="color #5C5C73: black;"|{{{2}}}
 
|style="color #5C5C73: black;"|{{{2}}}

Revision as of 21:16, 10 November 2011

{{{1}}}
{{{2}}}


Usage

A Template:Trail is a 3 column layout which is intended to be used with the Template:Trailbox macro

The Trailbox, provides the following arguments

  • A title : argument 1
  • List elements : argument 2 which describes links to further articles that should be separated by *'s (see examples)

Examples

{{Trail|Headline|
* Line 1
* Line 2
* ...}}
{{Trail|Headline|
* Line 1 
* Line 2 
* Line 3333 
* Line 4444}}

Renders as...

Headline
  • Line 1
  • Line 2
  • Line 3333
  • Line 4444

Example Use with Trailbox

{{Trailbox|Title of box|Anchor|Lorem ipsum dolor sit amet, ...}}
{{Trailbox|Title of box|Anchor
|{{Trail|Headline 1|
* Line 1
* Line 2
* Line 3333
* Line 4444}}
|{{Trail|Headline 2|
* Line 111
* Line 222
* Line 33 
* Line 444}}
}}

Renders as...

Title of box
Headline 1
  • Line 1
  • Line 2
  • Line 3333
  • Line 4444
Headline 2
  • Line 111
  • Line 222
  • Line 33
  • Line 444