Template:CharacterTableStart: Difference between revisions

Added some simple documentation?
(Character Table Start)
 
(Added some simple documentation?)
Line 1: Line 1:
<includeonly>{| border='0' cellspacing='0' style="margin: 1em auto 1em auto; color:white;"
<includeonly>{| border='0' cellspacing='0' style="margin: 1em auto 1em auto; color:white;"
|-</includeonly><noinclude>This template starts a character table</noinclude>
|-</includeonly>
 
<noinclude>
 
This is a simple template to create a character roster suitable for use in a User page.
 
{{CharacterTableStart}}
{{CharacterHeader|'''Main Character/s'''}}
{{CharacterListing|Lieutenant Commander|Example||Slanted|Constitution|Tactical|Active}}
{{CharacterListing|Lieutenant Commander|Example||DS9|DSX|Command|Inactive}}
{{EndCharacterHeader}}
{{CharacterHeaderNoRound|'''P/NPCs'''}}
{{CharacterListing|Lieutenant|Example|Example|STO|Example|Operations|Active}}
{{CharacterListing|Lieutenant|Example|Example|Slanted|Deep Space 6|Tactical|Inactive}}
{{CharacterListing|Lieutenant JG|Example|Example|Slanted|Constitution|Science|Active}}
{{CharacterListing|Ensign|Example|Test|Slanted|DS6|Tactical|Inactive}}
{{CharacterListing|Civilian|Test||Slanted|Starbase 118|Civilian|Inactive}}
{{CharacterListing|Civilian|Lots of|Examples|Slanted|Starbase 118|Diplomat-White|Inactive}}
{{EndCharacterHeader}}
{{CharacterTableEnd}}
 
In order to create the above all you have to use is the following code:
 
<pre>{{CharacterTableStart}}
{{CharacterHeader|'''Main Character/s'''}}
{{CharacterListing|Lieutenant Commander|Example||Slanted|Constitution|Tactical|Active}}
{{CharacterListing|Lieutenant Commander|Example||DS9|DSX|Command|Inactive}}
{{EndCharacterHeader}}
{{CharacterHeaderNoRound|'''P/NPCs'''}}
{{CharacterListing|Lieutenant|Example|Example|STO|Example|Operations|Active}}
{{CharacterListing|Lieutenant|Example|Example|Slanted|Deep Space 6|Tactical|Inactive}}
{{CharacterListing|Lieutenant JG|Example|Example|Slanted|Constitution|Science|Active}}
{{CharacterListing|Ensign|Example|Test|Slanted|DS6|Tactical|Inactive}}
{{CharacterListing|Civilian|Test||Slanted|Starbase 118|Civilian|Inactive}}
{{CharacterListing|Civilian|Lots of|Examples|Slanted|Starbase 118|Diplomat-White|Inactive}}
{{EndCharacterHeader}}
{{CharacterTableEnd}}</pre>
 
{{bluebox|'''Now it does NPC ships!'''
 
Have any NPC ships? Want to display them on your page? Now you can simply with the [[Template:NPCShipHeader]] [[Template:NPCShipHeaderNoRound]] row templates! }}
 
{{CharacterTableStart}}
{{NPCShipHeader|'''Ship/s'''}}
{{NPCShipListing|Antares|{{USSwhite|Tell}}|Active}}
{{EndCharacterHeader}}
{{CharacterTableEnd}}
 
<pre>{{CharacterTableStart}}
{{NPCShipHeader|'''Ship/s'''}}
{{NPCShipListing|Antares|{{USSwhite|Tell}}|Active}}
{{EndCharacterHeader}}
{{CharacterTableEnd}}</pre>
 
</noinclude>
2,273

edits