Difference between revisions of "Module:Small/doc"

From blackwiki
Jump to navigation Jump to search
test>PHARMATIVE
m (62 revisions imported)
 
(25 intermediate revisions by 16 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
{{High-risk|≈360000}}
+
{{High-risk| 901592 }}
 
{{COinS safe|n}}
 
{{COinS safe|n}}
{{Notice|As of [[Special:Diff/724648585|June 10, 2016]], a rule has been added to MediaWiki:Common.css, so now {{tag|small|o}} consistently renders at a 85% size. This template remains as a convenience wrapper.}}
+
{{Notice|As of [[Special:Diff/724648585|June 10, 2016]], a rule has been added to MediaWiki:Common.css, so now {{tag|small|o}} consistently renders at size that is 85% of the surrounding text. This template remains as a convenience wrapper.}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
  
=[http://www.Pharmative.com www.Pharmative.com]
+
== Usage ==
 +
This template is a replacement for {{tag|small}}.
  
Pharmative, LLC is an online social networking service for patients, scientists and health care professionals which fosters the free exchange of medical information and published scientific data in order to provide education which promote scientific discoveries. Launched in 2016, Pharmative has over 100,000 members as of June 2017. Global members include patients, physicians, nurses, physician assistants, pharmacists, scientists, medical technologists and pharmaceutical professionals. Pharmative is the first social medical network in the United States for patients and healthcare professionals which dedicates it's resources to foster medical education and science. Pharmative provides to it's members scientific information, medical news and messaging to connect and inspire healthcare professionals across our globe.
+
Remember "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections.", per [[MOS:ACCESS#Font size]] and [[MOS:SMALLFONT]]. Use of this template within an infobox produces a font size 75% of the page default, well below the 85% minimum specified in the linked guidelines. <!-- Per [[Wikipedia:Village pump (technical)/Archive 159#Infobox font size]], common text within an infobox is 88% of page default. Therefore use of this template in an infobox yields 74.8% of page default (0.88 * 0.85). -->
  
Contents
+
The only parameter is the content and may contain templates, images, etc. if a block needs to be wrapped in this template and contains such elements.  Note that if the <code>=</code> character appears in the content, the parameter must be explicitly specified as {{para|1}}.
  
    1 Investors
+
Do not use this template to wrap multiple lines; doing so will cause [[Special:LintErrors|Linter]] errors.  If you need to wrap multiple list items or multiple paragraphs, use {{tl|smalldiv}} around the entire block, or wrap each list item or paragraph separately.
    2 External links
 
  
Investors
+
:Thus {{done|Good practice}}
 +
{| class="wikitable"
 +
|-
 +
!input
 +
!shows
 +
|-
 +
| <code><nowiki>What a wonderful world</nowiki></code>
 +
| What a wonderful world
 +
|-
 +
| <code><nowiki>{{small|What a wonderful world}}</nowiki></code>
 +
| {{small|What a wonderful world}}
 +
|-
 +
| <code><nowiki>{{small|1=3 + 2 = 5}}</nowiki></code>
 +
| {{small|1=3 + 2 = 5}}
 +
|-
 +
|<pre>{{small|1=103}}
 +
{{small|1=+ 2}}
 +
——
 +
{{small|1=105}}</pre>
 +
|{{small|1=103}}
  
In 2013, Pharmative was founded by Dr. James S. Partyka, a clinical pharmacist and scientist whose life long mission is to find cures for the treatment of various cancers and to improve supportive care practices. One of Dr. Partyka's major accomplishments includes the European clinical development and regulatory approval of Adcetris (brentuximab vedotin) for the treatment of Hodgkin's lymphoma and anaplastic large cell lymphoma.  Subsequently, Dr. Partyka's interests have broaden to include finding a positive platform for patients, scientists and health care professionals to share information, published scientific data and education materials in order to foster innovations which will contribute to the cures of all human and animal diseases. In November 2016, Pharmative was incorporated by the State of California. 
+
{{small|1=+ 2}}
  
External links
+
——
  
    Pharmative.com
+
{{small|1=105}}
 +
|}
  
Categories:
 
  
    Professional networks; Internet properties; Social networking services; California Companies based in San Francisco; Medical virtual communities; Health care companies of the United States; Software companies based in the San Francisco Bay Area; Technology companies established in 2016
+
{{not done|Don't do this}}:
 +
<pre><nowiki>{{small|
 +
*One
 +
*Two
 +
*Three}}</nowiki></pre>
 +
 
 +
{{done|Do this instead}}:
 +
<pre><nowiki>{{smalldiv|
 +
*One
 +
*Two
 +
*Three}}</nowiki></pre>
  
 
== Template data ==
 
== Template data ==
Line 41: Line 69:
 
}
 
}
 
</templatedata>
 
</templatedata>
 +
 +
== Tracking category ==
 +
* {{clc|Pages using small with an empty input parameter}}
  
 
== See also ==
 
== See also ==
 
{{font size templates}}
 
{{font size templates}}
  
<includeonly>
+
<includeonly>{{sandbox other||
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
+
<!-- TEMPLATE CATEGORIES HERE, THANKS -->
[[Category:Text-specific formatting and function templates|{{PAGENAME}}]]
+
[[Category:Resizing templates|{{PAGENAME}}]]
 
[[Category:Wikipedia XHTML tag-replacing templates]]
 
[[Category:Wikipedia XHTML tag-replacing templates]]
 
+
[[Category:Templates that add a tracking category]]
</includeonly>
+
}}</includeonly>

Latest revision as of 10:24, 6 September 2020

Usage

This template is a replacement for <small>...</small>.

Remember "Avoid using smaller font sizes in elements that already use a smaller font size, such as infoboxes, navboxes and reference sections.", per MOS:ACCESS#Font size and MOS:SMALLFONT. Use of this template within an infobox produces a font size 75% of the page default, well below the 85% minimum specified in the linked guidelines.

The only parameter is the content and may contain templates, images, etc. if a block needs to be wrapped in this template and contains such elements. Note that if the = character appears in the content, the parameter must be explicitly specified as |1=.

Do not use this template to wrap multiple lines; doing so will cause Linter errors. If you need to wrap multiple list items or multiple paragraphs, use {{smalldiv}} around the entire block, or wrap each list item or paragraph separately.

Thus 18px Good practice
input shows
What a wonderful world What a wonderful world
{{small|What a wonderful world}} What a wonderful world
{{small|1=3 + 2 = 5}} 3 + 2 = 5
{{small|1=103}}
{{small|1=+ 2}}
——
{{small|1=105}}
103

+ 2

——

105


18px Don't do this:

{{small|
*One
*Two
*Three}}

18px Do this instead:

{{smalldiv|
*One
*Two
*Three}}

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Small

A template shortcut for the "small" HTML tag that makes the font smaller

Template parameters

ParameterDescriptionTypeStatus
Text1

The text that you'd like to be made smaller

Stringrequired

Tracking category

See also

Font size templates

Code Size Semantics Result
{{small|text}} 85% <small> text
{{smaller|text}} 90% none text
{{resize|text}} 90% none text
{{midsize|text}} 92% none text
none 100% none text
{{larger|text}} 110% none text
{{big|text}} 120% none text
{{large|text}} large none text
{{huge|text}} 180% none text
{{resize|x%}} custom none varies
{{font|size=x%}} custom none varies