Difference between revisions of "Template:Side box"

From VideoLAN Wiki
Jump to navigation Jump to search
m (Fix typo)
m (Use CSS class "infobox" defined in MediaWiki:Common.css taken from MediaWiki:Monobook.css)
Line 1: Line 1:
<div class="noprint" style="clear: right; border: solid #aaa 1px; margin: 0 0 1em 1em; font-size: 90%; background: #f9f9f9; width: 250px; padding: 4px; spacing: 0px; float: right;">
+
<div class="noprint infobox" style="margin: 0 0 1em 1em; font-size: 90%; width: 250px; padding: 4px; spacing: 0px;">
 
<div class="center">{{{text}}}</div><!--
 
<div class="center">{{{text}}}</div><!--
 
-->{{#if:{{{link1|}}}<!--
 
-->{{#if:{{{link1|}}}<!--

Revision as of 06:05, 25 March 2019

{{{text}}}

Usage

{{Side box | text | link1 | label1 | link2 | label2 | link3 | label3 }}

or

{{Side box | text | wikilink1 | label1 | wikilink2 | label2 | wikilink3 | label3 | wikilink4 | label4 }}

This is a meta-template. There is no guarantee that usage will remain the same, but will be changed when needed. The only required parameter is text. links and wikilinks are mutually exclusive. labels default to the link.

Examples

{{side box|text=Example is [[free]] and [[open source]]!}}
Example is free and open source!
{{side box|text=[[wikipedia:Main_Page|Wikipedia]] has information on these entries:|wikilink1=wikipedia:MPEG-1|label1=MPEG 1|wikilink2=wikipedia:MPEG-2|label2=MPEG 2|wikilink3=wikipedia:MPEG-3|label3=MPEG 3}}
Wikipedia has information on these entries: