Difference between revisions of "MediaWiki:Proofreadpage header template"

From En JW United
Jump to navigation Jump to search
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
hello {{{wikibase_item}}
 
 
<includeonly>{{header
 
<includeonly>{{header
  | title          = {{{title|}}}
+
  | title          = {{#invoke: LiteratureData | getNameOfLiteratureBasedOnLanguage |{{{wikibaseitem}}}|en}}
  | volume         = {{{volume|}}}
+
  | volume         = {{#invoke: LiteratureData | getVolume |{{{wikibaseitem}}}|}} ({{#roman: {{#invoke: LiteratureData | getVolume |{{{wikibaseitem}}}|}}}})
  | number         = {{{number|}}}
+
  | number         = {{#invoke: LiteratureData | getNumber |{{{wikibaseitem}}}|}}
 
  | author        = | override_author = {{{author|}}}
 
  | author        = | override_author = {{{author|}}}
 
  | translator    = | override_translator = {{{translator|}}}
 
  | translator    = | override_translator = {{{translator|}}}
Line 11: Line 10:
 
  | previous      = {{{prev|{{{previous|}}}}}}
 
  | previous      = {{{prev|{{{previous|}}}}}}
 
  | next          = {{{next|}}}
 
  | next          = {{{next|}}}
  | year          = {{{year|}}}
+
  | year          = {{#time: d.m.Y | {{#invoke: LiteratureData | getPublicationDate |{{{wikibaseitem}}}|}}}}
 
  | wikipedia      = {{{wikipedia|}}}
 
  | wikipedia      = {{{wikipedia|}}}
 
  | commons        = {{{commons|}}}
 
  | commons        = {{{commons|}}}
Line 45: Line 44:
 
</noinclude>
 
</noinclude>
 
[[Category:{{{type|}}} ]]
 
[[Category:{{{type|}}} ]]
[[Category:{{#time: Y | {{{year|}}} }} ]]
+
[[Category:{{#time: Y | {{#invoke: LiteratureData | getPublicationDate |{{{wikibaseitem}}}|}}}} ]]
 +
[[Category:{{{materialtype}}}]]

Latest revision as of 04:12, 30 October 2019


  • This template generates headers for the <pages/> command, when it is called with "header".
  • It takes its parameters from the index page.
  • Parameters from the index page can be overridden in the "pages" command.
  • Example:
<pages index="foo" header author="bar" />

[[Category: ]] [[Category:Error: Invalid time. ]] [[Category:{{{materialtype}}}]]