Template:Noticeboard header: Difference between revisions

m
1 revision imported
(very minor color and border roundness changes)
 
m (1 revision imported)
Tags: Mobile edit Mobile web edit Advanced mobile edit
 
(2 intermediate revisions by one other user not shown)
Line 1:
<templatestyles src="Noticeboard header/styles.css" />
<includeonly>{{#if:{{PROTECTIONLEVEL:edit}}|{{pp|small=yes}}}}</includeonly>
{{Box
{{#ifeq:{{{navbox|<noinclude>yes</noinclude>}}}|yes|{{Noticeboard links|style={{#ifeq:{{{anstyle|}}}|yes|{{{style|border: 2px ridge #cae1ff;}}}|{{{style|}}}}}|titlestyle={{#ifeq:{{{anstyle|}}}|yes|{{{titlestyle|background-color: #aad1ff;}}}|{{{style|}}}}}|groupstyle={{#ifeq:{{{anstyle|}}}|yes|{{{groupstyle|background-color: #cae1ff;}}}|{{{style|}}}}}|state={{{state|}}}|nostb={{{nostb|}}}|notoc={{{notoc|}}}}}}}
|lang = {{{lang|}}}
{| style="width: 100%; margin: {{#ifeq:{{{navbox|<noinclude>yes</noinclude>}}}|yes|2px}} 0 0.5em; padding: 1px; {{{style|border: 1px solid #A0A5AD;}}} {{{backgroundstyle|background-color: #eaf3ff;}}}"
|class = noticeboardheader
! style="padding: 0.25em 0; text-align: center; font-size: 120%; border-radius: 3px; {{{titlestyle|background-color: #aad1ff;}}}" | {{#if:{{{title|{{{pagename|}}}}}}|{{{title|{{{pagename}}}}}}|{{PAGENAME}}}}
|1 = class="noticeboardheader-main" {{!}} {{#if:{{{hidetitle|}}}||{{#if:{{{title|}}}|<div class="noticeboardheader-title">{{{title|<bdi lang="en">Noticeboard</bdi>}}}</div>}}}}<div class="noticeboardheader-description">{{{description|}}}</div>
|-
{{!}}{{#if:{{{hidetranslate|}}}||{{#if:{{{translations|}}}|<div class="noticeboardheader-translate"></div>}}}}{{#if:{{{hidebutton|}}}||<div class="noticeboardheader-newsection plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit&section=new{{#if:{{{preload|}}}|&preload={{{preload|}}}}}{{#if:{{{preloadtitle|}}}|&preloadtitle={{urlencode:{{{preloadtitle|}}}}}}}}} <span class="mw-ui-button mw-ui-progressive">{{{new section|<bdi lang="">New thread</bdi>}}}</span>]</div>}}
| style="padding: 0 0.375em;" |
}}{{#if:{{{nonewsectionlink|}}}{{#ifeq:{{FULLPAGENAME}}|{{{translations}}}{{#translation:}}|1}}||__NEWSECTIONLINK__}}<noinclude>
{{#if:{{{shortcut<includeonly>|</includeonly>}}}|<div style="margin: 0.5em 0;">{{Shortcut|{{{shortcut}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}</div>}}
{{{1|}documentation}}
{{#ifeq:{{{newsection|}}}|yes|
{{!}}-
{{!}} class="plainlinks" style="border: 1px solid #aaaaaa; background-color: white; text-align: center; font-size: 125%;" {{!}}
'''[{{fullurl:{{#if:{{{pagename|}}}|{{{pagename}}}|{{FULLPAGENAME}}}}|action=edit&section=new{{#if:{{{newsectionpreload|}}}|&preload={{{newsectionpreload}}}}}{{#if:{{{newsectionpreloadtitle|}}}|&preloadtitle={{{newsectionpreloadtitle}}}}}{{#if:{{{newsectioneditinto|{{{newsectioneditintro|}}}}}}|&editintro={{{newsectioneditinto|{{{newsectioneditintro|}}}}}}}}}} {{{newsectiontext|Click here to start a new discussion}}}]'''
}}
|}<noinclude>
{{Documentation}}
</noinclude>