Difference between revisions of "Template:Day/history"

From Gunsopedia
Jump to: navigation, search
(Usage)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
A template intended to standardize compiling historical data for individual dates.</noinclude>
+
A template intended to standardize compiling historical data for individual dates.
 +
* [[Template:day]]
 +
* [[Template:day/article]]
 +
* [[Template:day/history]]
 +
* [[Template:day/gallery]]
 +
* [[Template:day/image]]
 +
* [[Template:day/video]]</noinclude>
 
{| class="wikitable" width="100%"
 
{| class="wikitable" width="100%"
 
! style="background:#9BCD9B; border:1px solid green"| <div style="float:right"><small><nowiki>[</nowiki>[[{{{date}}}|more]]<nowiki>]</nowiki></small></div>What else happened today
 
! style="background:#9BCD9B; border:1px solid green"| <div style="float:right"><small><nowiki>[</nowiki>[[{{{date}}}|more]]<nowiki>]</nowiki></small></div>What else happened today
Line 10: Line 16:
 
<includeonly><noinclude></includeonly>{{DEFAULTSORT:{{{sort}}}/history}}<includeonly></noinclude></includeonly>
 
<includeonly><noinclude></includeonly>{{DEFAULTSORT:{{{sort}}}/history}}<includeonly></noinclude></includeonly>
 
}}
 
}}
[[category:{{{month}}}| ]]
+
{{#ifeq:{{FULLPAGENAME}}|{{BASEPAGENAME}}/history|[[category:{{{month}}}]]}}<noinclude>
<noinclude>
+
  
 
== Usage ==
 
== Usage ==
Line 21: Line 26:
 
|content=  
 
|content=  
 
}}
 
}}
<noinclude>{{DEFAULTSORT:}}</noinclude>
+
<noinclude>{{DEFAULTSORT:}}</pre>
<noinclude></pre>
+
 
; Parameters
 
; Parameters
 
* '''date''' &mdash; the full date; eg. ''June 7''
 
* '''date''' &mdash; the full date; eg. ''June 7''

Latest revision as of 18:52, 29 June 2015

A template intended to standardize compiling historical data for individual dates.

[[[{{{date}}}|more]]]
What else happened today

Nothing, apparently. Maybe you know [[{{{date}}}/history|something that happened]] today...?


[edit] Usage

This template should only be used in a page with a <date>/history title in the MAIN namespace. Add the following code to the page:

{{day/history
|date= 
|month= 
|content= 
}}
<noinclude>{{DEFAULTSORT:}}
Parameters
  • date — the full date; eg. June 7
  • month — exactly what it says on the tin
  • 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 7 is June 07. For 2-digit dates, leave blank. (not working as of 4/23/13)
  • content — the events of the day in unordered list format:
* '''[[year]]''' — <event>
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox