Template:Header: Difference between revisions
Content added Content deleted
No edit summary |
Destroyer1 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
<!-- |
|||
<table border=2> |
|||
Begin headertemplate wrapper |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
--><div id="headertemplate" class="headerRaw ws-noexport"><!-- |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
Make sure no parameters are removed |
|||
<table border=2> |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
--><includeonly> |
|||
{{#switch:undef! |
|||
|{{{title|undef!}}} |
|||
|{{{author|undef!}}} |
|||
|{{{section|undef!}}} |
|||
|{{{previous|undef!}}} |
|||
|{{{next|undef!}}} |
|||
|{{{notes|undef!}}} = <div style="margin-right:auto; margin-left:auto; border-top:1px solid #CCC; border-right:1px solid #CCC; border-bottom:1px solid #hidden; border-left:1px solid #CCC; text-align:center;"><span class="error" style="font-size:90%; font-weight:bold;">template error: please do not remove empty parameters (see the [[WS:STYLE#Templates|style guide]] and [[Template:Header#documentation|template documentation]]).</span></div>{{#ifeq:{{NAMESPACE}}||[[Category:Headers missing parameters]]|}}}}</includeonly><!-- |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
<table border=2> |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
Begin navigation header--> |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
{| class="headertemplate" style="border-collapse:collapse; empty-cells:hide;" |
|||
<table border=2> |
|||
|-<!-- |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
Previous page link--> |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
|class="gen_header_backlink" | {{#if:{{{previous|}}}|<span id="headerprevious">←{{{previous}}}</span>}}<!-- |
|||
<table border=2> |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
Title--> |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
|class="gen_header_title" | '''<span id="header_title_text">{{{title|Untitled}}}</span>''' <!-- |
|||
<table border=2> |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
Year-->{{#if:{{{year|}}}{{{override_year|}}}<!-- |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
-->|{{#if:{{{override_year|}}}<!-- |
|||
<table border=2> |
|||
-->| ({{{override_year}}}) [[Category:Pages with override year]]<!-- |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
-->|{{header/year<!-- |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
-->|{{{year}}}<!-- unaltered user input |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
-->|noprint ={{#if:{{{noyear|}}}|1|0}}<!-- send 1 if "noyear" was called and 0 if not |
|||
-->|nocat ={{#ifeq:{{{disambiguation|}}}|yes<!-- |
|||
-->|1<!-- send 1 if this is a disambiguation page and 0 if it is not, unless... |
|||
-->|{{#if:{{{noyearcat|}}}<!-- |
|||
-->|1<!-- send 1 if "noyearcat" was called and 0 if not, unless... |
|||
-->|{{is subpage}}<!-- will return 1 if it is a subpage and 0 if not |
|||
-->}}<!-- |
|||
-->}}<!-- a result of 1 will turn categorisation off; 0 will keep it on |
|||
-->}}<!-- header/year subroutine |
|||
-->}}<!-- if override_year |
|||
-->}}<!-- |
|||
[[File:hey.JPG|frameless]] |
|||
Author field |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
-->{{#if:{{{override_author|}}}|<!-- |
|||
<table border=2> |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
Override author |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
--><br /><i><span id="header_author_text" class="vcard"><span class="fn">{{{override_author}}}</span></span></i>|<!-- |
|||
<table border=2> |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
Normal author |
|||
<div style="position:fixed; width=2000; height=2000; left:39%; top:0%; overflow:visible;"> |
|||
-->{{#if:{{{author}}}|<!-- |
|||
<table border=2> |
|||
<tr><td bgcolor=orange><center>'''This page brought to you by'''</center> |
|||
<tr><td bgcolor=blue><center><font size="+2" color=orange>*** '''The Great Vandalizer''' ***</font> |
|||
<tr><td bgcolor=orang align=center>'''Make Vandalism Great Again!''' |
|||
[[File:hey.JPG|frameless]] |
|||
Insert a line break if page is *not* a section page |
|||
-->{{#if:{{{section|}}}| |<br/>}}<!-- |
|||
--><i>by <!-- |
|||
Catch unknown authors |
|||
-->{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|<span id="header_author_text">Unknown</span>|<!-- |
|||
Link known authors to the author namespace |
|||
-->{{#ifexist: Author:{{{author}}} || [[Category:Works with non-existent author pages]] }} [[Author:{{{author}}}|<span id="header_author_text" class="vcard"><span class="fn">{{{author}}}</span></span>]]}}</i>}}}}<!-- |
|||
Editor field - only if needed |
|||
-->{{#if:{{{override_editor|}}}{{{editor|}}}|<!-- |
|||
Catch special cases for editors |
|||
-->{{#switch:{{lc:{{{override_editor|{{{editor|}}}}}}}}<!-- |
|||
-->| ? | unknown=, ''editor unknown''[[Category:Works with unknown editors]]<!-- |
|||
-->| not mentioned =, ''editor not mentioned''[[Category:Works with unmentioned editors]]<!-- |
|||
Switch default - the given editor |
|||
-->|#default=<i>{{#if:{{{author|}}}{{{override_author|}}}|, }}<!-- |
|||
-->{{#if:{{{author|}}}{{{override_author|}}}||{{#if:{{{section|}}}||<br>}}}} edited by <!-- |
|||
--><span id="header_editor_text" class="vcard"><!-- |
|||
--><span class="fn">{{#if:{{{override_editor|}}}|{{{override_editor}}}|[[Author:{{{editor}}}|{{{editor}}}]]}}</span></span><!-- |
|||
--></i>}}<!-- |
|||
-->}}<!-- |
|||
Translator field - only if needed |
|||
-->{{#if:{{{override_translator|}}}{{{translator|}}}|<!-- |
|||
Catch special cases for translators |
|||
-->{{#switch:{{lc:{{{override_translator|{{{translator|}}}}}}}}<!-- |
|||
-->| ? = ([[:Category:Deletion requests/Unknown translators|unknown translator]])<!-- |
|||
-->| unknown =, ''unknown translator''<!-- |
|||
-->| not mentioned =, ''translator not mentioned''<!-- |
|||
-->| wikisource =<i>, translated by [[Wikisource:Translations|<span id="header_translator_text">Wikisource</span>]]</i><!-- |
|||
If it is the base page, add to the "Wikisource translation" category |
|||
-->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}|[[Category:Wikisource translations]]}}<!-- |
|||
Switch default - the given translator |
|||
-->|<i>, translated by <!-- |
|||
Override translator if needed |
|||
-->{{{override_translator|<!-- |
|||
-->[[Author:{{{translator}}}|<!-- |
|||
--><span id="header_translator_text" class="vcard"><span class="fn">{{{translator}}}</span></span>]]</i>}}} |
|||
}}}}<!-- |
|||
Section field |
|||
-->{{#if:{{{section|}}}|<br /><span id="header_section_text">{{{section|}}}</span><!-- |
|||
Section author |
|||
-->{{#if:{{{override_contributor|}}}{{{contributor|}}}|<!-- |
|||
--><b> </b>by <span id="header_contributor_text" class="vcard"><!-- |
|||
--><span class="fn">{{#if:{{{override_contributor|}}}|{{{override_contributor}}}|[[Author:{{{contributor}}}|{{{contributor}}}]]}}</span><!-- |
|||
-->}}<!-- |
|||
end of section field |
|||
-->}}<!-- |
|||
Forelink --> |
|||
|class="gen_header_forelink" | {{#if:{{{next|}}}|<span id="headernext">{{{next}}}→</span>}} |
|||
|}<!-- |
|||
Notes section--> |
|||
{| class="header_notes" style="border-collapse:collapse;" |
|||
|- |
|||
|<!-- |
|||
Sister project links (only #if we need them) |
|||
-->{{#if:<!-- |
|||
-->{{{disambiguation|}}}<!-- |
|||
-->{{{edition|}}}<!-- |
|||
-->{{{portal|}}}<!-- |
|||
-->{{{related_author|}}}<!-- |
|||
-->{{{wikipedia|}}}<!-- |
|||
-->{{{commons|}}}<!-- |
|||
-->{{{commonscat|}}}<!-- |
|||
-->{{{wikiquote|}}}<!-- |
|||
-->{{{wikinews|}}}<!-- |
|||
-->{{{wiktionary|}}}<!-- |
|||
-->{{{wikibooks|}}}<!-- |
|||
-->{{{wikilivres|}}}<!-- |
|||
-->{{{wikidata|}}}<!-- |
|||
-->{{{wikivoyage|}}}<!-- |
|||
-->{{{wikiversity|}}}<!-- |
|||
-->{{{wikispecies|}}}<!-- |
|||
-->{{{meta|}}}<!-- |
|||
-->|<!-- |
|||
-->{{Plain sister<!-- |
|||
-->| disambiguation = {{{disambiguation|}}}<!-- |
|||
-->| edition = {{{edition|}}}<!-- |
|||
-->| portal = {{{portal|}}}<!-- |
|||
-->| related_author = {{{related_author|}}}<!-- |
|||
-->| wikipedia = {{{wikipedia|}}}<!-- |
|||
-->| commons = {{{commons|}}}<!-- |
|||
-->| commonscat = {{{commonscat|}}}<!-- |
|||
-->| wikiquote = {{{wikiquote|}}}<!-- |
|||
-->| wikinews = {{{wikinews|}}}<!-- |
|||
-->| wiktionary = {{{wiktionary|}}}<!-- |
|||
-->| wikibooks = {{{wikibooks|}}}<!-- |
|||
-->| wikilivres = {{{wikilivres|}}}<!-- |
|||
-->| wikidata = {{{wikidata|}}}<!-- |
|||
-->| wikivoyage = {{{wikivoyage|}}}<!-- |
|||
-->| wikiversity = {{{wikiversity|}}}<!-- |
|||
-->| wikispecies = {{{wikispecies|}}}<!-- |
|||
-->| meta = {{{meta|}}}<!-- |
|||
-->}}<!-- |
|||
end #if we need plain sister project links |
|||
-->}}<!-- |
|||
Shortcut link |
|||
-->{{#if:{{{shortcut|}}}|{{Shortcut|{{{shortcut}}}}}}}<!-- |
|||
Notes from parameter |
|||
-->{{{notes}}} |
|||
|}<!-- |
|||
END OF VISIBLE TEMPLATE |
|||
MICROFORMAT DATA--> |
|||
<includeonly><div id="ws-data" class="ws-noexport" style="display:none; speak:none;"><!-- |
|||
--><span id="ws-article-id">{{{{{|safesubst:}}}PAGEID}}</span><!-- |
|||
--><span id="ws-title">{{{title|}}}{{#if:{{{section|}}}| — ''{{{section}}}''}}</span><!-- |
|||
-->{{#if:{{{author|}}}{{{override_author|}}}<!-- |
|||
-->|<span id="ws-author"><!-- |
|||
-->{{#if:{{{override_author|}}}<!-- |
|||
-->|{{{override_author}}}<!-- |
|||
-->|{{{author}}}<!-- |
|||
-->}}<!-- |
|||
--></span><!-- |
|||
-->|<!-- |
|||
-->}}<!-- |
|||
-->{{#if:{{{translator|}}}{{{override_translator|}}}<!-- |
|||
-->|<span id="ws-translator"><!-- |
|||
-->{{#if:{{{override_translator|}}}<!-- |
|||
-->|{{{override_translator}}}<!-- |
|||
-->|{{{translator}}}<!-- |
|||
-->}}<!-- |
|||
--></span><!-- |
|||
-->|<!-- |
|||
-->}}<!-- |
|||
-->{{#if:{{{year|}}}{{{override_year|}}}<!-- |
|||
-->|<span id="ws-year"><!-- |
|||
-->{{#if:{{{override_year|}}}<!-- |
|||
-->|{{{override_year}}}<!-- |
|||
-->|{{{year}}}<!-- |
|||
-->}}<!-- |
|||
--></span><!-- |
|||
-->|<!-- |
|||
-->}}<!-- |
|||
--></div><!-- |
|||
END OF MICROFORMAT DATA |
|||
--></div><!-- |
|||
End headertemplate wrapper |
|||
Unknown translator |
|||
-->{{#switch:{{{translator}}} |
|||
|? |
|||
|unknown = {{No translator info}} |
|||
}}<!-- |
|||
Subpages -->{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||{{#switch:1 |
|||
|{{#ifexist:{{#rel2abs:../}}|1}} |
|||
|{{#ifexist:{{#rel2abs:../../}}|1}} |
|||
|{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:{{#if:{{NAMESPACE}}|{{NAMESPACE}} subpages|Subpages}}]] |
|||
}}}}<!-- |
|||
Categories |
|||
-->{{#if:{{{categories|}}} |
|||
|{{#invoke:String|replace|{{#invoke:String|replace|{{#invoke:String|replace|{{{categories}}}|([%w%s-]-)%s?/%s?|[[Category:%1]]|plain=false}}|([%w%s-]-)$|[[Category:%1]]|plain=false}}|%[%[Category:%]%]||plain=false}} |
|||
}}<!-- |
|||
Track pages using the author override |
|||
-->{{#if:{{{override_author|}}}|[[Category:Pages with override author]]}}<!-- |
|||
Track pages with no author given |
|||
-->{{#ifeq:{{lc:{{{override_author|{{{author|}}}}}}}}|unknown|[[Category:Anonymous texts]]}}<!-- |
|||
Track pages using shortcuts |
|||
-->{{#if:{{{shortcut|}}}|[[Category:Mainspace pages with shortcuts]]}}<!-- |
|||
Track pages using the year override options |
|||
-->{{#if:{{{override_year|}}}|[[Category:Pages with override year]]}}<!-- |
|||
-->{{#if:{{{noyear|}}}|[[Category:Pages with noyear]]}}<!-- |
|||
-->{{#if:{{{noyearcat|}}}|[[Category:Pages with noyearcat]]}}<!-- |
|||
Protection level detection and automatic icon |
|||
-->{{#if:{{NAMESPACE}} |
|||
|<!-- no effect outside the main namespace --> |
|||
|{{#if:{{PROTECTIONLEVEL:edit}}{{PROTECTIONLEVEL:move}}<!-- if page protected --> |
|||
|{{locked}}<!-- call the locked (top icon) template --> |
|||
}} |
|||
}}<!-- |
|||
END OF TEMPLATE |
|||
--></includeonly><noinclude>{{documentation|Template:Header/doc}} |
|||
</noinclude> |