User:Iritscen/TestSpace: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(NUMBEROFARTICLES is accurate now that User is being counted, so blanking the page count project -- the work I did is in the history if I ever need it, and all the statistics templates are taxing on MW)
(blanking test of pullquote inside divbox -- I no longer see the issues I was apparently seeing at the time, so either the wiki got smarter or I got less newbish)
Line 1: Line 1:
==Divbox and Pullquote, stop fighting, or I'll pull this car right over!==
Divbox and Pullquote don't get along well.  Here's what happens when I write some reasonable wiki code:


<pre><nowiki>{{Divbox|yellow|title|{{Pullquote|Pretend something witty is written here.|Iritscen}}}}</nowiki></pre>
begets:
{{Divbox|yellow|title|{{Pullquote|Pretend something witty is written here.|Iritscen}}}}
After doing some reading on WP and some fiddling, I've found that:
<pre><nowiki>{{Divbox|yellow|3=<br>{{Pullquote|Pretend something witty is written here.|Iritscen}}}}</nowiki></pre>
begets
{{Divbox|yellow|3=<br>{{Pullquote|Pretend something witty is written here.|Iritscen}}}}
So, although it works, it's only by a hack that the two templates get along together even partially.
Questions that need answering:
# Why do I need to declare that the quote text is the third parameter with "3="?
# Why does some bum text need to be inserted (here I've used "<nowiki><br></nowiki>") before the data returned by Pullquote?
# Why does using Pullquote inside of Divbox break Divbox's "width" parameter?
: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.
{{Divhide|this is the title}}
Testing divhide.
{{Divhide|end}}

Revision as of 17:02, 25 April 2012