Difference between revisions of "Template:Day/article"
From Gunsopedia
(Created page with "<noinclude>Template to format the display of the AOTD in the date page and the front page. </noinclude> <table style="margin-left: 5px; margin-right: 5px; background-color...") |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>Template to format the display of the [[AOTD]] in the date page and the front page. | + | <noinclude>Template to format the display of the [[AOTD]] in the date page and the front page. If the <date>/article page has no featured article for it, use the '''[[template:AOTD missing|<nowiki>{{AOTD missing}}</nowiki>]]''' template instead. |
+ | * [[Template:day]] | ||
+ | * [[Template:day/article]] | ||
+ | * [[Template:day/history]] | ||
+ | * [[Template:day/gallery]] | ||
+ | * [[Template:day/image]] | ||
+ | * [[Template:day/video]] | ||
+ | ==Current version == | ||
</noinclude> | </noinclude> | ||
<table style="margin-left: 5px; margin-right: 5px; background-color: transparent;" cellpadding="0" cellspacing="0" border="0"> | <table style="margin-left: 5px; margin-right: 5px; background-color: transparent;" cellpadding="0" cellspacing="0" border="0"> | ||
Line 9: | Line 16: | ||
{{DEFAULTSORT:{{{sort}}}}} | {{DEFAULTSORT:{{{sort}}}}} | ||
}} | }} | ||
− | [[category:{{{month}}} | + | {{#ifeq:{{FULLPAGENAME}}|{{BASEPAGENAME}}/article|[[category:{{{month}}}]]}}<noinclude> |
− | + | ||
− | <noinclude> | + | |
==Usage== | ==Usage== | ||
<pre>{{day/article | <pre>{{day/article | ||
|month= | |month= | ||
− | |||
|title= | |title= | ||
|image= | |image= | ||
Line 21: | Line 25: | ||
|more= | |more= | ||
|summary= | |summary= | ||
− | }} | + | }}<noinclude>[[category:Daily articles]] |
− | </pre> | + | {{DEFAULTSORT:}}</pre> |
+ | * '''sort''': not currently used due to bug. | ||
* '''title''': the name of the article to be featured | * '''title''': the name of the article to be featured | ||
* '''image''': a pic to go on the front page with it ... eg., "this.jpg" (no "file:" prefix needed) | * '''image''': a pic to go on the front page with it ... eg., "this.jpg" (no "file:" prefix needed) |
Latest revision as of 17:53, 29 June 2015
Template to format the display of the AOTD in the date page and the front page. If the <date>/article page has no featured article for it, use the {{AOTD missing}} template instead.
- Template:day
- Template:day/article
- Template:day/history
- Template:day/gallery
- Template:day/image
- Template:day/video
[edit] Current version
[[Image:{{{image}}}|left|180x250px]]{{{summary}}} [[{{{title}}}|(Read more...)]] |
[edit] Usage
{{day/article |month= |title= |image= |imagewidth= |more= |summary= }}<noinclude>[[category:Daily articles]] {{DEFAULTSORT:}}
- sort: not currently used due to bug.
- title: the name of the article to be featured
- image: a pic to go on the front page with it ... eg., "this.jpg" (no "file:" prefix needed)
- imagewidth: pick how wide you want the image to be (default is 180px)
- more: you can choose text for the article link (defaults to "Read more...")
- summary: the text that shows on the main page