Difference between revisions of "Template:Side box"

From VideoLAN Wiki
Jump to navigation Jump to search
(Add documentation)
(New parameters "wikilink4" and "label4")
Line 22: Line 22:
 
                 -->{{#if:{{{wikilink3|}}}<!--
 
                 -->{{#if:{{{wikilink3|}}}<!--
 
<!--                  -->|*'''''[[{{{wikilink3}}}|{{{label3|{{{wikilink3}}}}}}]]'''''<!--
 
<!--                  -->|*'''''[[{{{wikilink3}}}|{{{label3|{{{wikilink3}}}}}}]]'''''<!--
 +
                          -->{{#if:{{{wikilink4|}}}<!--
 +
                                -->|*'''''[[{{{wikilink4}}}|{{{label4|{{{wikilink4}}}}}}]]'''''<!--
 +
                          -->}}<!--
 
                 -->}}<!--
 
                 -->}}<!--
 
             --></div><!--
 
             --></div><!--
Line 31: Line 34:
 
</div><noinclude>
 
</div><noinclude>
 
== Usage ==
 
== Usage ==
  <nowiki>{{Side box | text | link1 | label1 | link2 | label2 | link3 | label3 }}</nowiki>
+
  <small><nowiki>{{Side box | text | link1 | label1 | link2 | label2 | link3 | label3 }}</nowiki></small>
 
or
 
or
  <nowiki>{{Side box | text | wikilink1 | label1 | wikilink2 | label2 | wikilink3 | label3 }}</nowiki>
+
  <small><nowiki>{{Side box | text | wikilink1 | label1 | wikilink2 | label2 | wikilink3 | label3 | wikilink4 | label4 }}</nowiki></small>
 
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 <code>text</code>. links and wikilinks are mutually exclusive. labels default to the link.
 
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 <code>text</code>. links and wikilinks are mutually exclusive. labels default to the link.
  
Line 41: Line 44:
 
{{clear}}
 
{{clear}}
 
  <nowiki>{{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}}</nowiki>
 
  <nowiki>{{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}}</nowiki>
{{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}}
+
{{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|wikilink=wikipedia:MPEG-4|label4=MPEG 4}}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 09:52, 5 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: