Difference between revisions of "Template:Day"

From Gunsopedia
Jump to: navigation, search
Line 3: Line 3:
 
* [[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><includeonly>__NOEDITSECTION__</includeonly>
 
</noinclude><includeonly>__NOEDITSECTION__</includeonly>
Line 38: Line 38:
 
|sort=  
 
|sort=  
 
}}
 
}}
</pre>
+
<noinclude>{{DEFAULTSORT:{{{sort}}}}}</noinclude>
 +
</pre><noinclude>
 
;Parameters
 
;Parameters
 
* '''yesterday''' &mdash; the previous date.
 
* '''yesterday''' &mdash; the previous date.
Line 59: Line 60:
 
[[category:Format templates]]
 
[[category:Format templates]]
 
{{permalock}}
 
{{permalock}}
<noinclude>
+
</noinclude>

Revision as of 09:48, 5 June 2013

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}}}) >>]]

Featured Article

Day/article

On this day

Day/history

Today in pictures

Day/gallery

Featured Image

Day/image

Featured Video

Day/video


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

Usage

Insert the following code into the date page:

{{day
|yesterday= 
|tomorrow= 
|month= 
|sort= 
}}
<noinclude>{{DEFAULTSORT:{{{sort}}}}}</noinclude>
Parameters
  • yesterday — the previous date.
  • tomorrow — the next date.
  • month — the month.
  • sort — 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.

Potential changes

Possible featured media layout:

Featured Image Featured Video
Day/image Day/video

Subpages

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox