Difference between revisions of "Template:Header"

From En JW United
Jump to navigation Jump to search
 
(13 intermediate revisions by the same user not shown)
Line 44: Line 44:
 
<div class="gen_header_title" style="display:table-cell; text-align:center; width:60%;"><!--
 
<div class="gen_header_title" style="display:table-cell; text-align:center; width:60%;"><!--
  
-->'''<span id="header_title_text">{{{title|Untitled}}}</span>''' <!--
+
-->'''
 +
<span id="header_title_text">[[{{{title|Untitled}}}|{{{title}}}]]</span>'''<br>
 +
<span>Publication date: {{{year|}}}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 +
<span>Volume: {{{volume|}}}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
 +
<span>Number: {{{number|}}}</span>'''
 +
'''<!--
  
Year-->{{#if:{{{year|}}}{{{override_year|}}}<!--
 
      -->|{{#if:{{{override_year|}}}<!--
 
        -->|&nbsp;({{{override_year}}})&nbsp;[[Category:Pages with override year]]<!--
 
        -->|{{header/year<!--
 
            -->|{{{year}}}<!-- unaltered user input
 
            -->|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
 
    -->}}<!--
 
  
 
Author field
 
Author field
Line 190: Line 179:
 
   -->{{#ifeq:{{#invoke:Wikibase|id}}|no entity<!--
 
   -->{{#ifeq:{{#invoke:Wikibase|id}}|no entity<!--
  
if page is not connected to Wikidata, only show plain sister if at least one of its parameters is filled in
+
-->|{{#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|}}}<!--
 
-->}}<!--
 
 
 
-->}}<!--
 
 
 
if page is connected to Wikidata, always show plain sister
 
-->|{{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 #ifeq
 
   end #ifeq

Latest revision as of 03:05, 15 October 2019