Difference between revisions of "Template talk:Date"

From Stellar Empire
Jump to navigation Jump to search
(Created page with "<noinclude> To use this template, utilize <code>{{date|<em>(int)date</em>}}</code> to display the template. This will link back to the Skywatch...")
 
m
 
Line 9: Line 9:
<tr><th width="15%" style="text-align:left;">Parameter</th><th width="15%" style="text-align:left;">Type</th><th width="20%" style="text-align:left;">Options/Default</th><th colspan="2" width="50%">Example</th></tr>
<tr><th width="15%" style="text-align:left;">Parameter</th><th width="15%" style="text-align:left;">Type</th><th width="20%" style="text-align:left;">Options/Default</th><th colspan="2" width="50%">Example</th></tr>
<tr><td>date</td><td><code>Integer</code></td><td><span class="color:red">Required</span></td><td style="text-align:center;"><code>&lbrace;&lbrace;date|3100&rbrace;&rbrace;</code></td><td style="text-align:center;">{{date|3100}}</td></tr>
<tr><td>date</td><td><code>Integer</code></td><td><span class="color:red">Required</span></td><td style="text-align:center;"><code>&lbrace;&lbrace;date|3100&rbrace;&rbrace;</code></td><td style="text-align:center;">{{date|3100}}</td></tr>
<tr><td>calendar</td><td><code>string</code></td><td>Options: fcc or gu</td><td style="text-align:center;"><code>&lbrace;&lbrace;date|3100|fcc&rbrace;&rbrace;</code></td><td style="text-align:center;">{{date|3100|fcc}}</td></tr>
<tr><td>calendar</td><td><code>string</code></td><td>Options: fcc, gu, ce</td><td style="text-align:center;"><code>&lbrace;&lbrace;date|3100|fcc&rbrace;&rbrace;</code></td><td style="text-align:center;">{{date|3100|fcc}}</td></tr>
<tr><td>show</td><td><code>Boolean</code></td><td>Default: TRUE</td><td style="text-align:center;"><code>&lbrace;&lbrace;date|3100|false&rbrace;&rbrace;</code></td><td style="text-align:center;">{{date|3100|fcc|false}}</td></tr>
<tr><td>show</td><td><code>Boolean</code></td><td>Default: TRUE</td><td style="text-align:center;"><code>&lbrace;&lbrace;date|3100|false&rbrace;&rbrace;</code></td><td style="text-align:center;">{{date|3100|fcc|false}}</td></tr>
</table>
</table>


</noinclude>
</noinclude>

Latest revision as of 15:40, 12 July 2023


To use this template, utilize {{date|(int)date}} to display the template. This will link back to the Skywatch Calendar and link to the year, standardized on the Skywatch Calendar.

Sample
{{date|(int)date|(string)calendar|(boolean)show SY}}

ParameterTypeOptions/DefaultExample
dateIntegerRequired{{date|3100}}SY 3100
calendarstringOptions: fcc, gu, ce{{date|3100|fcc}}FCC 480 (SY 3100)
showBooleanDefault: TRUE{{date|3100|false}}FCC 480