Help talk:Magic words/Archives/2007

Latest comment: 16 years ago by Spiritia in topic New magic word idea

New magic word idea

What about an image name and image extension magic word? For example, if {{IMAGENAME}} should be placed at apge named "Image:Example.jpg", it would generate "Example". Or {{IMAGEEXTENSION}} be placed at Image:Example.jpg it would generate "jpg"? Smiddle 16:18, 30 January 2007 (UTC)

Good question, I wanted to ask the same, but more general: It's a good and useful idea to have magic words for {{FILENAME}}, {{FILEEXTENSION}} and {{FILESIZE}} (analogous to {{PAGESIZE}} ). Spiritia 06:59, 6 November 2008 (UTC)

my last edit

I want to indicate on my userpage, when my last edit was made (by me), such that everybody sees quickly that I am still active. Is this possible? How? It's something close to {{REVISIONTIMESTAMP}}, but for all my edits, not just my userpage. It's the youngest timestamp in Special:Contributions. Thanks for help, de:Benutzer:Thire, aka --128.131.219.28 10:07, 3 February 2007 (UTC)

Defaultsort question/problem

Is there a reason that the talk pages don't follow the article's DEFAULTORT? For example, on the EN Wiki the article "A Chinese Ghost Story II" sorts correctly as "Chinese Ghost Story II, A", but the talk page sorts as "A Chinese Ghost Story II". Is there a way to make the talk page sort the same as the article page without putting a defaultsort tag on all of the talk pages? SkierRMH 07:39, 6 March 2007 (UTC)

There's no way around this, at least in the current architecture. In the database, there is no special relationship between the talk page and the article page; they're two separate entries. So fixing this problem would require pretty fundamental changes to either the wiki engine or the database structure. It is a problem; I've often wished that interwiki links were also accessible from Talk pages. -- Visviva 13:09, 20 June 2007 (UTC)

Another problem, possibly related: DEFAULTSORT doesn't seem to work on the article's Talk page, or perhaps doesn't interact with categories included by templates. The specifice example is here (and the previous edit), which did not change the sort order in the quality categories for the various projects. -- J Clear on en.wikipedia

Revenge of the magic words... I think if you look at the code in the relevant templates, you'll see that the category sortkey is set to {{PAGENAME}}, so that tagged pages will sort by the actual name of the article rather than "Talk:...". An explicit sortkey, even if it's just PAGENAME, always overrides DEFAULTSORT. -- Visviva 13:09, 20 June 2007 (UTC)

Translate the namespace user

Hi, I'm developing a template that works in more than one wikipedia (en, de, it, ...). I need a function that translate the namespace user, like {{ns:User}}, something like this: {{ns:en:User}}=User, {{ns:it:User}}=Utente... --Wiso 09:38, 16 March 2007 (UTC)

For linking you can always use "User:". Oddly the namespace names do not seem available, except perhaps indirectly through a system message, e.g. {{MediaWiki:Specialloguserlabel/it}} and {{MediaWiki:Imagelist user/it}} give Azione effettuata da: and MediaWiki:Imagelist user/it.--Patrick 14:46, 16 March 2007 (UTC)

one-line TOC?

Wasn't there a magic word for the alphabetical TOC? -- w:User:Jokes_Free4Me

Only templates, I think, see w:Wikipedia:Template_messages/Compact_table_of_contentshttp://en.wikipedia.org/wiki/Wikipedia:Template_messages/Compact_table_of_contents.--Patrick 09:27, 21 April 2007 (UTC)

Use of magic words in system messages

How would I alter the use of these magic words like {{FULLPAGENAME}} or {{REVISIONTIMESTAMP}} for use in the MediaWiki:sitenotice and others? When I use {{FULLPAGENAME}}, it prints the FULLPAGENAME of the message instead of the name of the page being viewed. Zachary talk 06:21, 21 April 2007 (UTC)

Translation?

How do you translate magic words, such as "#redirect" and "{{NAMESPACE}}", for a localized wiki? I'm on 1.6.10 due to PHP4 limitations. --89.0.111.219 23:42, 17 May 2007 (UTC)

Search bar text

Is there or could there be a magic word about the text in the searchbox? 198.86.93.254 17:00, 5 June 2007 (UTC)

CreatedDate of Article

Is there any possibility to get access to the creation date of an article? thx. Ichbinweg 11:45, 5 July 2007 (UTC)

onlyinclude example

I've noted that in the description of the <onlyinclude> tag, the example uses includeonly rather than onlyinclude. I haven't updated it just in case there's something subtle I've missed. I'm relatively new to wikitext. --Vjg 18:54, 16 August 2007 (UTC)

I fixed it.--Patrick (talk) 00:26, 17 August 2007 (UTC)

Possible Magic words

Shouldn't {{ns:}} and {{fullurl:}} be listed as Magic words? Could someone add a description on how exactly they work. --Steinninn 18:17, 17 August 2007 (UTC)

They are there.--Patrick (talk) 00:32, 18 August 2007 (UTC)
Crazy me, lazy me. Thanks Patrick. --Steinninn 13:00, 18 August 2007 (UTC)

Magic word for Redirected pages

I can't find a special magic word, well I don't even know if it exists. The issue is this: when redirecting a page, two different titles appear: on the article tab and title, the target redirect; and on the browser's address bar, the original redirect page. All magic words I tried only get the name of the target article, but I couldn't find any which gives me the name of the original redirect. Maybe this is a bit confusing, I'll put an example: if you click Help:Redirection it will bring you to Help:Redirect, but a small notice will appear there (Redirected from Help:Redirection) and in the address bar the URL shows ...wiki/Help:Redirection. How do I get Help:Redirection with a magic word? Is there any? Or with any other method? I need your help, thanks in advance. - Keta 10:31, 22 August 2007 (UTC)

I don't think it is possible.--Patrick (talk) 11:52, 22 August 2007 (UTC)

Magic word to allow Notepad files

I would like to see a magic word, such as __TXT__ which will allow users to cut and paste text from notepad (or simply type it into the edit window) and get line breaks on a single newline. We are building a knowledge base at work and many new users are turned off because text that is readable in notepad is all strung into one paragraph on the wiki. I constantly have to remind them that they have to insert an extra newline when they want to start a newline at the left margin. This could be applied to sections if __TXTEND__ is also supported. Wmjohn6217 04:36, 6 September 2007 (UTC)

Try using the <pre> and </pre> tags. Thunderhead 06:28, 6 September 2007 (UTC)
A solution that allows word wrap is the Poem extension. For example:

Line 1: Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim.
Line 2: Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim.

Line 3 (With blank line): Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui.

{admin} Pathoschild 13:57:16, 06 September 2007 (UTC)
Is that extension implemented here or on the other wikis I contribute to (see my user page)? Thanks!   — Jeff G. en (talk|contribs) 00:47, 21 September 2007 (UTC)

Disabling Category listing

Is there any Magic Word or some other way that would disable category listing for a page (similar to __NOTOC__)? It would be useful in sandboxes or testcase pages, specifically where categories are transcluded by templates (but wouldn't be needed). Thanks. --Qyd 14:47, 17 November 2007 (UTC)

Wrap [[Category:XXX] text templates into <noinclude>..</noinclude> tags, and the pages that include those templates will not be put in that categories you want your templates to be. --195.214.232.10 13:41, 8 April 2008 (UTC)

i can't see the help page.

i can't see the help page. it seems like empty, but syntax is full.

Return to "Magic words/Archives/2007" page.