Jump to content

Template talk:Pre2

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Pre2/sandbox)

Scroll capability etc. and aims

[edit]

What I was hoping is having {{Pre2|scroll=yes}} which would make the scroll part of the style have an effect but not the wrap, or {{Pre2|wrap=yes}} which would make the wrap part of the style have an effect. Ideally, {{Pre2}} would just have the wrap part.

That's just where I'm trying to get... Thanks, Drum guy (talk) 15:58, 12 April 2008 (UTC)[reply]

Ok, it's got a bit further (thanks to Rocket000) and these are my new aims:
{{Pre2|Text}} will generate a wrapping <pre> with content "Text".
{{Pre2|scroll|Text}} will generate a scrolling <pre> with content "Text".
--Drum guy (talk) 21:38, 13 June 2008 (UTC)[reply]
 Done :) Rocket000 (talk) 23:58, 13 June 2008 (UTC)[reply]

Nowiki

[edit]

Almost got it to work... but now it's MediaWiki's devs turn to make <nowiki> and {{#tag:}} work right.

Here's an example:
{{pre2|nw|
<small>'''Text'''</small>
[[wiki|link]][[:category:category]][[media:media]]{{template}}
{{CURRENTYEAR}}<nowiki>{{yeswiki}}</nowiki>
}}

Gives:

nw|
Text
linkcategory:categorymedia:media{{[[Template:{{{1}}}|{{{1}}}]]}}
2024{{yeswiki}}

Using MediaWiki's tags:

<small>'''Text'''</small>
[[wiki|link]][[:category:category]][[media:media]]{{template}}
{{CURRENTYEAR}}<nowiki>{{yeswiki}}
</nowiki>

It should look like:

<small>'''Text'''</small>
[[wiki|link]][[:category:category]][[media:media]]{{template}}
{{CURRENTYEAR}}<nowiki>{{yeswiki}}</nowiki>

View source to see how I made the last one or this could go on forever :) Anyway, until nowiki is fixed, this is as far as we can get. (Also, my colon after "Gives" has disappeared for some reason). Rocket000 (talk) 23:17, 15 June 2008 (UTC)[reply]

I edited what's above from what you originally wrote. There is now one fewer <pre> so I won't confuse it with other <pre>/{{pre2}}s etc..
I also changed your "using MediaWiki's tags" part. WikEd pointed out that the <nowiki> was ending too early so it is now &lt;nowiki>. Has that fixed anything?
I'm not completely sure what it means - you're much more of an expert than me. I've added on the doc that plain <nowiki> tags could be added. Is this good/right? Does it mean that if MediaWiki makes a fix, all of the instances where {{Pre2|<nowiki>content}}</nowiki> exists will break/have an extra <nowiki> at the start and end?
I'm afraid only have a small brain. Thanks, Drum guy (talk) 14:58, 24 June 2008 (UTC)[reply]
Yes, I originally used &lt;nowiki> in my example under "It should look like:" and intentionally didn't escape the '<' in the part above that to show another MediaWiki bug. The doc looks good. If there's a MediaWiki fix, it shouldn't affect this template unless {{pre2|nw|...}} was used (which it shouldn't be because it doesn't work yet). After the fix, this will work perfectly. Rocket000 (talk) 01:29, 5 July 2008 (UTC)[reply]
This will never work if <ref> is in the content, as it exposes the Help:strip markers:
nw|[1]
[2]
---— Gadget850 (Ed) talk 19:00, 6 February 2012 (UTC)[reply]

includeonly

[edit]

Could a eligible user remove this senseless <includeonly></includeonly>. Thank you. --Plagiat (talk) 19:15, 27 February 2017 (UTC)[reply]

 Plagiat (talk) 11:09, 2 June 2017 (UTC)[reply]

Warning icon For further information see Special:Permalink/783503019. --Plagiat (talk) 19:37, 2 June 2017 (UTC)[reply]

  1. ^ xxx
  2. ^ xxx