Difference between revisions of "Template:Day"

From Gunsopedia
Jump to: navigation, search
(Potential changes)
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__<noinclude>This template is intended for use in standardizing all date pages.  See [[GP:guidelines]] for more details.  Because it is a high-use template, it is locked to all but admins.  Sub-templates, for the article, gallery, etc. pages, are:
 
__NOTOC__<noinclude>This template is intended for use in standardizing all date pages.  See [[GP:guidelines]] for more details.  Because it is a high-use template, it is locked to all but admins.  Sub-templates, for the article, gallery, etc. pages, are:
 +
* [[Template:day]]
 
* [[Template:day/article]]
 
* [[Template:day/article]]
 
* [[Template:day/history]]
 
* [[Template:day/history]]
 
* [[Template:day/gallery]]
 
* [[Template:day/gallery]]
* [[Template:day/image]] - not currently in use
+
* [[Template:day/image]]
* [[Template:day/video]] - not currently in use
+
* [[Template:day/video]]
 
<h2>Current Appearance:</h2>
 
<h2>Current Appearance:</h2>
</noinclude>
+
</noinclude><includeonly>__NOEDITSECTION__</includeonly>
 
<!-- make the table to scroll through the days -->
 
<!-- make the table to scroll through the days -->
 
{| width="100%"
 
{| width="100%"
Line 14: Line 15:
 
<!-- call the other pages -->
 
<!-- call the other pages -->
 
== [[{{PAGENAME}}/article|Featured Article]] ==
 
== [[{{PAGENAME}}/article|Featured Article]] ==
{{:{{PAGENAME}}/article}}
+
{{#ifexist:{{PAGENAME}}/article|{{:{{PAGENAME}}/article}}|{{AOTD missing}}[[category:Dates without featured articles]]}}
 
+
== [[{{PAGENAME}}/history|On this day]] ==
== [[{{PAGENAME}}/events|On this day]] ==
+
 
{{:{{PAGENAME}}/history}}
 
{{:{{PAGENAME}}/history}}
 
 
== [[{{PAGENAME}}/gallery|Today in pictures]] ==
 
== [[{{PAGENAME}}/gallery|Today in pictures]] ==
 
{{:{{PAGENAME}}/gallery}}
 
{{:{{PAGENAME}}/gallery}}
 
+
{| class="wikitable" align="center" width="840" cellpadding="10"
=== [[{{PAGENAME}}/image|Featured Image]] ===
+
! [[{{PAGENAME}}/image|Featured Image]] !! [[{{PAGENAME}}/video|Featured Video]]
{{:{{PAGENAME}}/image}}
+
|- align="center" valign="top"
 
+
| width="420"| {{:{{PAGENAME}}/image}}
=== [[{{PAGENAME}}/video|Featured Video]] ===
+
| width="420"| {{:{{PAGENAME}}/video}}
{{:{{PAGENAME}}/video}}
+
|}
  
 
{{#if:{{{sort|}}} |
 
{{#if:{{{sort|}}} |
 
{{DEFAULTSORT:{{{sort}}}}}
 
{{DEFAULTSORT:{{{sort}}}}}
 
}}
 
}}
[[category:{{{month}}}| ]]<noinclude>
+
[[category:{{{month}}}]]<noinclude>
  
 
== Usage ==
 
== Usage ==
Line 40: Line 39:
 
|tomorrow=  
 
|tomorrow=  
 
|month=  
 
|month=  
|sort=
 
 
}}
 
}}
 +
<noinclude>{{DEFAULTSORT:}}</noinclude><noinclude>
 
</pre>
 
</pre>
 
;Parameters
 
;Parameters
Line 47: Line 46:
 
* '''tomorrow''' &mdash; the next date.
 
* '''tomorrow''' &mdash; the next date.
 
* '''month''' &mdash; the month.
 
* '''month''' &mdash; the month.
* '''sort''' &mdash; the value to be given to the <nowiki>{{DEFAULTSORT:}}</nowiki> key.  Only used to provide a leading zero to the first nine days of a month.  Eg., June 4 is June 04.  For 2-digit dates, leave blank.
+
* '''sort''' &mdash; '''[not currently used]''' the value to be given to the <nowiki>{{DEFAULTSORT:}}</nowiki> key.  Only used to provide a leading zero to the first nine days of a month.  Eg., June 4 is June 04.  For 2-digit dates, leave blank.
  
 
== Potential changes ==
 
== Potential changes ==
Line 56: Line 55:
 
| {{:{{PAGENAME}}/image}} || {{:{{PAGENAME}}/video}}
 
| {{:{{PAGENAME}}/image}} || {{:{{PAGENAME}}/video}}
 
|}
 
|}
 +
: '''UPDATE:''' implemented 11/26/13
  
 
== Subpages ==
 
== Subpages ==
{{Special:PrefixIndex/Template:Day:Subpages/}}
+
{{Special:PrefixIndex/Template:Day/}}
 
[[category:front page templates]]
 
[[category:front page templates]]
 
[[category:page layout templates]]
 
[[category:page layout templates]]
 
[[category:Format templates]]
 
[[category:Format templates]]
 
{{permalock}}
 
{{permalock}}
<noinclude>
+
</noinclude>

Latest revision as of 12:51, 29 June 2015

This template is intended for use in standardizing all date pages. See GP:guidelines for more details. Because it is a high-use template, it is locked to all but admins. Sub-templates, for the article, gallery, etc. pages, are:

Current Appearance:

[[{{{yesterday}}}|<< Previous ({{{yesterday}}})]] [[{{{tomorrow}}}|Next ({{{tomorrow}}}) >>]]

[edit] Featured Article

OOPS!

Well, this is embarrassing.

We don't seem to have an article of the day for this date. Maybe you could help us out and make or suggest one.
(It's fun! trust us.)

Wtf.gif

[edit] On this day

Day/history

[edit] Today in pictures

Day/gallery

Featured Image Featured Video
Day/image Day/video


[[category:{{{month}}}]]

[edit] Usage

Insert the following code into the date page:

{{day
|yesterday= 
|tomorrow= 
|month= 
}}
<noinclude>{{DEFAULTSORT:}}</noinclude><noinclude>
Parameters
  • yesterday — the previous date.
  • tomorrow — the next date.
  • month — the month.
  • sort[not currently used] the value to be given to the {{DEFAULTSORT:}} key. Only used to provide a leading zero to the first nine days of a month. Eg., June 4 is June 04. For 2-digit dates, leave blank.

[edit] Potential changes

Possible featured media layout:

Featured Image Featured Video
Day/image Day/video
UPDATE: implemented 11/26/13

[edit] Subpages

Day/articleDay/galleryDay/history
Day/imageDay/video
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox