Welcome to Warhammer 40k - Lexicanum! Log in and join the community.

Difference between revisions of "Template:QuoteBox"

From Warhammer 40k - Lexicanum
Jump to: navigation, search
(don't overlap)
m (Undo revision 524579 by Siegfriedfr (talk))
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="quotebox" style="
+
<includeonly><div class="quotebox" max-width=“100%“ style="
     {{#switch: {{lc:{{{align|}}}}}  
+
     {{#switch: {{{align|center}}}
         | center = margin: auto; display: table;
+
         | center = margin: 0.5em auto 0.5em auto; display: table;
 
         | left = float: left; clear: left; margin: 0.5em 1.4em 0.8em 0;
 
         | left = float: left; clear: left; margin: 0.5em 1.4em 0.8em 0;
 
         | none =  
 
         | none =  
 
         | float: right; clear: right; margin: 0.5em 0 0.8em 1.4em;  
 
         | float: right; clear: right; margin: 0.5em 0 0.8em 1.4em;  
 
     }}  
 
     }}  
     {{#if:{{{width|<noinclude>1</noinclude>}}} | width: {{{width|<noinclude>30em</noinclude>}}};}}  
+
     {{#if:{{{width|}}} | width: {{{width|}}};}}  
 
     padding: 6px;  
 
     padding: 6px;  
 
     border: {{{border|1px}}} solid;
 
     border: {{{border|1px}}} solid;
Line 13: Line 13:
 
     background: {{{bgcolor|inherit}}};
 
     background: {{{bgcolor|inherit}}};
 
     {{{style|}}}">
 
     {{{style|}}}">
{{#if:{{{title|<noinclude>1</noinclude>}}}
+
{{#if:{{{title|}}}
 
     |<div style="
 
     |<div style="
 
         background: {{{title_bg|inherit}}};  
 
         background: {{{title_bg|inherit}}};  
Line 20: Line 20:
 
         font-size: larger;  
 
         font-size: larger;  
 
         font-weight: bold;  
 
         font-weight: bold;  
         {{{tstyle|}}}">{{{title|<noinclude>Example</noinclude>}}}</div>  
+
         {{{tstyle|}}}">{{{title|}}}</div>  
 
}}
 
}}
 
<div style="
 
<div style="
Line 27: Line 27:
 
     {{{qstyle|}}}">
 
     {{{qstyle|}}}">
 
<div {{#if:{{{quoted|}}}|style="margin:0px 2em;"}}>
 
<div {{#if:{{{quoted|}}}|style="margin:0px 2em;"}}>
{{{quote|{{{1|<noinclude>In the grim darkness of the far future there is only war.</noinclude>}}} }}}
+
{{{quote|{{{1|}}} }}}
 
</div>
 
</div>
 
{{#if:{{{quoted|}}}
 
{{#if:{{{quoted|}}}
Line 49: Line 49:
 
<div style="
 
<div style="
 
     text-align: {{{salign|{{{qalign|{{{halign|left}}}}}}}}};  
 
     text-align: {{{salign|{{{qalign|{{{halign|left}}}}}}}}};  
     {{{sstyle|}}}">{{{source|{{{2|<noinclude>--Warhammer 40,000</noinclude>}}} }}}</div>
+
     {{{sstyle|}}}">{{{source|{{{2|}}} }}}</div>
</div><noinclude>
+
</div></includeonly><noinclude>
 +
{{QuoteBox
 +
|title = Example
 +
|quote = In the grim darkness of the far future there is only war.
 +
|source = --Warhammer 40,000
 +
|width = 30em
 +
}}
 
<div style="clear: right"></div>
 
<div style="clear: right"></div>
 
==Code==
 
==Code==
 
  <nowiki>
 
  <nowiki>
{{Quote box
+
{{QuoteBox
 
  |title =  
 
  |title =  
 
  |quote =  
 
  |quote =  
Line 78: Line 84:
  
 
  <nowiki>
 
  <nowiki>
{{Quote box
+
{{QuoteBox
 
  |title = Example
 
  |title = Example
 
  |quote = In the grim darkness of the far future there is only war.
 
  |quote = In the grim darkness of the far future there is only war.
Line 85: Line 91:
 
}}
 
}}
 
  </nowiki>
 
  </nowiki>
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:50, 4 June 2023

Example

In the grim darkness of the far future there is only war.

--Warhammer 40,000

Code

{{QuoteBox
 |title = 
 |quote = 
 |source = 
 |align = 
 |width = 
 |border = 
 |fontsize = 
 |bgcolor = 
 |style = 
 |title_bg = 
 |title_fnt = 
 |tstyle = 
 |qalign = 
 |qstyle = 
 |quoted = 
 |salign = 
 |sstyle = 
}}
 

Example

{{QuoteBox
 |title = Example
 |quote = In the grim darkness of the far future there is only war.
 |source = --Warhammer 40,000
 |width = 30em
}}