Template:DYK/objects/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "'''{{tl|{{PAGENAME}}}}''' is one-fifth of the driving engine behind the automatic replacement of the '''Did You Know''' section of the main page. It looks for a sub-template of ...")
 
(deleting redlinks for purpose of thinning S:WP)
Tag: sourceedit
 
(6 intermediate revisions by 2 users not shown)
Line 6: Line 6:
<div style="font-size:90%; line-height:90%">These subpages should be about '''objects, technology, planets, and, well, ''things''.'''</div><hr>
<div style="font-size:90%; line-height:90%">These subpages should be about '''objects, technology, planets, and, well, ''things''.'''</div><hr>
<div style="font-size:50%; line-height:100%">If the number is red, then that page has '''not''' been created.  This feature won't work very well until all pages are created.</div>
<div style="font-size:50%; line-height:100%">If the number is red, then that page has '''not''' been created.  This feature won't work very well until all pages are created.</div>
<code>[[Template:DYK/chars/1|1]]  [[Template:DYK/chars/2|2]]  [[Template:DYK/chars/3|3]]  [[Template:DYK/chars/4|4]]  [[Template:DYK/chars/5|5]]  [[Template:DYK/chars/6|6]]  [[Template:DYK/chars/7|7]]  [[Template:DYK/chars/8|8]]  [[Template:DYK/chars/9|9]]  [[Template:DYK/chars/10|10]]  [[Template:DYK/chars/11|11]]  [[Template:DYK/chars/12|12]]  
<code>[[Template:DYK/objects/1|1]]  [[Template:DYK/objects/2|2]]  [[Template:DYK/objects/3|3]]  [[Template:DYK/objects/4|4]]  [[Template:DYK/objects/5|5]]  [[Template:DYK/objects/6|6]]  [[Template:DYK/objects/7|7]]  [[Template:DYK/objects/8|8]]  [[Template:DYK/objects/9|9]]  [[Template:DYK/objects/10|10]]  [[Template:DYK/objects/11|11]]  [[Template:DYK/objects/12|12]]  
[[Template:DYK/chars/13|13]]  [[Template:DYK/chars/14|14]]  [[Template:DYK/chars/15|15]]  [[Template:DYK/chars/16|16]]  [[Template:DYK/chars/17|17]]  [[Template:DYK/chars/18|18]]  
[[Template:DYK/objects/13|13]]  [[Template:DYK/objects/14|14]]  [[Template:DYK/objects/15|15]]  [[Template:DYK/objects/16|16]]  [[Template:DYK/objects/17|17]]  [[Template:DYK/objects/18|18]]  
[[Template:DYK/chars/19|19]]  [[Template:DYK/chars/20|20]]  [[Template:DYK/chars/21|21]]  [[Template:DYK/chars/22|22]]  [[Template:DYK/chars/23|23]]  [[Template:DYK/chars/24|24]]
[[Template:DYK/objects/19|19]]  [[Template:DYK/objects/20|20]]  [[Template:DYK/objects/21|21]]  [[Template:DYK/objects/22|22]]   
[[Template:DYK/chars/25|25]]  [[Template:DYK/chars/26|26]]  [[Template:DYK/chars/27|27]]  [[Template:DYK/chars/28|28]]  [[Template:DYK/chars/29|29]]  [[Template:DYK/chars/30|30]]
[[Template:DYK/chars/31|31]]  [[Template:DYK/chars/32|32]]  [[Template:DYK/chars/33|33]]  [[Template:DYK/chars/34|34]]  [[Template:DYK/chars/35|35]]  [[Template:DYK/chars/36|36]]
[[Template:DYK/chars/37|37]]  [[Template:DYK/chars/38|38]]  [[Template:DYK/chars/39|39]]  [[Template:DYK/chars/40|40]]  [[Template:DYK/chars/41|41]]  [[Template:DYK/chars/42|42]]
[[Template:DYK/chars/43|43]]  [[Template:DYK/chars/44|44]]  [[Template:DYK/chars/45|45]]  [[Template:DYK/chars/46|46]]  [[Template:DYK/chars/47|47]]  [[Template:DYK/chars/48|48]] [[Template:DYK/chars/49|49]]  [[Template:DYK/chars/50|50]]  [[Template:DYK/chars/51|51]]  [[Template:DYK/chars/52|52]]  [[Template:DYK/chars/53|53]]  [[Template:DYK/chars/54|54]]  [[Template:DYK/chars/55|55]]  [[Template:DYK/chars/56|56]]  [[Template:DYK/chars/57|57]]  [[Template:DYK/chars/58|58]]  [[Template:DYK/chars/59|59]]  [[Template:DYK/chars/60|60]]  [[Template:DYK/chars/61|61]]  [[Template:DYK/chars/62|62]]  [[Template:DYK/chars/63|63]]  [[Template:DYK/chars/64|64]]  [[Template:DYK/chars/65|65]]  [[Template:DYK/chars/66|66]]  [[Template:DYK/chars/67|67]]  [[Template:DYK/chars/68|68]]  [[Template:DYK/chars/69|69]]  [[Template:DYK/chars/70|70]]  [[Template:DYK/chars/71|71]]  [[Template:DYK/chars/72|72]]  [[Template:DYK/chars/73|73]]  [[Template:DYK/chars/74|74]]  [[Template:DYK/chars/75|75]]  [[Template:DYK/chars/76|76]]  [[Template:DYK/chars/77|77]]  [[Template:DYK/chars/78|78]]  [[Template:DYK/chars/79|79]]  [[Template:DYK/chars/80|80]]  [[Template:DYK/chars/81|81]]  [[Template:DYK/chars/82|82]]  [[Template:DYK/chars/83|83]]  [[Template:DYK/chars/84|84]]  [[Template:DYK/chars/85|85]]  [[Template:DYK/chars/86|86]]  [[Template:DYK/chars/87|87]]  [[Template:DYK/chars/88|88]]  [[Template:DYK/chars/89|89]]  [[Template:DYK/chars/90|80]]  [[Template:DYK/chars/91|91]]  [[Template:DYK/chars/92|92]]  [[Template:DYK/chars/93|93]]  [[Template:DYK/chars/94|94]]  [[Template:DYK/chars/95|95]]  [[Template:DYK/chars/96|96]]  [[Template:DYK/chars/97|97]] [[Template:DYK/chars/97|97]] [[Template:DYK/chars/98|98]] [[Template:DYK/chars/99|99]] [[Template:DYK/chars/100|100]]
</code>
</code>
</div>
</div>
</div>
</div>
== Example text ==
The following is the content of {{PAGENAME}}/1:
<pre>... that the instructional pamphlet, '''''[[So You're Caught in a Rocket Attack]]''''', was once consulted by [[Fourth Doctor|the Doctor]] when he actually ''was'' in the middle of a rocket attack? ([[PROSE]]: ''[[The Well-Mannered War]]'')
[[Category:DYK/objects templates]]</pre>
Note the following things:
*The text begins with '''periods of ellipses''' ''not'' an asterisk.  {{tlx|Doctor Who Wiki/DYK}} will add the asterisk, thereby converting the factoids into a list.
*The fact should be put into the appropriate category; in this case, [[:category:DYK/objects templates]].
*The subject of the factoid, in this case ''[[So You're Caught in a Rocket Attack]]'', should be bolded.
*The fact should be as [[T:WIKIFY|wikified]] as possible.  We want to expose readers to ''many'' opportunities to click through to some other spot of the wiki.
*Redlinks in a DYK should be avoided.
*DYKs end with question marks.
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 02:34, 24 August 2017

{{DYK/objects/doc}} is one-fifth of the driving engine behind the automatic replacement of the Did You Know section of the main page. It looks for a sub-template of this one labelled by a number between 1 and 100. It then transcludes the template associated with that number. Thus, a different nugget of information is placed on the main page in the DYK section on each page load. This ensures that no two users of the site have the same experience, and a wider range of articles will be visited from the front page.

This template is fully locked, because it is merely the conduit through which the actual featured article text passes. To change the quote of the week, you must change one of the following sub templates.

These subpages should be about objects, technology, planets, and, well, things.

If the number is red, then that page has not been created. This feature won't work very well until all pages are created.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

Example text

The following is the content of DYK/objects/doc/1:

... that the instructional pamphlet, '''''[[So You're Caught in a Rocket Attack]]''''', was once consulted by [[Fourth Doctor|the Doctor]] when he actually ''was'' in the middle of a rocket attack? ([[PROSE]]: ''[[The Well-Mannered War]]'')
[[Category:DYK/objects templates]]

Note the following things:

  • The text begins with periods of ellipses not an asterisk. {{Doctor Who Wiki/DYK}} will add the asterisk, thereby converting the factoids into a list.
  • The fact should be put into the appropriate category; in this case, category:DYK/objects templates.
  • The subject of the factoid, in this case So You're Caught in a Rocket Attack, should be bolded.
  • The fact should be as wikified as possible. We want to expose readers to many opportunities to click through to some other spot of the wiki.
  • Redlinks in a DYK should be avoided.
  • DYKs end with question marks.