Template:St.com/doc
This is a documentation subpage for Template:St.com. It contains usage information, categories and other content that is not part of the original template page. |
Usage[edit source]
This template is used to link to the StarTrek.com website entries as inline links to be used for references. An initial variable is required giving the end path to the article in question, and a second variable can be used to alter the linking text. If the second variable is left blank, then the link will use the default numbering system created by the Wiki in the article.
The "end path" to the article is the portion of text in the URL following "database_article/".
For example, Chang would have a template call such as:
{{st.com|chang-general}}
This would produce:
If other link text is desired, such as "General Chang", the following format should be used:
{{st.com|chang-general|General Chang}}
This would produce:
Leaving the second parameter blank as such:
{{st.com|chang-general|}}
This would produce:
A third parameter can be passed to change the path from the standard "database_article" path used on StarTrek.com for links to interviews or other such articles:
{{st.com|catching-up-with-star-trek-writer-mike-sussman|Interview with Mike Sussman|article}}
This would produce:
Again, without the second parameter, but with the third parameter to be used as a reference:
{{st.com|catching-up-with-star-trek-writer-mike-sussman||article}}
This would produce:
See also[edit source]
- {{startrek.com}}
External links[edit source]
- Template:St.com/doc at Wikipedia, the free Terran-based encyclopedia that anyone can edit.