Jump to content

User:Permstrump/Tutorials

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Permstrump (talk | contribs) at 18:20, 18 March 2016 (Collapsible list: cot/cob). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

List and table templates

Category:List formatting and function templates

Glossary templates

Template:Defn/doc

Glossary template

Example:

{{term|1=aspirin}}
{{defn|1=A mild analgesic of the non-steroidal anti-inflammatory drug (NSAID) family...}}
{{term|1=heroin}}
{{term|1=diacetylmorphine |multi=y}}
{{term|1=diamorpine |multi=y}}
{{defn|1=A synthetic narcotic drug of the opiate family...}}
{{term|1=ranitidine}}
{{defn|1=An antacid of the proton pump inhibitor family...}}

Result

Result: vs. no |multi=y
aspirin
A mild analgesic of the non-steroidal anti-inflammatory drug (NSAID) family...
heroin
diacetylmorphine
diamorpine
A synthetic narcotic drug of the opiate family...
ranitidine
An antacid of the proton pump inhibitor family...
aspirin
A mild analgesic of the non-steroidal anti-inflammatory drug (NSAID) family...
heroin
diacetylmorphine
diamorpine
A synthetic narcotic drug of the opiate family...
ranitidine
An antacid of the proton pump inhibitor family...
Term definition

Basic usage:

{{glossary}}

{{term|1=term}}
{{defn|1=Definition.}}

{{glossary end}}


Linking to the term:

{{term}} automatically creates anchors from the original term (|term= or |1=) or |id= value, as entered, and an all-lower-case version. About 90% of the links to glossary entries are going to be mid-sentence, and will expect to start with a lower-case letter, except for proper names. If your glossary has a case where one entry and another share the same name except for case, the second one must be given a unique |id=:

 {{term|term=Foo}}
{{term|term=foo|id=foo (2)}}

Collapsible list

Green:

{{cob|TITLE}}
{{cot}} 

Syntax




Parameters
expand Include as |expand=on, |expand=true, etc to set the list's default state to expanded rather than collapsed.
framestyle Custom CSS styling applied the template overall (title and list).
titlestyle Custom CSS styling applied to the title.
title The list's title (always on view beside the list's [show/hide] link).
liststyle Custom CSS styling applied to the list (specifically, to the <ul>...</ul> tags delimiting the list).
hlist Include as |hlist=on, |hlist=true, etc to produce a horizontal rather than vertical list.
bullets Include as |bullets=on, |bullets=true, etc to place a bullet point before each list item.
Unnamed parameters
(first, second, third...)
The list items (in the order in which they will appear). If none are supplied, the template outputs nothing.

Talkpage templates

WP:Signatures

Image with comment templates
Favs
Tag Renders Tag Renders
{{Autp}} Answered on user's talk page. {{Duck}}  Looks like a duck to me
{{Like}} 👍 Like {{Dislike}} Dislike
{{Done}}  Done {{Done-t}}  Done
{{Great}} thumbs up Great! {{Not sure}} Not sure
{{Orz}} Orz... {{WPcrystalball}}  Wikipedia is not a crystal ball.
{{Suggestion}} question mark Suggestion {{ToDo}}  ToDo
{{Thank}}  Thanks {{You're welcome}} Smiley You're welcome!
{{Thank you very much}}  Thank you very much! {{Sorry}} Smiley Sorry!

Lists

* WP:List of discussion templates * WP:Talk page templates * WP:Template messages ** WP:Template messages#Talk namespace ** WP:Template messages#User namespace * WP:Template namespace * WP:Citation templates * WP:Template messages#General * Category:Image with comment templates

Lists of lists

Category:Wikipedia templates * Category:Wikipedia templates by style ** Category:List templates * Category:Wikipedia templates by task * Category:Wikipedia templates by topic