Jump to content

Template:Whisperback: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
CimanyD (talk | contribs)
try again — reduce more
convert to wrapper
Tag: Replaced
 
(26 intermediate revisions by 11 users not shown)
Line 1: Line 1:
{{talkback|1={{{1|<noinclude>Example</noinclude>}}}|2={{{2|}}}|nohello={{{nohello|}}}|greet={{{greet|}}}|things={{{things|}}}|linkname={{{linkname|}}}|pl={{{pl|}}}|about={{{about|}}}|ts={{{ts|}}}|short=yes}}<noinclude>
<!--


// Check for {{{1}}} parameter

-->{{#if:{{{1|<noinclude>Example</noinclude>}}}|<!--then:

// Image

--><div style="margin:0; padding-top:3px;">[[File:Nuvola apps edu languages.svg|left|15px|link=<!--
// Prefix the given page with "User talk:" if no namespace given
--> {{#ifeq:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{ns:0}}|{{ns:3}}:}}<!--
--> {{{1<noinclude>|Example</noinclude>}}}<!--
// Section link
--> {{#if:{{{2|}}}|&#35;{{{2}}}}}|You have new messages]]<!--

// Text

-->Hello, {{#if:{{{greet|}}}|{{{greet}}}|{{BASEPAGENAME}}}}. <span style="font-weight:bold">You have {{#if:{{{things|}}}|{{{things}}}|new messages}}</span> at <!--
// Prefix the given page with "User talk:" if no namespace given
--> [[{{#ifeq:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{ns:0}}|{{ns:3}}:}}<!--
// Page link
--> {{{1<noinclude>|Example</noinclude>}}}<!--
// Section link
--> {{#if:{{{2|}}}|&#35;{{{2}}}}}<!--
// Link text
--> |{{#if:{{{linkname|}}}|{{{linkname}}}|{{#if:<!--
// Evaluates to "NOT USERSPACE" if namespace is neither 0 nor 3
--> {{#switch:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}<!--
--> |{{ns:0}}|{{ns:3}}=<!--silent--><!--
--> |NOT USERSPACE}}<!--
// Evaluates to "IS SUBPAGE" if the page is a subpage
--> {{#ifeq:{{#titleparts:{{{1<noinclude>|Example</noinclude>}}}|1|2}}|<!--
--> <!--empty-->|<!--silent-->|IS SUBPAGE}}<!--
// Display full page title if either NOT USERSPACE or IS SUBPAGE is true
--> |{{#ifeq:{{NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{ns:0}}|{{ns:3}}:}}<!--
--> {{{1<noinclude>|Example</noinclude>}}}<!--
// Display the PAGENAME of {{{1}}} (i.e. the user name) otherwise
--> |{{PAGENAME:{{{1<noinclude>|Example</noinclude>}}}}}'s talk page}}}}]].{{
#if:{{{ts|}}}|<span style="font-size: 88%;">&nbsp;Message added {{{ts}}}.</span>
}}</div><!--

// Display an error message if no parameter given

-->|<!--else:
--><span class="error">ERROR: Please enter your username as a parameter when using the {{tl|Whisperback}} template.</span>}}{{Z21}}<!-- Template:Whisperback--><noinclude>
{{documentation}}
{{documentation}}
<!--Categories and interwikis go on the /doc subpage. -->
<!--Categories and interwikis go on the /doc subpage. -->

Latest revision as of 02:22, 26 November 2020

You have new message/s Hello. You have a new message at Example's talk page.