Open main menu

Changes

Template:Talk header

3,630 bytes added, 03:21, 24 November 2019
adding custom_header parameter, I find it amusing that I unwittingly chose a parameter name for which there were already test cases with various inputs on Template:Talk header/testcases. The way I'm implementing it is completely different than the way it was originally used though. In any event, the point of this parameter is to specify multiple pages in the header on a centralized talk page for those pages.
{{#ifeq:{{{bottom}}}|yes
| {{ tmbox
| small = {{{small|}}}
| image = none
| style = text-align: center
| text = '''Please place new discussions at the bottom of the talk page.'''
}}
}}{{#ifeq:{{{disclaimer|}}}|yes|{{#ifeq:{{NAMESPACENUMBER}}|3|{{usertalkpage}}}}}}
<table role="presentation" {{#ifexpr:{{#ifeq:{{NAMESPACE}}|User talk|1|0}}*{{#ifeq:{{{disclaimer|}}}|yes|1|0}}
|style="border: 1px solid #c0c090; border-spacing:3px; background-color: #F8EABA; margin-bottom: 0px; width: 100%; text-align: center;"
|class="tmbox tmbox-notice plainlinks" id="talkheader" style="border-collapse: separate; text-align: center;"
}} ><tr>
<td colspan=4 style="border-bottom: 1px solid #c0c090; font-weight: bold;">{{#if:{{{custom_header|}}}|{{{custom_header}}}|{{#ifeq:{{NAMESPACE}}|User talk|This is [[{{SUBJECTPAGENAME}}|{{PAGENAME}}]]'s [[Wikipedia:Talk page guidelines|talk page]], where you can send messages and comments to {{PAGENAME}}.|This is the [[Wikipedia:Talk page guidelines|talk page]] for discussing {{#if:{{{wp|}}}|[[:{{SUBJECTPAGENAME}}|{{PAGENAME}}]] and anything related to its purposes and tasks|improvements to the [[:{{SUBJECTPAGENAME}}|{{#if:{{{display_title|}}}|{{{display_title}}}|{{PAGENAME}}}}]] {{pagetype}}}}.<br/> {{#if:{{SUBJECTSPACE}}||This is [[Wikipedia:What Wikipedia is not#FORUM|not a forum]] for general discussion of the article's subject.}}}}}}</td>
</tr><tr style="text-align: left;">
<td style="background-color: white; border: 1px solid #c0c090">
* Put new text under old text. <b class="plainlinks">[{{fullurl:{{TALKPAGENAMEE}}|action=edit&section=new}} Click here to start a new topic]</b>.
* [[Wikipedia:Signatures|Please sign and date your posts]] by typing four tildes {{nowrap|( <kbd><nowiki>~~~~</nowiki></kbd> )}}.
* New to Wikipedia? [[Wikipedia:Contributing to Wikipedia|Welcome]]! [[Wikipedia:Questions|Ask questions, get answers]].
</td><td>
* [[Wikipedia:Civility|Be polite]], and [[Wikipedia:Please do not bite the newcomers|welcoming to new users]]
* [[Wikipedia:Assume good faith|Assume good faith]]
* [[Wikipedia:No personal attacks|Avoid personal attacks]]
* For disputes, [[Wikipedia:Dispute resolution requests|seek dispute resolution]]
</td>{{#switch:yes|{{{arpol|}}}|{{#if:{{SUBJECTSPACE}}|no|yes}}=<td style="border-left: 1px solid #c0c090">{{Center|'''Article policies'''}}
* [[Wikipedia:No original research|No original research]]
* [[Wikipedia:Neutral point of view|Neutral point of view]]
* [[Wikipedia:Verifiability|Verifiability]]
</td>
}}{{#if:{{{1|}}}{{{shortcut|}}}{{{shortcut1|}}}{{{sc|}}}{{{sc1|}}}|<td>{{shortcut|{{{1|{{{shortcut|{{{shortcut1|{{{sc|{{{sc1|}}}}}}}}}}}}}}}|{{{2|{{{shortcut2|{{{sc2|}}}}}}}}}|{{{3|{{{shortcut3|{{{sc3|}}}}}}}}}|{{{4|{{{shortcut4|{{{sc4|}}}}}}}}}|{{{5|{{{shortcut5|{{{sc5|}}}}}}}}} }}</td>}}
</tr>
{{#if:{{{noarchive|{{{noarchives|}}}}}}||{{#ifexist:{{FULLPAGENAME}}/Archive 1|
<tr><td colspan=4 style="border-top: 1px solid #c0c090; padding: 1px 3px">'''[[Help: Archiving a talk page|Archives]]:''' {{#ifexist:{{FULLPAGENAME}}/Archive index|[[{{FULLPAGENAME}}/Archive index|Index]],&#32;}}{{#ifexist:{{FULLPAGENAME}}/Archive A|{{Archive list alpha|nobr=yes|root={{FULLPAGENAME}}}},&#32;|}}{{Archive list|nobr=yes|root={{FULLPAGENAME}}}}</td>
</tr>
}}
}}
{{#if:{{#ifexist:{{FULLPAGENAME}}/Archive 1|y}}{{#ifexist:{{FULLPAGENAME}}/Archive A|y}}{{{search|}}}|{{#ifeq:{{{search|}}}|no||
<tr><td colspan=4 style="border-top: 1px solid #c0c090; padding: 0">{{search box|root={{FULLPAGENAME}}|search-break=no|search-width=auto|search-button-label=Search archives}}</td>
</tr>
}}
}}
</table><noinclude>
{{documentation}}
</noinclude>
Anonymous user