- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template:Morphquote: Difference between revisions
Jump to navigation
Jump to search
imported>JuniusThaddeus Using min-height instead. |
imported>Ld3105 workaround using MediaWiki's gallery slideshow elements |
||
| Line 1: | Line 1: | ||
<onlyinclude>< | <onlyinclude><gallery mode="slideshow" style="display: none;"></gallery> | ||
<ul class="gallery mw-gallery-slideshow" style="margin: 0; width: {{{width|600px}}}; {{{2|}}}"> | |||
-->{{#if:{{{6|}}}|<div class=" | {{#if:{{{4|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{4}}}|{{{5}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{8|}}}|<div class=" | -->{{#if:{{{6|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{6}}}|{{{7}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{10|}}}|<div class=" | -->{{#if:{{{8|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{8}}}|{{{9}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{12|}}}|<div class=" | -->{{#if:{{{10|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{10}}}|{{{11}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{14|}}}|<div class=" | -->{{#if:{{{12|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{12}}}|{{{13}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{16|}}}|<div class=" | -->{{#if:{{{14|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{14}}}|{{{15}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{18|}}}|<div class=" | -->{{#if:{{{16|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{16}}}|{{{17}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{20|}}}|<div class=" | -->{{#if:{{{18|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{18}}}|{{{19}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{22|}}}|<div class=" | -->{{#if:{{{20|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{20}}}|{{{21}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{24|}}}|<div class=" | -->{{#if:{{{22|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{22}}}|{{{23}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{26|}}}|<div class=" | -->{{#if:{{{24|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{24}}}|{{{25}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{28|}}}|<div class=" | -->{{#if:{{{26|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{26}}}|{{{27}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{30|}}}|<div class=" | -->{{#if:{{{28|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{28}}}|{{{29}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{32|}}}|<div class=" | -->{{#if:{{{30|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{30}}}|{{{31}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{34|}}}|<div class=" | -->{{#if:{{{32|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{32}}}|{{{33}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{36|}}}|<div class=" | -->{{#if:{{{34|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{34}}}|{{{35}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{38|}}}|<div class=" | -->{{#if:{{{36|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{36}}}|{{{37}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{40|}}}|<div class=" | -->{{#if:{{{38|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{38}}}|{{{39}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{42|}}}|<div class=" | -->{{#if:{{{40|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{40}}}|{{{41}}}}}</div></li>|}}<!-- | ||
-->{{#if:{{{42|}}}|<li class="gallerybox"><div class="gallerytext">{{quote|{{{42}}}|{{{43}}}}}</div></li>|}} | |||
</ul></onlyinclude><noinclude> | |||
<noinclude> | |||
<pre> | <pre> | ||
1: Unique ID | 1: Unique ID | ||
| Line 40: | Line 38: | ||
</pre> | </pre> | ||
==Examples== | ==Examples== | ||
| Line 63: | Line 60: | ||
<br> | <br> | ||
<pre> | <pre> | ||
{{morphquote|mqtest2|background-color: tan; width: 80% | {{morphquote|mqtest2|background-color: tan; width: 80%;|font-weight: bold; | ||
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | |I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | ||
|JUUUULLLAAAYYYYY!!|[[Chris-chan]] | |JUUUULLLAAAYYYYY!!|[[Chris-chan]] | ||
| Line 72: | Line 69: | ||
{{morphquote|mqtest2|background-color: tan; width: 80% | {{morphquote|mqtest2|background-color: tan; width: 80%;|font-weight: bold; | ||
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | |I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | ||
|JUUUULLLAAAYYYYY!!|[[Chris-chan]] | |JUUUULLLAAAYYYYY!!|[[Chris-chan]] | ||
| Line 85: | Line 82: | ||
<br> | <br> | ||
<pre> | <pre> | ||
{{frame|{{morphquote|mqtest3|background-color: pink; width: 600px | {{frame|{{morphquote|mqtest3|background-color: pink; width: 600px;|font-weight: bold; | ||
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | |I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | ||
|JUUUULLLAAAYYYYY!!|[[Chris-chan]] | |JUUUULLLAAAYYYYY!!|[[Chris-chan]] | ||
| Line 93: | Line 90: | ||
{{frame|{{morphquote|mqtest3|background-color: pink; width: 600px;|font-weight: bold; | |||
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | |I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | ||
|JUUUULLLAAAYYYYY!!|[[Chris-chan]] | |JUUUULLLAAAYYYYY!!|[[Chris-chan]] | ||
|I am irresistible.|some faggot|}}|border=pink|background=pink}} | |I am irresistible.|some faggot|}}|border=pink|background=pink}} | ||
| Line 102: | Line 99: | ||
<br> | <br> | ||
<pre> | <pre> | ||
{{frame|{{morphquote|mqtest4|background-color: beige; width: 600px | {{frame|{{morphquote|mqtest4|background-color: beige; width: 600px;|font-weight: bold; | ||
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | |I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | ||
|{{blueblink|JUUUULLLAAAYYYYY!!}}|[[Chris-chan]] | |{{blueblink|JUUUULLLAAAYYYYY!!}}|[[Chris-chan]] | ||
| Line 110: | Line 107: | ||
{{frame|{{morphquote|mqtest4|background-color: beige; width: 600px;|font-weight: bold; | |||
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | |I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday. | ||
|{{blueblink|JUUUULLLAAAYYYYY!!}}|[[Chris-chan]] | |{{blueblink|JUUUULLLAAAYYYYY!!}}|[[Chris-chan]] | ||
|I am irresistible.|some faggot|}}|border=blue|background=beige}} | |I am irresistible.|some faggot|}}|border=blue|background=beige}} | ||
[[Category:Formatting Templates|{{PAGENAME}}]] | [[Category:Formatting Templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> | ||
Revision as of 19:07, 14 March 2021
1: Unique ID 2: Table style 3: Navigation link styles 4/5: Quote 1 | Speaker 1 6/7: Quote 2 | Speaker 2 8/9: Quote 3 | Speaker 3 ... up to Quote 20 | Speaker 20 and so on...
Examples
{{morphquote|mqtest|background-color: lightgray;|font-weight: bold;
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday.
|JUUUULLLAAAYYYYY!!|[[Chris-chan]]
|I am irresistible.|some faggot
}}
yields...
Specify Box Dimensions
To set a constant table width, simply add the size into the same section as the background color in either pixels (px) or a percentage (%).
For example:
{{morphquote|mqtest2|background-color: tan; width: 80%;|font-weight: bold;
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday.
|JUUUULLLAAAYYYYY!!|[[Chris-chan]]
|I am irresistible.|some faggot
}}
yields...
Adding Rounded Corners
To add a rounded border to the quote box, simply wrap a template:frame around it and ensure that you specify the color in both templates:
For example:
{{frame|{{morphquote|mqtest3|background-color: pink; width: 600px;|font-weight: bold;
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday.
|JUUUULLLAAAYYYYY!!|[[Chris-chan]]
|I am irresistible.|some faggot|}}|border=pink|background=pink}}
yields...
You also have the choice to specify two different colors. We've also added template:blueblink into this example, for shits and giggles:
{{frame|{{morphquote|mqtest4|background-color: beige; width: 600px;|font-weight: bold;
|I wish I had an airplane sized oven.|Me, on the plane with fifty fucking Jews yesterday.
|{{blueblink|JUUUULLLAAAYYYYY!!}}|[[Chris-chan]]
|I am irresistible.|some faggot|}}|border=blue|background=beige}}
yields...