Difference between revisions of "Template: Date"

From A Wiki of Ice and Fire
Jump to: navigation, search
(added option for alternative text and changed the documentation.)
m (or better)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}} |[[Years after Aegon's Landing#Year {{{1}}} after Aegon's Landing|{{{2|{{{1}}} AL}}}]]}}</includeonly><noinclude>
+
<includeonly>{{#if: {{{1|}}} |[[Years after Aegon's Landing#Year {{{1}}} after Aegon's Landing|{{{1}}} {{#if:{{{2|}}}| |AL}}]]<!--
 +
                          -->{{#if:{{{2|}}}| - <!--
 +
                          -->[[Years after Aegon's Landing#Year {{{2}}} after Aegon's Landing|{{{2}}}]] AL}} }}</includeonly><noinclude>
  
 
This template will create a link to [[Years after Aegon's Landing]] page and the relevant section inside. It should speed up the editing process and make the text more readable when editing.
 
This template will create a link to [[Years after Aegon's Landing]] page and the relevant section inside. It should speed up the editing process and make the text more readable when editing.
Line 5: Line 7:
 
===Example use:===
 
===Example use:===
 
* <code><nowiki>{{Date|#}}</nowiki></code> - where # , denotes the number of the year, ranging from 1 to 301(as of now)
 
* <code><nowiki>{{Date|#}}</nowiki></code> - where # , denotes the number of the year, ranging from 1 to 301(as of now)
* <code><nowiki>{{Date|#|alternative text}}</nowiki></code>
+
* <code><nowiki>{{Date|from #| to #}} </nowiki></code>
  
 
Alternatively you can create the link manually like this: <code><nowiki>[[Years after Aegon's Landing#Year 233 after Aegon's Landing|233 AL]]</nowiki></code>
 
Alternatively you can create the link manually like this: <code><nowiki>[[Years after Aegon's Landing#Year 233 after Aegon's Landing|233 AL]]</nowiki></code>

Revision as of 10:03, 16 December 2011


This template will create a link to Years after Aegon's Landing page and the relevant section inside. It should speed up the editing process and make the text more readable when editing.

Example use:

  • {{Date|#}} - where # , denotes the number of the year, ranging from 1 to 301(as of now)
  • {{Date|from #| to #}}

Alternatively you can create the link manually like this: [[Years after Aegon's Landing#Year 233 after Aegon's Landing|233 AL]]

See also