Difference between revisions of "Template: Date"

From A Wiki of Ice and Fire
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}} |[[Years after Aegon's Landing#Year {{{1}}} after Aegon's Landing|{{{1}}}{{#if:{{{2|}}}|| AC}}]]<!--
+
<includeonly>{{#if: {{{1|}}} |[[Years after Aegon's Conquest#Year {{{1}}} after Aegon's Conquest|{{{1}}}{{#if:{{{2|}}}|| AC}}]]<!--
 
                           -->{{#if:{{{2|}}}|-<!--
 
                           -->{{#if:{{{2|}}}|-<!--
                           -->[[Years after Aegon's Landing#Year {{{2}}} after Aegon's Landing|{{{2}}}]] AC}} }}</includeonly><noinclude>
+
                           -->[[Years after Aegon's Conquest#Year {{{2}}} after Aegon's Conquest|{{{2}}}]] AC}} }}</includeonly><noinclude>
  
 
This template will create a link to [[Years after Aegon's Conquest]] page and the relevant section inside, in the proper format needed. 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 Conquest]] page and the relevant section inside, in the proper format needed. It should speed up the editing process and make the text more readable when editing.
Line 12: Line 12:
  
 
Alternatively you can create the [[Help:Links|link]] manually like this:
 
Alternatively you can create the [[Help:Links|link]] manually like this:
  <code><nowiki>[[Years after Aegon's Landing#Year 233 after Aegon's Landing|233 AL]]</nowiki></code>
+
  <code><nowiki>[[Years after Aegon's Conquest#Year 233 after Aegon's Conquest|233 AC]]</nowiki></code>
  
 
[[Category:Cross-reference templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Cross-reference templates|{{PAGENAME}}]]</noinclude>

Revision as of 11:44, 22 April 2014


This template will create a link to Years after Aegon's Conquest page and the relevant section inside, in the proper format needed. 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 Conquest#Year 233 after Aegon's Conquest|233 AC]]