Difference between revisions of "Template:Side box"
Jump to navigation
Jump to search
m (DoesItReallyMatter moved page Template:Sidebox to Template:Side box without leaving a redirect: To match Template:Top box) |
m (Remove all styles from infobox (still visually identical). Classes are now defined in MediaWiki:common.css) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <div class="noprint | + | <div class="noprint infobox sidebox"> |
<div class="center">{{{text}}}</div><!-- | <div class="center">{{{text}}}</div><!-- | ||
-->{{#if:{{{link1|}}}<!-- | -->{{#if:{{{link1|}}}<!-- | ||
-->|{{#if:{{{link2|}}}<!-- | -->|{{#if:{{{link2|}}}<!-- | ||
− | -->|<div | + | -->|<div class="infobox-multipleitem"> |
<!-- -->*'''''[{{{link1}}} {{{label1|{{{link1}}}}}}]''''' | <!-- -->*'''''[{{{link1}}} {{{label1|{{{link1}}}}}}]''''' | ||
<!-- -->*'''''[{{{link2}}} {{{label2|{{{link2}}}}}}]'''''<!-- | <!-- -->*'''''[{{{link2}}} {{{label2|{{{link2}}}}}}]'''''<!-- | ||
Line 10: | Line 10: | ||
-->}}<!-- | -->}}<!-- | ||
--></div><!-- | --></div><!-- | ||
− | -->|<div | + | -->|<div class="infobox-singleitem"><!-- |
-->'''''[{{{link1}}} {{{label1|{{{link1}}}}}}]'''''<!-- | -->'''''[{{{link1}}} {{{label1|{{{link1}}}}}}]'''''<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 17: | Line 17: | ||
-->{{#if:{{{wikilink1|}}}<!-- | -->{{#if:{{{wikilink1|}}}<!-- | ||
-->|{{#if:{{{wikilink2|}}}<!-- | -->|{{#if:{{{wikilink2|}}}<!-- | ||
− | -->|<div | + | -->|<div class="infobox-multipleitem"> |
<!-- -->*'''''[[{{{wikilink1}}}|{{{label1|{{{wikilink1}}}}}}]]''''' | <!-- -->*'''''[[{{{wikilink1}}}|{{{label1|{{{wikilink1}}}}}}]]''''' | ||
<!-- -->*'''''[[{{{wikilink2}}}|{{{label2|{{{wikilink2}}}}}}]]'''''<!-- | <!-- -->*'''''[[{{{wikilink2}}}|{{{label2|{{{wikilink2}}}}}}]]'''''<!-- | ||
-->{{#if:{{{wikilink3|}}}<!-- | -->{{#if:{{{wikilink3|}}}<!-- | ||
<!-- -->|*'''''[[{{{wikilink3}}}|{{{label3|{{{wikilink3}}}}}}]]'''''<!-- | <!-- -->|*'''''[[{{{wikilink3}}}|{{{label3|{{{wikilink3}}}}}}]]'''''<!-- | ||
+ | -->{{#if:{{{wikilink4|}}}<!-- | ||
+ | -->|*'''''[[{{{wikilink4}}}|{{{label4|{{{wikilink4}}}}}}]]'''''<!-- | ||
+ | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
--></div><!-- | --></div><!-- | ||
− | -->|<div | + | -->|<div class="infobox-singleitem"><!-- |
-->'''''[[{{{wikilink1}}}|{{{label1|{{{wikilink1}}}}}}]]'''''<!-- | -->'''''[[{{{wikilink1}}}|{{{label1|{{{wikilink1}}}}}}]]'''''<!-- | ||
--></div><!-- | --></div><!-- | ||
Line 30: | Line 33: | ||
-->}} | -->}} | ||
</div><noinclude> | </div><noinclude> | ||
+ | == Usage == | ||
+ | <small><nowiki>{{Side box | text | link1 | label1 | link2 | label2 | link3 | label3 }}</nowiki></small> | ||
+ | or | ||
+ | <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. | ||
+ | |||
+ | '''Examples''' | ||
+ | <nowiki>{{side box|text=Example is [[free]] and [[open source]]!}}</nowiki> | ||
+ | {{side box|text=Example is [[free]] and [[open source]]!}} | ||
+ | {{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> | ||
+ | {{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|wikilink4=wikipedia:MPEG-4|label4=MPEG 4}} | ||
+ | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 05:42, 20 April 2019
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]]!}}
{{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}}