Difference between revisions of "Template:MCBdyk"

From blackwiki
Jump to navigation Jump to search
imported>ShakespeareFan00
(Mismatched formatting repaired)
imported>ShakespeareFan00
 
Line 3: Line 3:
 
  |small={{{small|}}}
 
  |small={{{small|}}}
 
  |image=[[File:Updated DYK query.svg|Did You Know|22px|link=|alt=]]
 
  |image=[[File:Updated DYK query.svg|Did You Know|22px|link=|alt=]]
  |text=<small>A [[Wikipedia:WikiProject Molecular and Cellular Biology|Molecular and Cellular Biology]]-related fact from '''[[{{{article}}}]]''' appeared on Wikipedia's [[Main Page]] in the '''[[:Template:Did you know|Did you know?]]''' column on {{#iferror:{{#expr:{{{date}}}}}|{{{date|some day}}}|{{{date}}} {{{date}}}}}{{#if:{{{views|}}}
+
  |text=<div style="font-size:0.9em">A [[Wikipedia:WikiProject Molecular and Cellular Biology|Molecular and Cellular Biology]]-related fact from '''[[{{{article}}}]]''' appeared on Wikipedia's [[Main Page]] in the '''[[:Template:Did you know|Did you know?]]''' column on {{#iferror:{{#expr:{{{date}}}}}|{{{date|some day}}}|{{{date}}} {{{date}}}}}{{#if:{{{views|}}}
 
   |, and was viewed approximately {{{views}}} times <sub>([[Template:DYK talk/Views disclaimer|disclaimer]])</sub>
 
   |, and was viewed approximately {{{views}}} times <sub>([[Template:DYK talk/Views disclaimer|disclaimer]])</sub>
 
  }}<includeonly>{{#ifexpr:{{#time:U|{{{date}}} {{#iferror:{{#expr:{{{year}}}}}}}}}>1197244800<!-- stats available from 10 Dec 2007 -->
 
  }}<includeonly>{{#ifexpr:{{#time:U|{{{date}}} {{#iferror:{{#expr:{{{year}}}}}}}}}>1197244800<!-- stats available from 10 Dec 2007 -->
Line 15: Line 15:
 
The nomination discussion and review may be seen at [[{{{nompage}}}]].|{{if|exist|Template:Did you know nominations/{{article}}|
 
The nomination discussion and review may be seen at [[{{{nompage}}}]].|{{if|exist|Template:Did you know nominations/{{article}}|
 
The nomination discussion and review may be seen at [[Template:Did you know nominations/{{article}}]]. | {{if|exist|Template talk:Did you know/{{article}}|
 
The nomination discussion and review may be seen at [[Template:Did you know nominations/{{article}}]]. | {{if|exist|Template talk:Did you know/{{article}}|
The nomination discussion and review may be seen at [[Template talk:Did you know/{{article}}]].}} }} }}</small>
+
The nomination discussion and review may be seen at [[Template talk:Did you know/{{article}}]].}} }} }}</div>
 
  |imageright={{#if:{{{image|{{#iferror:{{#expr:{{{entry}}}}}|{{{image|}}}}}}}}
 
  |imageright={{#if:{{{image|{{#iferror:{{#expr:{{{entry}}}}}|{{{image|}}}}}}}}
 
   |[[File:{{{image|{{#iferror:{{#expr:{{{entry}}}}}|{{{image}}} }}}}}|right|60px]]
 
   |[[File:{{{image|{{#iferror:{{#expr:{{{entry}}}}}|{{{image}}} }}}}}|right|60px]]

Latest revision as of 16:41, 4 August 2018

Template documentation[view] [edit] [history] [purge]

Usage

Basic usage: Place {{MCBdyk| article= | date= |entry= |image=}} in the MCB DYK list page.

Parameters

  • {{{article}}} - Required: If the page has been moved since it was on DYK, putting its former name in this parameter will ensure the "check views" link to obtains the number of page views dated to the DYK period for the former name rather than the new name.
  • {{{date}}} - Required: Date (day, month and year) e.g. 2 March 2010
  • {{{entry}}} - Hook, in the form ...text? (note the "..." and "?"); adds:

The text of the entry was as follows: "Did you know...

  • {{{entry}}}"
  • {{{image}}} - Image (without "File:" or "Image:" prefix) that was part of the DYK entry, if any; replaces the default Wikipedia image on the right-hand side; use only with the {{{entry}}} parameter.
  • {{{nompage}}} - The name of the subpage where the nomination discussion/review was conducted (e.g., Template:Did you know nominations/Article title; do not use brackets). The template can sometimes generate a link to the nomination subpage without this, but adding |nompage= ensures that it generates the link, and that the link remains even if this article title is moved (on the other hand, the automatically-generated link can be lost if the article is moved).
  • A record of the entry may be seen at [[Wikipedia:Recent additions {{{num}}}]].

    • {{{num}}} - number of the Recent additions archive page the entry appears in; adds:

    A record of the entry may be seen at [[Wikipedia:Recent additions {{{num}}}]].

    • {{{views}}} - Number of page views dated to the DYK period; adds:

    , and was viewed approximately {{{views}}} times (disclaimer)

    Examples

    • {{MCBdyk |article=Von Willebrand factor |date=1 February 2011 |entry=... that the burning sensation caused by red hot [[chili pepper]]s or the warmth caused by [[camphor]] are due to the activation of different '''[[TRPV]]''' [[ion channels]] ''([[TRPV1]] pictured)'', which are also [[Thermoreceptor|thermosensitive]]? |image=Trpv1 pip2 bilayer cropped.png |views=1025}}
  • {{MCBdyk |article=Von Willebrand factor |date=1 February 2011 |entry=... that the burning sensation caused by red hot [[chili pepper]]s or the warmth caused by [[camphor]] are due to the activation of different '''[[TRPV]]''' [[ion channels]] ''([[TRPV1]] pictured)'', which are also [[Thermoreceptor|thermosensitive]]? |image=Trpv1 pip2 bilayer cropped.png }}
  • {{MCBdyk |article=Von Willebrand factor |date=1 February 2011 |entry=... that the burning sensation caused by red hot [[chili pepper]]s or the warmth caused by [[camphor]] are due to the activation of different '''[[TRPV]]''' [[ion channels]] ''([[TRPV1]] pictured)'', which are also [[Thermoreceptor|thermosensitive]]? }}