Difference between revisions of "Template:Expeditions"

From Geohashing
imported>Tjtrumpet2323
m
imported>Tjtrumpet2323
m
Line 1: Line 1:
<includeonly>{{ #ifexist: Template:Expeditions/{{{1}}}
+
<includeonly>{{ #ifexist: {{{1}}}
| <table class="infobox" cellspacing="5" style="text-align: left; width: 30em; font-size: 88%; line-height: 1em; border: 1px solid #0c0; background-color: #dfd; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;"><tr><td>[http://wiki.xkcd.com/wgh/index.php?title=Template:Expeditions/{{{1}}}&action=edit Add your own expedition for '''{{ #time: l j F | {{{1}}} }}'''.]</td></tr></table>{{Expeditions/{{{1}}} }}
+
| == {{date link|{{{1}}}}} ==
 +
<table class="infobox" cellspacing="5" style="text-align: left; width: 30em; font-size: 88%; line-height: 1em; border: 1px solid #0c0; background-color: #dfd; color: black; margin: 0.5em 0 0.5em 1em; padding: 0.2em; float: right; clear: right;"><tr><td>[http://wiki.xkcd.com/wgh/index.php?title={{{1}}}&action=edit Add your own expedition for '''{{ #time: l j F | {{{1}}} }}'''.]</td></tr></table>
 +
{{:{{{1}}}}} }}
 
| <table class="infobox" cellspacing="5" style="text-align: left; width: 30em; font-size: 88%; line-height: 1em; border: 1px solid #f66; background-color: #fdd; color: black; margin: 0.5em 1em 0.5em 0; padding: 0.2em; clear: left;">
 
| <table class="infobox" cellspacing="5" style="text-align: left; width: 30em; font-size: 88%; line-height: 1em; border: 1px solid #f66; background-color: #fdd; color: black; margin: 0.5em 1em 0.5em 0; padding: 0.2em; clear: left;">
<tr><td>[http://wiki.xkcd.com/wgh/index.php?title=Template:Expeditions/{{{1}}}&action=edit Start the section for '''{{ #time: l j F | {{{1}}} }}'''.]</td></tr></table>
+
<tr><td>[http://wiki.xkcd.com/wgh/index.php?title={{{1}}}&action=edit Start the page for '''{{ #time: l j F | {{{1}}} }}'''.]</td></tr></table>
 
}}</includeonly><noinclude>== Usage ==
 
}}</includeonly><noinclude>== Usage ==
 
<code><nowiki>{{Expeditions|2008-05-28}}</nowiki></code>
 
<code><nowiki>{{Expeditions|2008-05-28}}</nowiki></code>

Revision as of 14:22, 13 June 2008

Usage

{{Expeditions|2008-05-28}}

  • For use on Main Page and in the Expedition Archives, such as 2008-05.
    • Date parameter must be in form YYYY-MM-DD.
  • For use on date pages, such as 2008-05-28.
    • Use {{Expeditions|2008-05-28|datepage}} on a date page to generate the proper heading.