Difference between revisions of "Template:Header"

From Anarchy
Jump to navigation Jump to search
imported>Ivanhoe
(Created page with "<!-- Begin headerContainer wrapper --><div id="headerContainer" class="ws-noexport noprint"><!-- Make sure no parameters are removed --><includeonly> {{#switch:undef! |{{{...")
 
imported>Ivanhoe
Line 14: Line 14:
 
  |{{{next|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 hidden transparent; 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.</span></div><!--
 
  |{{{notes|undef!}}} = <div style="margin-right:auto; margin-left:auto; border-top:1px solid #CCC; border-right:1px solid #CCC; border-bottom:1px hidden transparent; 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.</span></div><!--
 
Also add a tracking category:
 
-->{{#ifeq:{{NAMESPACE}}||[[Category:Headers missing parameters]]|}}<!--
 
  
 
-->}}<!--end switch--></includeonly><!--
 
-->}}<!--end switch--></includeonly><!--
Line 48: Line 45:
 
Year-->{{#if:{{{year|}}}{{{override_year|}}}<!--
 
Year-->{{#if:{{{year|}}}{{{override_year|}}}<!--
 
       -->|{{#if:{{{override_year|}}}<!--
 
       -->|{{#if:{{{override_year|}}}<!--
         -->|&nbsp;({{{override_year}}})&nbsp;[[Category:Pages with override year]]<!--
+
         -->|&nbsp;({{{override_year}}})&nbsp;<!--
 
         -->|{{header/year<!--
 
         -->|{{header/year<!--
 
             -->|{{{year}}}<!-- unaltered user input  
 
             -->|{{{year}}}<!-- unaltered user input  
Line 80: Line 77:
  
 
             Link known authors to the author namespace
 
             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>}}}}<!--
+
             -->{{#ifexist: Author:{{{author}}} || }} [[Author:{{{author}}}|<span id="header_author_text" class="vcard"><span class="fn">{{{author}}}</span></span>]]}}</i>}}}}<!--
  
 
Editor field - only if needed
 
Editor field - only if needed
Line 88: Line 85:
 
     -->{{#switch:{{lc:{{{override_editor|{{{editor|}}}}}}}}<!--
 
     -->{{#switch:{{lc:{{{override_editor|{{{editor|}}}}}}}}<!--
 
      
 
      
         -->| ? | unknown=, ''editor unknown''[[Category:Works with unknown editors]]<!--
+
         -->| ? | unknown=, ''editor unknown''<!--
         -->| not mentioned =, ''editor not mentioned''[[Category:Works with unmentioned editors]]<!--
+
         -->| not mentioned =, ''editor not mentioned''<!--
  
 
         Switch default - the given editor
 
         Switch default - the given editor
Line 107: Line 104:
 
     -->{{#switch:{{lc:{{{override_translator|{{{translator|}}}}}}}}<!--
 
     -->{{#switch:{{lc:{{{override_translator|{{{translator|}}}}}}}}<!--
 
         -->| not mentioned =, ''translator not mentioned''<!--
 
         -->| 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]]}}<!--
 
 
        -->| ? =&nbsp;([[:Category:Deletion requests/Unknown translators|unknown translator]]){{No translator info}}<!--
 
 
         -->| unknown =, ''unknown translator''{{No translator info}}<!--
 
         -->| unknown =, ''unknown translator''{{No translator info}}<!--
  
Line 237: Line 228:
 
  |{{#ifexist:{{#rel2abs:../}}|1}}
 
  |{{#ifexist:{{#rel2abs:../}}|1}}
 
  |{{#ifexist:{{#rel2abs:../../}}|1}}
 
  |{{#ifexist:{{#rel2abs:../../}}|1}}
  |{{#ifexist:{{#rel2abs:../../../}}|1}} = [[Category:{{#if:{{NAMESPACE}}|{{NAMESPACE}} subpages|Subpages}}]]
+
  |{{#ifexist:{{#rel2abs:../../../}}|1}}
 
}}}}<!--
 
}}}}<!--
  
Line 244: Line 235:
 
|{{#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}}
 
|{{#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]]}}<!--
 
  
 
END OF NON-VISIBLE CONTENT
 
END OF NON-VISIBLE CONTENT

Revision as of 14:16, 4 April 2016