Category:Award Display Templates: Difference between revisions

documentation, part 2.
(documentation, part 1.)
(documentation, part 2.)
Line 7: Line 7:
This page will tell you how to create your very own awards display with collapsible tables.
This page will tell you how to create your very own awards display with collapsible tables.


===The creator==
==To Create==


To start the template out, replace the placeholders with your name. After this example, we will explain the options.
To start the template out, replace the placeholders with your name. After this example, we will explain the options.
Line 21: Line 21:
</pre>
</pre>


If you want it to be collasped, you can leave COLLAPSED off, but if you put no or n, it will not be collasped on the first line.
If you want it to be collapsed, you can leave COLLAPSED off, but if you put no or n, it will not be collapsed on the first line.


{{bluebox|Usage for AwardHeader:
{| cellspacing="3" width="80%"
<br>
|- valign="top"
|bgcolor="beige" style="border:1px solid darkgreen; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|
===Usage for AwardHeader===
*The stardate of the award goes first<br>
*The stardate of the award goes first<br>
*The second variable is the name of the ship. You can use the <nowiki>{{USS|Shipname|Suffix}}</nowiki> format, or you can just put USS-Shipname-A. *For Starbase 118 Ops, the Embassy or any other installation, a link will need to be inserted in wikicode.<br>
*The second variable is the name of the ship. You can use the <nowiki>{{USS|Shipname|Suffix}}</nowiki> format, or you can just put USS-Shipname-A. *For Starbase 118 Ops, the Embassy or any other installation, a link will need to be inserted in wikicode.<br>
*The last variable is the presenter of the award.<br>
*The last variable is the presenter of the award.<br>
}}
|}




Usage for AwardRow:
{| cellspacing="3" width="80%"
<br>
|- valign="top"
|bgcolor="beige" style="border:1px solid darkgreen; padding:1em; padding-top:0.5em; padding-bottom:0em; color: black;"|
===Usage for AwardRow===
*The first parameter is the name of the ribbon. Use the name from [[Template: Ribbons]] here.<br>
*The first parameter is the name of the ribbon. Use the name from [[Template: Ribbons]] here.<br>
*The second parameter is the description or link.<br>
*The second parameter is the description or link.<br>
<br>
*Use NUM= if you have received the citation more than once. (Up to 11. If you've gotten something 12 times, you'll need to start displaying it again.)<br>
*Use NUM= if you have recieved the citation more than once. (Up to 11. If you've gotten something 12 times, you'll need to start displaying it again.)<br>
*USE ROWSPAN= if you received multiple citations in one sim. Only specify this on the '''first''' citation. '''Do not specify it on the citations after the first.'''
*USE ROWSPAN= if you recieved multiple citations in one sim. Only specify this on the '''first''' citation. '''Do not specify it on the citations after the first.'''
|}
 
 
==Example==
 
And here's the example in code.
 
{{AwardDisplayTable|NAME=Aenia Kthia|COLLAPSED=n
|{{AwardTable|TITLE=Service Awards
|{{AwardHeader|328007.12|{{USS|Blenheim|X}}|Fleet Commodore Ka'reitha Aronfast}}
|{{AwardRow|Innovation Ribbon|Pomp and Circumstance, Part II|ROWSPAN=2}}
|{{AwardRow|Explorer's Ribbon|NUM=11|DISP=Explorer's Ribbon (11th Citation)}}
}}
}}
7,850

edits