Help:SFSI Specific Templates
From SFSI
Contents |
Templates used in regular pages
Some templates that may make your life easier when editing articles. There are a set of special templates below for managing resources...
| Name of Template | When to use |
|---|---|
| Delete | Occasionally files need to be removed. Since most of us can't do that, just use the Delete template and it will be taken care. |
| Stub | Use as an invitation to help complete an obviously unfinished page. |
Templates used on the Main Page
The main page has a lot of weird formatting on it in order to make things look a bit prettier than the normal mediawiki linear article. In order to separate the content from the formatting (i.e. to make it easy for non-wiki-gurus to edit the text on the main page without needing to know how the formatting works), most of the content is stored in separate templates. If one tries to edit the main page, down at the bottom of the window, you'll see a list of templates the main page includes. Please change your text in there.
Since the main page is protected with cascading protections, any template that appears in the main page is also locked against edits by mortals. If you need a change, talk to one of the local wiki sysops.
An incomplete list (see the actual page source for the complete list):
- Template:Main Page banner
- Template:Support our work
- Template:Ask us by email
- Template:Ask us by phone
- Template:Volunteering
- Template:Upcoming Training/next
Templates for Resource management
Template:Resource
Every external resource, be it a book, website, clinic, hotline, or whatever, should be given its own page on this wiki. Each of these pages should start with a resource template that is used to tag and specify common information we like to track on resources. Resource pages may have information following the resource template.
{{Resource
| name = <name of the resource>
| tags = <categories this resource should fall into (e.g. Transgender, Anal Sex, Clinics, Local, Hotlines)>
| description =
| url =
| isbn = <isbn number for books (links to Amazon.com and pays us)> --or-- use asin= for amazon links for non-books (e.g. DVDs)
| author =
| publisher =
| address =
| email =
| hours =
| phone =
| phone1 =
| phone2 =
| phone3 =
| phone4 =
}}
- Every parameter except for "name" is optional
- If "url" is specified, "name" becomes an external link
- ASIN is the Amazon product identifier. It should be used with anything other than books. You should add the item to a category like Videos if you use this.
- Use ISBN for books, ISBN will automatically also add the resource to the Books category and implies also that the resource has an ASIN.
Template:Book
This template is used to refer to a book's resource page. It will indirectly generate a short book citation with a hyperlink pointing to the page with more information on the book.
It takes on a single parameter, which is the name of the wiki page to display.
{{Book|<book's page>}}
Template:ResourceCategory
This template is the basis for our resource category pages. Rather than use standard wikipedia category pages which just list the name of the pages tagged with a particular category, we'd like to get the actual resources onto a single page so it's easy for users to quickly scan through the resources and their descriptions.
This template is responsible for generating that single page including all of the resources matching a particular tag.
It requires a second template Template:Resource nocat to do the actual formatting of each resource entry.
It uses dynamic page lists to create a single page of resources instead of listing off a list of page names the way a normal category page would. It takes on a single parameter, which is the category of pages to display.
{{ResourceCategory|<category (aka tag)>}}
Template:Resource nocat
This template controls what in the resource template is displayed and how it is displayed on a resource category page.
It is not meant to be called directly by mere mortals, rather it's used in a quasi-recursive fashion via Template:ResourceCategory through the magic of DPL. DO NOT USE IT DIRECTLY
This template's "working code" should be an exact mirror of the resource template code, except that it does not actually generate the category tags that the resource template does (thus explaining how it got named).
Template:Resource bookcite
When called through a DPL substitution, this template displays a short cite for a book based resource. If you click on the hyperlink, it will take you to the full page for the particular book.
This template is not intended to be called by mere mortals, it's for use in creating DPL article pages when called by Template:Book. DO NOT USE IT DIRECTLY