Text-indent in a #ask query

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Text-indent in a #ask query

david-217
Hi, somebody knows why text-indent doesn't work after the first result
in this #ask query with template?
http://teixidora.referata.com/wiki/Usuari:Dvdgmz/proves
Template here:
http://teixidora.referata.com/wiki/Plantilla:Show_event_line 

Sure that will be something stupid that I'm not seeing :-(

thanks in advance

Dvdgmz.


------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Text-indent in a #ask query

chris tharp-2
Hi David,

This is not really a Semantic Mediawiki, but a Mediawiki issue. Mediawiki
assumes every line break closes a paragraph and auto generates the
paragraph tag. If you check the page source for the page you linked to
you'll see the paragraph is closing after the line break. The question
isn't why it does not work after the first result, but why it works in the
first result. I assume this part of Mediawiki's strange behavior with white
space. Maybe, and let me stress this is a maybe, the following change would
fix it:

As the template is:

<p style="margin-left:4em; text-indent:-4em;
color:#ff3c91;">_____[[{{{?pageTitle}}}|'''{{{?title|}}}''']] <span
style="background-color:#ff3c91; padding-left:0.8em; font-size:0.9em;
text-decoration:none">[[{{{?pageTitle|}}}|<span style="color:#fff">'''+'''
info/edita</span>]]</span><br/>
<span style="color:black; font-size:0.9em">{{#if:{{{?end|}}}|des de}}
{{{?start|}}} {{#if:{{{?end|}}}| fins a {{{?end|}}}
}}{{#if:{{{?location|}}}|a {{{?location|}}} }}</span><br/>
{{#if:{{{?web link|}}}|<span style="font-size:0.9em">· [{{{?web link|}}}
web] </span>}}{{#ifexist:{{{?pageTitle}}}/apunts|<span
style="font-size:0.9em">· [[{{{?pageTitle}}}/apunts|apunts]]
</span>|{{#if:{{{?notesLink|}}}|<span style="font-size:0.9em">·
[{{{?notesLink|}}} apunts] </span>}} }}{{#if:{{{?twitter account|}}}|<span
style="font-size:0.9em">· [https://twitter.com/{{{?twitter account|}}}
@{{{?twitter account|}}}] </span>}}</p>

Change to (getting rid of white space):

<p style="margin-left:4em; text-indent:-4em;
color:#ff3c91;">_____[[{{{?pageTitle}}}|'''{{{?title|}}}''']] <span
style="background-color:#ff3c91; padding-left:0.8em; font-size:0.9em;
text-decoration:none">[[{{{?pageTitle|}}}|<span style="color:#fff">'''+'''
info/edita</span>]]</span><br/><span style="color:black;
font-size:0.9em">{{#if:{{{?end|}}}|des de}} {{{?start|}}}
{{#if:{{{?end|}}}| fins a {{{?end|}}} }}{{#if:{{{?location|}}}|a
{{{?location|}}} }}</span><br/>
{{#if:{{{?web link|}}}|<span style="font-size:0.9em">· [{{{?web link|}}}
web] </span>}}{{#ifexist:{{{?pageTitle}}}/apunts|<span
style="font-size:0.9em">· [[{{{?pageTitle}}}/apunts|apunts]]
</span>|{{#if:{{{?notesLink|}}}|<span style="font-size:0.9em">·
[{{{?notesLink|}}} apunts] </span>}} }}{{#if:{{{?twitter account|}}}|<span
style="font-size:0.9em">· [https://twitter.com/{{{?twitter account|}}}
@{{{?twitter account|}}}] </span>}}</p>

Test it out. Hopefully it works.

On Tue, Apr 12, 2016 at 12:18 PM, david <[hidden email]> wrote:

> Hi, somebody knows why text-indent doesn't work after the first result
> in this #ask query with template?
> http://teixidora.referata.com/wiki/Usuari:Dvdgmz/proves
> Template here:
> http://teixidora.referata.com/wiki/Plantilla:Show_event_line
>
> Sure that will be something stupid that I'm not seeing :-(
>
> thanks in advance
>
> Dvdgmz.
>
>
>
> ------------------------------------------------------------------------------
> Find and fix application performance issues faster with Applications
> Manager
> Applications Manager provides deep performance insights into multiple
> tiers of
> your business applications. It resolves application problems quickly and
> reduces your MTTR. Get your free trial!
> https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> _______________________________________________
> Semediawiki-user mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Reply | Threaded
Open this post in threaded view
|

Re: Text-indent in a #ask query

david-217
good! Works. Thanks Chris for the solution and the explanation, I'll
have it in mind from now on.


El dt 12 de 04 de 2016 a les 13:28 -0700, en/na chris tharp va escriure:

> Hi David,
>
>
> This is not really a Semantic Mediawiki, but a Mediawiki issue.
> Mediawiki assumes every line break closes a paragraph and auto
> generates the paragraph tag. If you check the page source for the page
> you linked to you'll see the paragraph is closing after the line
> break. The question isn't why it does not work after the first result,
> but why it works in the first result. I assume this part of
> Mediawiki's strange behavior with white space. Maybe, and let me
> stress this is a maybe, the following change would fix it:
>
>
> As the template is:
>
> <p style="margin-left:4em; text-indent:-4em;
> color:#ff3c91;">_____[[{{{?pageTitle}}}|'''{{{?title|}}}''']] <span
> style="background-color:#ff3c91; padding-left:0.8em; font-size:0.9em;
> text-decoration:none">[[{{{?pageTitle|}}}|<span
> style="color:#fff">'''+''' info/edita</span>]]</span><br/>
> <span style="color:black; font-size:0.9em">{{#if:{{{?end|}}}|des de}}
> {{{?start|}}} {{#if:{{{?end|}}}| fins a
> {{{?end|}}} }}{{#if:{{{?location|}}}|a {{{?location|}}} }}</span><br/>
> {{#if:{{{?web link|}}}|<span style="font-size:0.9em">· [{{{?web
> link|}}} web] </span>}}{{#ifexist:{{{?pageTitle}}}/apunts|<span
> style="font-size:0.9em">· [[{{{?pageTitle}}}/apunts|apunts]]
> </span>|{{#if:{{{?notesLink|}}}|<span style="font-size:0.9em">·
> [{{{?notesLink|}}} apunts] </span>}} }}{{#if:{{{?twitter
> account|}}}|<span style="font-size:0.9em">·
> [https://twitter.com/{{{?twitter account|}}} @{{{?twitter account|}}}]
> </span>}}</p>
>
>
> Change to (getting rid of white space):
>
> <p style="margin-left:4em; text-indent:-4em;
> color:#ff3c91;">_____[[{{{?pageTitle}}}|'''{{{?title|}}}''']] <span
> style="background-color:#ff3c91; padding-left:0.8em; font-size:0.9em;
> text-decoration:none">[[{{{?pageTitle|}}}|<span
> style="color:#fff">'''+''' info/edita</span>]]</span><br/><span
> style="color:black; font-size:0.9em">{{#if:{{{?end|}}}|des de}}
> {{{?start|}}} {{#if:{{{?end|}}}| fins a
> {{{?end|}}} }}{{#if:{{{?location|}}}|a {{{?location|}}} }}</span><br/>
> {{#if:{{{?web link|}}}|<span style="font-size:0.9em">· [{{{?web
> link|}}} web] </span>}}{{#ifexist:{{{?pageTitle}}}/apunts|<span
> style="font-size:0.9em">· [[{{{?pageTitle}}}/apunts|apunts]]
> </span>|{{#if:{{{?notesLink|}}}|<span style="font-size:0.9em">·
> [{{{?notesLink|}}} apunts] </span>}} }}{{#if:{{{?twitter
> account|}}}|<span style="font-size:0.9em">·
> [https://twitter.com/{{{?twitter account|}}} @{{{?twitter account|}}}]
> </span>}}</p>
>
>
> Test it out. Hopefully it works.
>
>
> On Tue, Apr 12, 2016 at 12:18 PM, david <[hidden email]> wrote:
>         Hi, somebody knows why text-indent doesn't work after the
>         first result
>         in this #ask query with template?
>         http://teixidora.referata.com/wiki/Usuari:Dvdgmz/proves
>         Template here:
>         http://teixidora.referata.com/wiki/Plantilla:Show_event_line
>        
>         Sure that will be something stupid that I'm not seeing :-(
>        
>         thanks in advance
>        
>         Dvdgmz.
>        
>        
>         ------------------------------------------------------------------------------
>         Find and fix application performance issues faster with
>         Applications Manager
>         Applications Manager provides deep performance insights into
>         multiple tiers of
>         your business applications. It resolves application problems
>         quickly and
>         reduces your MTTR. Get your free trial!
>         https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>         _______________________________________________
>         Semediawiki-user mailing list
>         [hidden email]
>         https://lists.sourceforge.net/lists/listinfo/semediawiki-user
>
>



------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user