Rootsmagic helps you format citations in accordance with the book Evidence Explained. It gives you fields to fill in and then formats it automatically for you. But now that I'm familiar with the format I can do them manually as well. For any website with search results and records and I can use this format:
Database Author, "Database Title," item type, e.g. database with images, Creator or Owner of the Website, Title of Website (Website URL : [AccessDate] ), [ItemOfInterest]; citing Credit Line, e.g. source of the source.
Often Database Author, Creator/Owner and Title of the Website are all the same, e.g. Ancestry.com or FamilySearch.org - that seems to be sufficient. But for something like ScotlandsPeople, it may not be clear that it is private or government owned, so I add info to clarify that. And Credit Line is usually only important when it is a private company using a public record, for instance Ancestry citing a government repository for census records. The items in square brackets will be different for every entry, depending on the specific record. This is where I would add the name, date, location, etc. - the information you need to search for the record.
Some people here on Wikitree would like to see the URLs take you directly to the image or search result you are citing, but I usually don't do this, partly because I am not including this info in my Rootsmagic sources and would need to go back to the website, and also because it makes the URLs very long and messy in the citation. I think providing the link to the main website and enough information to find it with a search is sufficient.
Hope that helps!