Template:DYK/objects/doc: Difference between revisions
(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/ | <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/ | [[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/ | [[Template:DYK/objects/19|19]] [[Template:DYK/objects/20|20]] [[Template:DYK/objects/21|21]] [[Template:DYK/objects/22|22]] | ||
</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.
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.