Template:RoundTable: Difference between revisions

From 118Wiki
Jump to navigation Jump to search
m (→‎Example: typo)
(→‎Example: adding directions)
Line 4: Line 4:
<noinclude>==Directions==
<noinclude>==Directions==
Used with [[Template:RTRosterSect]] and [[Template:RTREntry]] to make rosters.
Used with [[Template:RTRosterSect]] and [[Template:RTREntry]] to make rosters.
==Directions==
<pre>{{RoundTable|Title|Color|
{{RTRosterSect|DivisionTitle|Color|
{{RTREntry|FirstName|LastName|Rank|Post|Color|PipStyle}}|<--repeat as many times as needed.
}}<--this closes RTRosterSect Template,
repeat "{{RTRosterSect..." to start a new
section, using "{{RTREntry..." as above.
}}<--this closes RoundTable Template.</pre>
==Example==
==Example==
<pre>{{RoundTable|''USS Ronin'' Roster|
{{RTRosterSect|Command|Red|
{{RTREntry|Benjamin|Walker|Captain|Commanding Officer|Red|FC}}|
{{RTREntry|Jackford B.|Kolk|Commander|First Officer|Red|FC}}}}|
{{RTRosterSect|Science|Navy|
{{RTREntry|Orsisius|Kizito|Ensign|Science Officer|Navy|FC}}|
{{RTREntry|James T.|Kolk|Ensign|Science Officer|Navy|FC}}
}}
}}</pre>
gives you this:
{{RoundTable|''USS Ronin'' Roster|{{RTRosterSect|Command|Red|{{RTREntry|Benjamin|Walker|Captain|Commanding Officer|Red|FC}}|{{RTREntry|Jackford B.|Kolk|Commander|First Officer|Red|FC}}}}|{{RTRosterSect|Science|Navy|{{RTREntry|Orsisius|Kizito|Ensign|Science Officer|Navy|FC}}|{{RTREntry|James T.|Kolk|Ensign|Science Officer|Navy|FC}}}}
{{RoundTable|''USS Ronin'' Roster|{{RTRosterSect|Command|Red|{{RTREntry|Benjamin|Walker|Captain|Commanding Officer|Red|FC}}|{{RTREntry|Jackford B.|Kolk|Commander|First Officer|Red|FC}}}}|{{RTRosterSect|Science|Navy|{{RTREntry|Orsisius|Kizito|Ensign|Science Officer|Navy|FC}}|{{RTREntry|James T.|Kolk|Ensign|Science Officer|Navy|FC}}}}
}}
}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 10:26, 1 September 2014

Directions

Used with Template:RTRosterSect and Template:RTREntry to make rosters.

Directions

{{RoundTable|Title|Color|
{{RTRosterSect|DivisionTitle|Color|
{{RTREntry|FirstName|LastName|Rank|Post|Color|PipStyle}}|<--repeat as many times as needed.
}}<--this closes RTRosterSect Template,
 repeat "{{RTRosterSect..." to start a new
 section, using "{{RTREntry..." as above.
}}<--this closes RoundTable Template.

Example

{{RoundTable|''USS Ronin'' Roster|
{{RTRosterSect|Command|Red|
{{RTREntry|Benjamin|Walker|Captain|Commanding Officer|Red|FC}}|
{{RTREntry|Jackford B.|Kolk|Commander|First Officer|Red|FC}}}}|
{{RTRosterSect|Science|Navy|
{{RTREntry|Orsisius|Kizito|Ensign|Science Officer|Navy|FC}}|
{{RTREntry|James T.|Kolk|Ensign|Science Officer|Navy|FC}}
}}
}}

gives you this:

USS Ronin Roster
Command
Rank Character Name Current Post
FC-06-Capt-Red.png
Captain Benjamin Walker Commanding Officer
FC-05-Cmdr-Red.png
Commander Jackford B. Kolk First Officer
Science
Rank Character Name Current Post
FC-01-Ens-Navy.png
Ensign Orsisius Kizito Science Officer
FC-01-Ens-Navy.png
Ensign James T. Kolk Science Officer