STO Awakening.jpg

Template:Doffsbytrait

From Star Trek Online Wiki
Jump to: navigation, search
The following documentation is transcluded from Template:Doffsbytrait/doc (edit):

This template generates a table of duty officers that have the given trait. Duty officers will show up if they have a page in the wiki, the page uses {{Doffpage}} (as all duty officer pages generated by Form:Duty officer do), and the trait is correctly entered.

The table rows are generated by {{Doffsbytraitrow}}.

This template uses a slight hack to pass the queried trait to {{Doffsbytraitrow}} as a parameter. This is the last printout statement in the query that checks if the officer is in Category:Duty officers, which all should be.

Usage:

{{Doffsbytrait|trait name}}

The trait name has to be in the format of the wiki page name.