Difference between revisions of "Template:Editnotice talkpagename/doc"

From blackwiki
Jump to navigation Jump to search
imported>Amalthea
m (Categorize at the top)
imported>Amalthea
m (update)
Line 30: Line 30:
  
 
:[[{{editnotice talkpagename}}]]
 
:[[{{editnotice talkpagename}}]]
 
=== Technical details ===
 
For editnotices in MediaWiki space, this template also converts slashes "<code>/</code>" in subpage names to hyphens "<code>-</code>", like for instance "<code>Template:Editnotice talkpagename/sandbox/doc</code>" is converted to "<code>MediaWiki talk:Editnotice-10-Editnotice talkpagename-sandbox-doc</code>". Currently this template can handle up to two slashes (two subpage levels). If needed we can easily add more levels.
 
  
 
=== See also ===
 
=== See also ===

Revision as of 20:53, 24 May 2009

This is the {{editnotice talkpagename}} meta-template.

It returns the full pagename for the talkpage of the editnotice for the current page.

Note that this template doesn't produce the editnotice pagename for talk pages, instead it produces the talkpage name of the editnotice.

If you need the editnotice pagename itself, then use {{editnotice pagename}} instead.

Note that the main editnotices for a user page and a user talk page do not have a talk page, so it will not work there.

Usage

This template takes no parameters and automatically outputs a proper formatted editnotice talkpage address. Like this:

{{editnotice talkpagename}}

Which outputs the talkpage name of the editnotice for this page itself:

Template talk:Editnotices/Page/Template:Editnotice talkpagename/doc

This can for instance be used to produce a link to the talkpage of the editnotice for the current page. Like this:

[[{{editnotice talkpagename}}]]
Template talk:Editnotices/Page/Template:Editnotice talkpagename/doc

See also