Help talk:Magic words

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Wikipedia Help Project (Rated NA-class, Low-importance)
WikiProject icon This page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
 NA  This page does not require a rating on the project's quality scale.
 Low  This page has been rated as Low-importance on the project's importance scale.
 

Magic words for episode number[edit]

Is anyone able to create a template or magic word template for season and episode numbers modelled on the time and date variables like {{CURRENTYEAR}}, {{CURRENTMONTHNAME}}, {{CURRENTDAYNAME}} and {{CURRENTDATE}}? -- PK2 (talk) 14:34, 26 September 2015 (UTC)

@PK2: No. CURRENTYEAR etc. are real values that have an actual meaning, such as 2017. Season and episode numbers are abstracts, they have no true meaning. --Redrose64 (talk) 20:01, 26 September 2015 (UTC)
Ok, because those magic templates would decrease the total number of edits that people would make on Wikipedia. So what can I and other users do instead? -- PK2 (talk) 05:37, 27 September 2015 (UTC)
I don't understand why "those magic templates would decrease the total number of edits that people would make". I also don't understand what you are asking for. To introduce a new magic word, we first need to establish what it would do, where it would be used, and above all, why it is necessary. --Redrose64 (talk) 14:41, 27 September 2015 (UTC)

Unknown extension tag "noinclude"[edit]

Hello !

I wanted to find a way to insert a noinclude tag inside page using a template.

So, I tried the "tag" magic word, but it didn't work.

e.g. I wanted to do something like : Template:Documentation_Template : {{#tag:noinclude|WRITE YOUR DOCUMENTATION HERE}}

So users creating a template could just use {{Documentation_Template}} and it would be interpreted as :

<noinclude>WRITE YOUR DOCUMENTATION HERE</noinclude>

Is there a way to do that ?

Thanks ! Taiko3615 (talk) 01:51, 23 January 2016 (UTC)

Silly me. I found what I was looking for. It's called Meta Templating : Help:Metatemplating Hope this helps others. Taiko3615 (talk) 02:07, 23 January 2016 (UTC)

Current user?[edit]

Is there a magic word that will show the name of the logged-in user viewing the page? That is, if I view the page, I see Oiyarbepsy, but if Example views the page, they see Example, but if 1.2.3.4 sees the page they see 1.2.3.4? This would be very useful in template examples that require entering your username. Oiyarbepsy (talk) 06:39, 11 February 2016 (UTC)

@Oiyarbepsy: No, there isn't. I think this is a deliberate choice, because the software would have to re-think the HTML version of the page whenever anyone viewed it. -- John of Reading (talk) 07:06, 11 February 2016 (UTC)
Just so, Help talk:Magic words/Archive 1#Magic word for current user name. --Redrose64 (talk) 17:40, 11 February 2016 (UTC)

STATICREDIRECT[edit]

STATICREDIRECT was added by this 3 October 2012 edit. I am wondering whether that magic word is active on this Wiki. The documentation says:

"Prevents the link on a redirection page from being updated automatically when the page to which it redirects is moved (and "Update any redirects that point to the original title" is selected). Also instructs interwiki bots to treat the page as if an article."

I don't recall ever seeing a checkbox for "Update any redirects that point to the original title" in the move-page dialog.

mw:Help:Magic words says:
"On redirect pages, don't allow MediaWiki to automatically update the link when someone moves a page and checks "Update any redirects that point to the original title" (which requires $wgFixDoubleRedirects)."

$wgFixDoubleRedirects says:
"Tends to conflict with page move vandalism, use only on a private wiki."

So does __STATICREDIRECT__ actually serve any purpose on English WIkipedia? wbm1058 (talk) 00:18, 27 April 2016 (UTC)


Wikipedia:Wikipedia Signpost/2008-07-28/Technology report:

New features 28 July, 2008
  • Double redirects (redirects which redirect to another redirect) created by new pagemoves are now fixed automatically by the software; edits made by such fixing are attributed to User:Redirect fixer, which operates much like a bot (although as a software feature, it only has bot abilities when operated by the MediaWiki software and no special powers when operated by anyone else), in that it works by making edits and does not operate instantly (but rather when it gets round to fixing the redirect). See this message for more details. (Note that the feature has changed slightly since that message; in order to prevent a double redirect being fixed, you now need to place __STATICREDIRECT__ on the double redirect page). (r37928, bug 4578)
  • Red x.svg Redirect fixer was disabled in rev:41716, 6 October 2008

Wikipedia:VisualEditor/Updates/20 March 2014

Newsletter 20 March, 2014
  • The page options menu (three bars, next to the Cancel button) has expanded. You can create and edit redirect pages, set page options like __STATICREDIRECT__, __[NO]INDEX__ and __[NO]NEWEDITSECTION__, and more.

Wonderful. VisualEditors can now spam (vandalize?) English Wikipedia with STATICREDIRECT graffitti. They had to add this feature, in case VE were ever used to edit a private wiki. They have no respect for our local setting of $wgFixDoubleRedirects, which leaves this feature turned off. Groan.

See Wikipedia:Double redirects for bots which fix double redirects. wbm1058 (talk) 20:21, 3 May 2016 (UTC)

Using AutoWikiBrowser, I made a list of Pages with a page property (based on Special:PagesWithProp) staticredirect, and found just 164 pages on English Wikipedia with this property:

  • 116 in main (article) space
  • 34 in User: namespace
  • 14 in Wikipedia: namespace

I don't really see any pattern in this very light amount of usage here, so it appears to me that there is no special use or purpose for __STATICREDIRECT__ on English Wikipedia. – wbm1058 (talk) 15:05, 5 May 2016 (UTC)

NUMBEROFVIEWS[edit]

The magic word "NUMBEROFVIEWS" (called here: Template:NUMBEROFVIEWS) is listed on this page, but it does not appear to work. It shows up on Special:WantedTemplates and does not seem to work in any of the pages that call it. What am I missing? – Jonesey95 (talk) 17:56, 5 October 2016 (UTC)

Further research: it was reportedly based on the value of page.page_counter, which has been disabled. – Jonesey95 (talk) 17:59, 5 October 2016 (UTC)

{{LOCALMONTH}}[edit]

{{LOCALMONTH}}, and the other Template:LOCAL... magic words seem to give GMT based time/date instead of local time/date. I am not sure if local should really be local, or that of the specific server, but it seems that the server I use is in my time zone. Gah4 (talk) 10:17, 9 November 2016 (UTC)

It's not GMT-based, but UTC based. Local in this context means the local time as defined for the entire wiki; for the English Wikipedia, local time is set to UTC. --Redrose64 (talk) 11:40, 9 November 2016 (UTC)