Template:Trail: Difference between revisions
From Xen
Jump to navigationJump to search
Lars.kurth (talk | contribs) m (Basic Trail template) |
Lars.kurth (talk | contribs) No edit summary |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{|class="module-content" style="margin: 0.2em 10px 10px; padding:0.2em 0.4em; text-align: left; width: 220px;" cellpadding="3" cellspacing="0" border="0" |
|||
⚫ | |||
{|style="background-color:#FFFFC2;" cellpadding="3" cellspacing="0" border="0" |
|||
⚫ | |||
|- |
|- |
||
|style="color |
|style="color #5C5C73: black;"|{{{2}}} |
||
⚫ | |||
|- |
|||
{{documentation}} |
|||
|} |
|||
[[Category:Templates]] |
|||
</div> |
|||
⚫ | |||
== 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 |
|||
* List elements : argument 2; items separated by | |
|||
== Examples == |
|||
<pre>{{Trail|Headline|Line1|Line2|...}}</pre> |
|||
<pre>{{Trail|Headline|Line1|Line2|Line3333|Line4444}}}</pre> |
|||
Renders as... |
|||
{{Trail|Headline|Line1|Line2|Line3333|Line4444}} |
|||
</noinclude> |
</noinclude> |
||
== Example Use with Trailbox == |
|||
<pre>{{Trailbox|Title of box|Anchor|Lorem ipsum dolor sit amet, ...}}</pre> |
|||
<pre>{{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}} |
|||
}}</pre> |
|||
Renders as... |
|||
{{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}} |
|||
}}</noinclude> |
Latest revision as of 16:48, 22 June 2013
{{{1}}} |
{{{2}}} |
[edit] [ ] Template documentation
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 |
|
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
|
|
The above documentation is transcluded from Template:Trail/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (edit) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |