Template:BoxLinkGroup: Difference between revisions

From Armagetron Advanced
Epsy (talk | contribs)
Created a template for grouped pages, like tournaments
 
Cadillac (talk | contribs)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
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"><div class="linkgroup-links" >'''{{{1}}}''' | {{{2}}}</div></div>
----
<div class="linkgroup-description">{{{3|}}}</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]]}}
 
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}}


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


</noinclude>
</noinclude>

Latest revision as of 12:45, 24 August 2021

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