Difference between revisions of "Template:Side box"

From VideoLAN Wiki
Jump to navigation Jump to search
(Accepts parameters "above" and "text")
(Parameter "above" doesn't fit our use case; removing. Accepts "link1", "link2", "link3", "label1", "label2", "label3")
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; text-align: left; float: right;">
 
<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; text-align: left; float: right;">
{{#if:{{{above|}}}<!--
+
<div class="center">{{{text}}}</div><!--
-->|<div class="center">{{{above}}}</div><!--
+
-->{{#if:{{{link1|}}}<!--
--><div style="text-align: left; margin-left: 4.0em;">{{{text}}}</div><!--
+
      -->|<div class="text-align: left; margin-left: {{#if:{{{link2|}}}|2.5em;|4em;}}"><!--
-->|<div class="center">{{{text}}}</div><!--
+
      -->*'''''[{{{link1}}} {{{label1|{{{link1}}}}}}]'''''<!--
-->}}
+
      -->{{#if:{{{link2|}}}<!--
 +
            -->|*'''''[{{{link2}}} {{{label2|{{{link2}}}}}}]'''''<!--
 +
            -->{{#if:{{{link3|}}}<!--
 +
                  -->|*'''''[{{{link3}}} {{{label3|{{{link3}}}}}}]'''''<!--
 +
            -->}}<!--
 +
      -->}}<!--
 +
-->}}<!--
 +
-->{{#if:{{{link1|}}}<!--
 +
      -->|</div><!--
 +
-->}}<!--
 +
-->
 
</div><noinclude>
 
</div><noinclude>
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 07:56, 5 March 2019

{{{text}}}