Difference between revisions of "Template:BoxLinkGroup"

From Armagetron
(Created a template for grouped pages, like tournaments)
 
m (Made description optional and added docs.)
Line 1: Line 1:
<includeonly><div class="box box-linkgroup" style="background: rgba(255,255,255,.65); padding: 2px;"><div class="linkgroup-links" style="background: lightgray;">'''{{{1}}}''' | {{{2}}}</div><div class="linkgroup-description">{{{3}}}</div></div></includeonly><noinclude>This template is useful for grouping a few pages together and linking between them.
+
<includeonly><div class="box box-linkgroup" style="background: rgba(255,255,255,.65); padding: 2px;"><div class="linkgroup-links" style="background: lightgray;">'''{{{1}}}''' | {{{2}}}</div><div class="linkgroup-description">{{{3|}}}</div></div></includeonly><noinclude>This template is useful for grouping a few pages together and linking between them.
  
 
==Usage==
 
==Usage==
  
Give a title and a pipe-separated list of links as first and second argument, respectively:
+
Give a title as first argument, and a <code><nowiki> {{!}} </nowiki></code>-separated list of links as second argument:
  
  <nowiki>{{BoxLinkGroup|Title|[[Page One]]\|[[Page Two]]}}</nowiki>
+
  <nowiki>{{BoxLinkGroup|Title|[[Page One]] {{!}} [[Page Two]]}}</nowiki>
  
{{BoxLinkGroup|Title|[[Page One]]\|[[Page Two]]}}
+
{{BoxLinkGroup|Title|[[Page One]] {{!}} [[Page Two]]}}
 +
 
 +
You can use the optional third argument to provide a description.
 +
 
 +
<nowiki>{{BoxLinkGroup|Title|[[Page One]] {{!}} [[Page Two]]|Description}}</nowiki>
 +
 
 +
{{BoxLinkGroup|Title|[[Page One]] {{!}} [[Page Two]]|Description}}
  
 
</noinclude>
 
</noinclude>

Revision as of 19:23, 16 January 2013

This template is useful for grouping a few pages together and linking between them.

Usage

Give a title as first argument, and a {{!}} -separated list of links as second argument:

{{BoxLinkGroup|Title|[[Page One]] {{!}} [[Page Two]]}}

You can use the optional third argument to provide a description.

{{BoxLinkGroup|Title|[[Page One]] {{!}} [[Page Two]]|Description}}
Description