User:Iritscen/TestSpace: Difference between revisions

From OniGalore
Jump to navigation Jump to search
No edit summary
No edit summary
Line 24: Line 24:
:Because pullquote has its own width...[[User:Gumby|Gumby]]
:Because pullquote has its own width...[[User:Gumby|Gumby]]
<nowiki>#</nowiki>3 is of the most concern to me, followed by #2. I suspect that the fact that Pullquote actually returns table code is part of the problem behind all this.
<nowiki>#</nowiki>3 is of the most concern to me, followed by #2. I suspect that the fact that Pullquote actually returns table code is part of the problem behind all this.
{{Divbox|yellow|
{| align="center" style="border-collapse:collapse;border-style:none;background-color:transparent;max-width:40em;width:auto;margin:0 10%;"
| valign="top" style="color:{{{color|silver}}};font-size:{{{size|3.6em}}};font-family:serif;font-weight:bold;text-align:left;padding:10px 0;" | “
| valign="top" style="padding:0 1em;" | Pretend something witty is written here.
| valign="bottom" style="color:{{{color|silver}}};font-size:{{{size|3.6em}}};font-family:serif;font-weight:bold;text-align:right;padding:10px 0;" | „
|-
| colspan="3" style="padding:1ex 0 0 0;" | {{#if:Iritscen|<p style="line-height:1em;text-align:right;"><small><cite style="font-style:normal;">—Iritscen{{#if:{{{3|}}}|,&nbsp;{{{3}}}}}</cite></small></p>}}
|}<!-- User:Iritscen/TestSpace -->}}

Revision as of 20:22, 8 December 2008

Divbox and Pullquote don't get along well. Here's what happens when I write some reasonable wiki code:

{{Divbox|yellow|{{Pullquote|Pretend something witty is written here.|Iritscen}}}}

begets:

<div class="boilerplate metadata" id="

Pretend something witty is written here.

—Iritscen

" style="background-color: #FFFFCC; border: 1px solid #FFCC00; margin: 0.5em; padding: 0.5em;

padding
1em;">
Pretend something witty is written here.

—Iritscen

{{{3}}}


After doing some reading on WP and some fiddling, I've found that:

{{Divbox|yellow|3=<br>{{Pullquote|Pretend something witty is written here.|Iritscen}}}}

begets


So, although it works, it's only by a hack that the two templates get along together even partially.

Questions that need answering:

  1. Why do I need to declare that the quote text is the third parameter with "3="?
  2. Why does some bum text need to be inserted (here I've used "<br>") before the data returned by Pullquote?
  3. Why does using Pullquote inside of Divbox break Divbox's "width" parameter?
Because pullquote has its own width...Gumby

#3 is of the most concern to me, followed by #2. I suspect that the fact that Pullquote actually returns table code is part of the problem behind all this.