Template:Trailbox: Difference between revisions

From Xen
Jump to navigationJump to search
mNo edit summary
(Wrapping in span to force correct behavior on Firefox)
 
(27 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Anchor|{{{2}}}}}
<span class="module-title-wrapper">{{Anchor|{{{2}}}}}
<div class="module-title" style="width: 970px; color: black; font-size: 125%; text-align: left;"><b>{{{1}}}</b></div>
<div>
{|cellpadding="0" cellspacing="0" border="0"
|style="align: left; width: 80px;"|
|style="width: 15px;"|
|style="color: black; font-size: 125%;"|<b>{{{1}}}</b>
|}
{|style="" cellpadding="0" cellspacing="0" border="0"
{|style="" cellpadding="0" cellspacing="0" border="0"
|style="width: 80px;" valign="top"|[[File:Idea.png]]
|style="width: 220px;" valign="top"|{{{3|}}}
|style="width: 20px;"|
|style="width: 250px;" valign="top"|{{{3|}}}
|style="width: 10px;"|
|style="width: 10px;"|
|style="width: 250px;" valign="top"|{{{4|}}}
|style="width: 220px;" valign="top"|{{{4|}}}
|style="width: 10px;"|
|style="width: 10px;"|
|style="width: 250px;" valign="top"|{{{5|}}}
|style="width: 220px;" valign="top"|{{{5|}}}
|style="width: 10px;"|
|}
|style="width: 220px;" valign="top"|{{{6|}}}
</div>
|}</span>[[Category:Trail]]<noinclude>

{{documentation}}
[[Category:Trail]]

<noinclude>
== Usage ==
A Template:Trailbox is a 3 column layout which is intended to be used with the Template:Trail macro

The Trailbox, provides the following arguments
* A title : argument 1
* An anchor : argument 2
* Three content arguments 3-5 which contain a [[Template:Trail]] macro (but could also use other content). At least one argument should be provided.

The page which contains the Trailbox, will be added to the Trail category

== Examples ==
<pre>{{Trailbox|Title of box|Anchor|Lorem ipsum dolor sit amet, ...}}</pre>
<pre>{{Trailbox
|Title of box
|Anchor
|Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
|enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
|Duis autem vel eum
}}</pre>
Renders as...
{{Trailbox
|Title of box
|Anchor
|Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
|enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
|Duis autem vel eum
}}
<pre>{{Trailbox
|Title of box
|Anchor
|Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
|enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
}}</pre>
Renders as...
{{Trailbox
|Title of box
|Anchor
|Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
|enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 22:57, 26 June 2013

{{{1}}}
[edit] [purge] Template documentation

Usage

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

The Trailbox, provides the following arguments

  • A title : argument 1
  • An anchor : argument 2
  • Three content arguments 3-6 which contain a Template:Trail macro (but could also use other content). At least one argument should be provided.

The page which contains the Trailbox, will be added to the Trail category

Examples

{{Trailbox|Title of box|Anchor|Lorem ipsum dolor sit amet, ...}}
{{Trailbox
|Title of box
|Anchor
|Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod  
|enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
|Duis autem vel eum 
}}

Renders as...

Title of box
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis Duis autem vel eum
{{Trailbox
|Title of box
|Anchor
|Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod  
|enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
}}

Renders as...

Title of box
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis

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
The above documentation is transcluded from Template:Trailbox/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
A print version of this template exists at /Print. If you make a change to this template, please update the print version as well.