Template:TalkPageIntro: Difference between revisions

From electowiki
Content added Content deleted
(Fixed up the template a little bit)
(Fixed up the pagename parameter. TODO - make it work for pages outside the main namespace)
Line 1: Line 1:
<includeonly>This is the talk page for {{{page|}}}. Please visit [[Help:Talk]] to learn more about talk pages.
<includeonly>This is the talk page for {{{page|{{PAGENAME}}}}}. Please visit [[Help:Talk]] to learn more about talk pages.
</includeonly>
</includeonly>
<noinclude>This is an introductory section for a talk page. Go to [[Help:Talk]] to learn more about talk pages.
<noinclude>'''Template:TalkPageIntro''' is a template to insert at the top of a talk page.

This is an introductory section for a talk page. [[User:RobLa]] puts this on the top of some talk pages when he sees that folks don't understand how [[MediaWiki]] talk pages work. Visit [[mw:Help:Talk pages]] to see the official documentation for MediaWiki talk pages, or see [[Help:Talk pages]] to learn more about how they work here.



== Examples ==
== Examples ==
=== Example 1 ===
=== Example 1 ===
:<code><nowiki>{{TalkPageIntro|page=Example}}</nowiki></code>
:<code><nowiki>{{TalkPageIntro}}</nowiki></code>
=== Result 1 ===
=== Result 1 ===
:<big><b>Talk:(''whatever page you put it on'')</b></big>
:{{TalkPageIntro}}

=== Example 2 ===
:<code><nowiki>{{TalkPageIntro|page=Example}}</nowiki></code>
=== Result 2 ===
:<big><b>Talk:Example</b></big>
:<big><b>Talk:Example</b></big>
:{{TalkPageIntro|page=Example}}
:{{TalkPageIntro|page=Example}}
Line 14: Line 23:
{
{
"params": {},
"params": {},
"description": "This is an introductory section for a talk page. See [[Help:Talk]] to learn more about talk pages."
"description": "This is an introductory section for a talk page. See [[Help:Talk pages]] to learn more about talk pages."
}
}
</templatedata>
</templatedata>

Revision as of 01:28, 11 June 2020

Template:TalkPageIntro is a template to insert at the top of a talk page.

This is an introductory section for a talk page. User:RobLa puts this on the top of some talk pages when he sees that folks don't understand how MediaWiki talk pages work. Visit mw:Help:Talk pages to see the official documentation for MediaWiki talk pages, or see Help:Talk pages to learn more about how they work here.


Examples

Example 1

{{TalkPageIntro}}

Result 1

Talk:(whatever page you put it on)
This is the talk page for TalkPageIntro. Please visit Help:Talk to learn more about talk pages.


Example 2

{{TalkPageIntro|page=Example}}

Result 2

Talk:Example
This is the talk page for Example. Please visit Help:Talk to learn more about talk pages.


Parameters

This is an introductory section for a talk page. See [[Help:Talk pages]] to learn more about talk pages.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
No parameters specified