Template talk:Wrongtitle

From Valve Developer Community
Jump to: navigation, search

How about making this look less attention-grabbing? It makes it look like there's a major issue that needs to be corrected.--Mungo 13:15, 12 Jul 2005 (PDT)

  • JeffLane said the same thing, and I agree. I changed it so the background is white and there's no border, so it still stands out (plain text looks bad for a message like that) with it's margin. --AndrewNeo 13:35, 12 Jul 2005 (PDT)

Usage:

{{wrongtitle|title=Correct Title}}

Subst?

Should this be subst'd on pages? It does nothing more than what {{DISPLAYTITLE:TEXT}} does, and the template title is also misleading. If a page has a wrong title, a user should move it rather than use this. If the page title that should be used is wrong (i.e. first letter is uppercase, no underscores when there should be), then DISPLAYTITLE should be used. (i.e. I prefer inserting {{DISPLAYTITLE:{{subst:lcfirst:{{subst:FULLPAGENAMEE}}}}}} because that would do the exact same thing, and it is easy to copy-paste between pages if more than one needs that.

The option that allows page titles to be totally different than what they should be (i.e. whether it allows {{DISPLAYTITLE:asdf}} to work or not, which it does at the time of me posting this) should be disabled, as the page title for, say, trigger_joinhumanteam, can be made to show trigger_joinhumanteam with it disabled. Per the info shown on mediawiki.org:

Format the current page's title header. The value must be equivalent to the default title: only capitalization changes and replacing spaces with underscores are allowed (this can be changed with $wgRestrictDisplayTitle). It can be disabled or enabled by $wgAllowDisplayTitle; disabled by default before 1.10+, enabled by default thereafter.

This is basically saying that $wgRestrictDisplayTitle will only allow capitalization changes and replacing spaces with underscores if it is set to true, while setting it to false (which is what you currently have) will allow any title. (DISPLAYTITLE also allows for html code that would normally be accepted as usable HTML in MediaWiki, such as <span class="plainlinks"></span> for links without that extlink symbol or <div style="display:none"></div> for text that will not be seen, except when viewing the page source or editing the page. (this allows for namespaces to be hidden))

Sorry for the wall of text post, but I just had to do so after finding out that that was the case. [Pro-X]LikeLakers2 (talk | My Wikipedia userpage (talk)) 11:27, 5 November 2011 (PDT)

I'm currently rewriting Help:Editing and I planned on excluding this template because it's made obsolete by {{DISPLAYTITLE}}. I don't even understand why it was brought into existence to be honest. I would have marked it for deletion, but many pages still use this obsolete template. Perhaps if I have time in the future I could manually replace them. —Mattshu 11:35, 5 November 2011 (PDT)
Is there any way of getting whoever set up this wiki to know about this? Or are you the wiki-owner, Mattshu? [Pro-X]LikeLakers2 (talk | My Wikipedia userpage (talk)) 11:41, 5 November 2011 (PDT)
No, I'm just a tedious contributor. JeffLane is an active administrator that seems to check in at least once daily with the wiki. You'll have to talk to him about the Wiki source. —Mattshu 22:44, 5 November 2011 (PDT)