Template:Talkback and Template:Talkback/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
m Protected "Template:Talkback": protection doesn't seem to be sticking... ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
test update from enwiki |
||
Line 1: | Line 1: | ||
<!-- |
|||
// Check for {{{1}}} parameter |
// Check for {{{1}}} parameter |
||
-- |
-->{{{{{|safesubst:}}}#if:{{{1|<noinclude>Example</noinclude>}}}|<!--then: |
||
// Div, styling |
// Div, styling |
||
-- |
-->{{umbox |
||
| image = Nuvola apps edu languages.svg |
| image = Nuvola apps edu languages.svg |
||
| imagelink = |
| imagelink = <!-- |
||
// Prefix the given page with User talk:, if no namespace given |
// Prefix the given page with User talk:, if no namespace given |
||
--> |
--> {{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{{{{|safesubst:}}}ns:0}}|{{{{{|safesubst:}}}ns:3}}:}} |
||
{{{1<noinclude>|Example</noinclude>}}}<!-- |
|||
// Section link |
// Section link |
||
--> |
--> {{{{{|safesubst:}}}#if:{{{2|}}}|#{{{2}}}}}|You have new messages |
||
| text = '''Hello, {{{{{|safesubst:}}}#titleparts:{{{{{|safesubst:}}}PAGENAME}}|1}}. You have new messages at |
| text = '''Hello, {{{{{|safesubst:}}}#titleparts:{{{{{|safesubst:}}}PAGENAME}}|1}}. You have new messages at <!-- |
||
// Prefix the given page with User talk:, if it has no namespace given |
// Prefix the given page with User talk:, if it has no namespace given |
||
--> |
--> [[{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{{{{|safesubst:}}}ns:0}}|{{{{{|safesubst:}}}ns:3}}:}}<!-- |
||
// Page link |
// Page link |
||
--> |
--> {{{1<noinclude>|Example</noinclude>}}}<!-- |
||
// Section link |
// Section link |
||
--> |
--> {{{{{|safesubst:}}}#if:{{{2|}}}|#{{{2}}}}}<!-- |
||
// Link text |
// Link text |
||
--> |
--> |{{#if:<!-- |
||
// Evaluates to "NOT USERSPACE" if namespace is neither 0 nor 3 |
// Evaluates to "NOT USERSPACE" if namespace is neither 0 nor 3 |
||
--> |
--> {{#switch:{{{{{|safesubst:}}}NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}<!-- |
||
--> |
--> |{{{{{|safesubst:}}}ns:0}}|{{{{{|safesubst:}}}ns:3}}=<!--silent--><!-- |
||
--> |
--> |NOT USERSPACE}}<!-- |
||
// Evaluates to "IS SUBPAGE" if the page is a subpage |
// Evaluates to "IS SUBPAGE" if the page is a subpage |
||
--> |
--> {{#ifeq:{{{{{|safesubst:}}}#titleparts:{{{1<noinclude>|Example</noinclude>}}}|1|2}}|<!-- |
||
--><!--empty-- |
--><!--empty-->|<!--silent-->|IS SUBPAGE}}<!-- |
||
// Display full page title if either NOT USERSPACE or IS SUBPAGE is true |
// Display full page title if either NOT USERSPACE or IS SUBPAGE is true |
||
--> |
--> |{{{{{|safesubst:}}}#ifeq:{{{{{|safesubst:}}}NAMESPACE:{{{1<noinclude>|Example</noinclude>}}}}}|{{{{{|safesubst:}}}ns:0}}|{{{{{|safesubst:}}}ns:3}}:}}<!-- |
||
--> |
--> {{{1<noinclude>|Example</noinclude>}}}<!-- |
||
// Display the PAGENAME of {{{1}}} (i.e. the user name) otherwise |
// Display the PAGENAME of {{{1}}} (i.e. the user name) otherwise |
||
--> |
--> |{{{{{|safesubst:}}}PAGENAME:{{{1<noinclude>|Example</noinclude>}}}}}'s talk page}}]].'''<br /><!-- |
||
// Timestamp, notice |
// Timestamp, notice |
||
-- |
--><span class="plainlinks" style="font-size: 88%; font-weight: normal;">{{{{{|safesubst:}}}#if:{{{ts|}}}|Message added {{{ts}}}.}} You can [{{fullurl:{{FULLPAGENAME}}|action=edit}} remove this notice] at any time{{}}{{}} |
||
-->}}<!-- |
|||
|| by removing the <nowiki>{{Talkback}} or {{Tb}}</nowiki> template}}.</span><noinclude><!-- |
|||
--></noinclude>}}<noinclude><!-- |
|||
// Display an error message if no parameter given |
// Display an error message if no parameter given |
||
-- |
-->|<!--else: |
||
-- |
--><span class="error">ERROR: Please enter the ''username'' parameter when using the {{|Talkback}} template.</span>}}<noinclude>{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUB-PAGE, THANKS --></noinclude> |