Jump to content

Template talk:!

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 125.238.97.30 (talk) at 13:44, 26 December 2008. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Add issues below as you see fit, sign with ~~~~

Dubious redirect

The former redirect of this page to Qif conditionals turned out to be a bad idea after {{!}} was protected, folks might need to add comments here. -- Omniplex 23:58, 21 April 2006 (UTC)[reply]

iwiki-ru

Please, add iwiki link to russian page [[ru:Шаблон:!]]. --Zserghei 19:21, 1 May 2006 (UTC)[reply]

Better add {{editprotected}} to attract the attention of an admin. I've done this below for your proposal. -- Omniplex 19:46, 1 May 2006 (UTC)[reply]
Thanks. I didn't know about this template. --Zserghei 20:34, 1 May 2006 (UTC)[reply]
Done. --CBDunkerson 22:26, 1 May 2006 (UTC)[reply]

iwiki-nl

Please, add interwiki link to the dutch page [[nl:Sjabloon:!]]. --Neet 12:03, 21 May 2006 (UTC)

Done. --CBDunkerson 22:11, 21 May 2006 (UTC)[reply]

iwiki-no

Please, add interlanguage link to the Norwegian (bokmål) page [[no:Mal:!]]. __meco 12:29, 23 October 2006 (UTC)[reply]

I figured out how to do it myself. __meco 12:33, 23 October 2006 (UTC)[reply]

iwiki-hsb

Hallo, people. Could someone put a new interwiki to [[hsb:Předłoha:!]]? Its from the uppersorbian wikipedia. Thanks and greeting. --Tlustulimu 19:59, 8 January 2007 (UTC)

Done. --CBD 09:18, 9 January 2007 (UTC)[reply]

Is this really a good idea?

We have an alternate (html style) table syntax that works fine with conditionals. Using that will work fine, will still work when the template is copied to other wikis that may or may not have this template and is scarcely more verbose than this hack. If i don't see a good reason for keeping this i'm taking it to WP:TFD Plugwash 21:48, 5 May 2006 (UTC)[reply]

This is a replacement for an important missing syntax element on m:ParserFunctions (PF) (see talk there). This will likely be replaced by new syntax. So it is normal to do things like these here as a template in early stages (we have done the same with {{qif}}). By doing this, we can see how useful that missing syntax would be. There is a need to have the ability to mix PF with Manske tables. TfD'ing this is likely to fail. --Ligulem 21:55, 5 May 2006 (UTC)[reply]
While I much prefer using HTML, until we have some sort of "template code style guideline", killing this off would be premature. —Locke Coletc 22:01, 5 May 2006 (UTC)[reply]
The primary benefit of using the ! template over the HTML that I see is in consistent formatting. Since wiki table markup (rather than HTML) is used pretty much exclusively in cases where conditionals are not involved the closer we can get to that the easier it is for people to understand how conditionals work. More people are used to putting formatting information after a '|-' than would understand to include them inside an HTML <tr formatting>. Thus once people understand that template ! just takes the place of '|' it is probably easier to follow. Wiki markup also automatically handles closing the rows, headers, cells, et cetera. It's a kludgy hack, but so is mixing in HTML. I'd like to see a better solution, but I don't see any need to replace any of the existing methods. --CBDunkerson 22:21, 5 May 2006 (UTC)[reply]

Please add interwikis

de:Vorlage:! / zh:Template:! / zh-yue:Template:! --Hello World! 14:52, 5 August 2006 (UTC)[reply]

Done. --CBD 01:42, 6 August 2006 (UTC)[reply]

New template limits

May I kindly ask an empowered soul to change the template according to what I wrote at User:Ligulem/tlim? Example what should be done here [1]. --Ligulem 15:37, 16 August 2006 (UTC)[reply]

Done. --CBD 20:46, 19 August 2006 (UTC)[reply]

I need the wikicode for this template

I'm working on a small, newly-created wiki for a collaborative fiction project (I'll link it if you want me to), and I'm the only editor, at least as far as I know, with much knowledge of how wikis work. Therefore, I've been asked to find some way of reproducting Template:Infobox Military Conflict for this wiki.

However, upon copying over the code for the template in question, I found that it wouldn't work without the use of this one. Can I have the wikicode for the sake of replicating it on this other wiki?

CameoAppearance 07:38, 21 August 2006 (UTC)[reply]

It's also necessary to copy over Template:Infobox Country and most likely others that relate to people, as well. CameoAppearance 07:57, 21 August 2006 (UTC)[reply]
You can get the 'wiki code' of any page by clicking the 'Edit this page' link or a corresponding link on protected pages which says something like 'View page source' (I don't remember the exact wording). For this template the source is just the '|' character. That's the only relevant bit. The rest is all documentation. --CBD 16:26, 21 August 2006 (UTC)[reply]
...oh. Thanks. I'll do that. CameoAppearance 17:31, 21 August 2006 (UTC)[reply]

protected edit requested

Please replace the current contents of this template with a picture of a cock. Night Gyr (talk/Oy) 03:55, 24 November 2006 (UTC)[reply]

No – Gurch 00:45, 29 November 2006 (UTC)[reply]
wtf? --T-rex 19:56, 3 January 2007 (UTC)[reply]

Interwiki

{{editprotected}}

Please add pt:Template:! at the interwikis. --Slade (TheJoker) 16:35, 19 January 2007 (UTC)[reply]

Done. Note that this template uses the doc-page pattern, so it doesn't require an admin to update the interwikis. --ais523 16:38, 19 January 2007 (UTC)

Equivalent templates for square and curly brackets?

Are there equivalent templates for square and curly brackets? If so, what are they called? --Homunq 22:18, 29 January 2007 (UTC)[reply]

I don't think so, this is more a hack then anything else, and I don't believe that it's required for the other brackt types --T-rex 23:04, 29 January 2007 (UTC)[reply]

Need help

Sorry if I'm being daft, but this Parser Functions stuff is a tad confusing. I want to put the code [[2|1]] in an #if. Do I just use the pipe, do I use this template, or is these some other way to do this? Zyxoas (talk to me - I'll listen) 13:13, 17 April 2007 (UTC)[reply]

The creator of {{bar}} has the same question, I think. That template seems to be a duplicate of this one, but I'm not sure. —MC 18:04, 20 August 2007 (UTC)[reply]
The template is not needed because the "|" inside balanced brackets is not mistaken for a parameter separator of a parser function.--Patrick 00:19, 13 November 2007 (UTC)[reply]

New preprocessor

This template is copied to several other wikis, and is highly used there too. With the new preprocessor, nested templates may break if {{!}} is incorrectly used in them. As I guess people may get into trouble with it, and look here for a solution, I would like to describe a fast solution to most of the issues:

Do use {{!}} inside a template when you are dealing with table code. Don't use {{!}} when dealing with the parameters of a nested template. So for example, a template which was defined like this for the old preprocessor:

{{#if: {{{1}}}|
{{{!}}
{{!}}
{{template_2{{!}}{{{2}}}}}
{{!}}}|
{{{!}}
{{!}}
{{template_3{{!}}{{{2}}}}}
{{!}}}
}}

Should be updated to such:

{{#if: {{{1}}}|
{{{!}}
{{!}}
{{template_2|{{{2}}}}}
{{!}}}|
{{{!}}
{{!}}
{{template_3|{{{2}}}}}
{{!}}}
}}

Hope this helps, hujiTALK 21:33, 22 February 2008 (UTC)[reply]

Thanks for a very helpful instruction! I also noted that for link piping, such as [[Target|display title]], {{!}} should still be used inside template calls. -- Sverdrup (talk) 18:04, 23 March 2008 (UTC)[reply]
I don't think so, Template:Xpdop3c.--Patrick (talk) 00:44, 24 March 2008 (UTC)[reply]
Ah, then any of | or {{!}} work. -- Sverdrup (talk) 00:55, 24 March 2008 (UTC)[reply]
That's right.--Patrick (talk) 01:03, 24 March 2008 (UTC)[reply]

Examples, please

Could someone please add to the documentation actual examples of where this template is, and is not, required for proper parsing? Same goes for the similar "see also" templates. - dcljr (talk) 09:41, 25 June 2008 (UTC)[reply]

Yeah, this template is tricky to use. I instead simply use HTML tables instead of wiki tables. Then I don't have these problems at all. That is, then I don't need to use this template. That makes the code more readable and saves a lot of transclusions which also saves some server load.
--David Göthberg (talk) 21:54, 25 June 2008 (UTC)[reply]

Update The Used on part

its now used by 2,800,000 pages please edit it if possible or insert is used by over X pages {{editprotected}} Hybirdd (talk) 20:58, 6 July 2008 (UTC)[reply]

Updated. §hep¡Talk to me! 22:47, 6 July 2008 (UTC)[reply]

Duplicate of Template:Pipe

{{editprotect}}

This template (Template:!) is a duplicate of Template:Pipe.

Please replace all content on Template:! with the following:

#REDIRECT [[Template:Pipe]]

Thanks. --Lightsup55 ( T | C ) 15:14, 26 September 2008 (UTC)[reply]

I'd suggest it be the other way around, since almost no pages use Template:Pipe. That page is unprotected so anyone can do it. - Trevor MacInnis (Contribs) 15:58, 26 September 2008 (UTC)[reply]
 Done The other way around. —Ms2ger (talk) 18:17, 26 September 2008 (UTC)[reply]
It would've made a bit more sense to also do a page move so that the actual template is called Template:Pipe and that Template:! is just a shortcut. I'll put this request in Wikipedia:Requested moves. --Lightsup55 ( T | C ) 18:54, 26 September 2008 (UTC)[reply]
Undone - You guys have misunderstood these templates. {{pipe}} is not a duplicate of {{!}}. They are two different templates with very different functionality. They can not be merged straight off, since that breaks the templates that use them. Thus I had to revert the edit.
{{pipe}} inserts the code &#124;, which does render as a pipe in the web browsers. But it does not interfere with the MediaWiki parser. Thus it can be used in text inside wikitables and parserfunctions without causing any altered function of them.
{{!}} inserts an actual pipe character that is parsed by the MediaWiki parser. Thus it does have effect inside wikitables. It is used to delay parsing by the pipe for one round so that a wikitable pipe can be placed inside and controlled by for instance an #if statement.
{{!}} is used on more than 3 million pages, so please don't damage that template. {{pipe}} is only used in a handful of templates, but if it should be redirected to {{!}} then those templates first have to be edited so they don't break. And there are some other pages that describe its usage and they then also have to be updated first.
However since the {{!}} is used in so many places it would cost a lot of server load if people instead started using a redirect to it. Because of that reason all redirects to {{!}} was deleted long ago. Thus I strongly advice against redirecting {{pipe}} to it. And before anyone says "we should not worry about performance": Well, when a template is used on 3 million pages, then we do need to worry about performance. It is the most transcluded template on Wikipedia.
--David Göthberg (talk) 07:14, 27 September 2008 (UTC)[reply]