# User:Guy vandegrift/Editorial tricks

### Editing tools

{{REVISIONID}}=1939688 .. Titleparts:User:Guy vandegrift . User:Guy vandegrift/Editorial tricks . User:Guy vandegrift/Editorial tricks

{{TOC limit|2}} {{Citation needed}} {{tl2|Cite journal}}

better way to break: <wbr>  (contains nbsp)

See w:Wikipedia:Advanced text formatting and w:User:Guy vandegrift/sandbox (w:Editorial tricks)

International Phonetic Alphabet - SIL
International Phonetic Alphabet - X-SAMPA
Use native keyboardCTRL+M ...Which do I want?

#### numbered equations

${\displaystyle E=mc^{2}}$

(G5)

a

(b)

h

## Help pages

### Text and transclusion

#### Printing beyond the window


38-Newfunction: row1: {<!--c24ElectromagneticWaves_displacementCurrent_2-->A circlular capactitor of radius  3.2 m has a gap of 13 mm, and a charge of 49 μC.  Compute the surface integral  $c^{-2}\oint\vec E\cdot d\vec A$ over an inner face of the capacitor.}
38-Newfunction: row3: {<!--AstroApparentRetroMotion_7--> If a planet that is very, very far from the Sun begins a retrograde, how many months must pass before it begins the next retrograde?  }
38-Newfunction: row4: {<!--AstroGalileanMoons_5-->Immediately after publication of Newton's laws of physics (Principia), it was possible to "calculate" the mass of Jupiter.  What important caveat applied to this calculation?   }
38-Newfunction: row5: {<!--AstroLunarphasesAdvancedB_53-->At 6pm a waning crescent moon would be}
38-Newfunction: row6: {<!--c22Magnetism_ampereLawSymmetry_3-->H is defined by, B=μ<sub>0</sub>H, where B is magnetic field. A current of 84A passes along the z-axis.  Use symmetry to find the integral, $\int \vec H\cdot\vec{d\ell}$, from the point {{nowrap begin}}(0,9.3){{nowrap end}} to the point {{nowrap begin}}(9.3,9.3){{nowrap end}}.}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Curabitur pretium tincidunt lacus. Nulla gravida orci a odio. Nullam varius, turpis et commodo pharetra, est eros bibendum elit, nec luctus magna felis sollicitudin mauris. Integer in mauris eu nibh euismod gravida. Duis ac tellus et risus vulputate vehicula. Donec lobortis risus a elit. Etiam tempor. Ut ullamcorper, ligula eu tempor congue, eros est euismod turpis, id tincidunt



#### Textfiles

fprintf(fout,'%s\n','text');

#### Centered and right margined text

center:
<div class="center" style="width: auto; margin-left: auto; margin-right: auto;">text</div>
center small:
<div class="center" style="width: auto; margin-left: auto; margin-right: auto;">text</div>
right:
<div style="text-align: right; direction: ltr; margin-left: 1em;">text</div>
right small:
<div style="text-align: right; direction: ltr; margin-left: 1em;">text</div>



#### Transclusion

See below for actual templates for copy/paste

## Multiple equations[1]

${\displaystyle {\begin{matrix}u&={\tfrac {1}{\sqrt {2}}}(x+y)\qquad &x&={\tfrac {1}{\sqrt {2}}}(u+v)\\v&={\tfrac {1}{\sqrt {2}}}(x-y)\qquad &y&={\tfrac {1}{\sqrt {2}}}(u-v)\end{matrix}}}$

\begin{align} u & = \tfrac{1}{\sqrt{2}}(x+y) \qquad & x &= \tfrac{1}{\sqrt{2}}(u+v) \\ v & = \tfrac{1}{\sqrt{2}}(x-y) \qquad & y &= \tfrac{1}{\sqrt{2}}(u-v) \end{align}


### arrays1

${\displaystyle \left[{\begin{array}{c|c}x-2\sigma &\sigma &0\\\hline 2\sigma &-2\sigma -\beta \epsilon &\beta \epsilon \\\hline 0&\epsilon &x-\alpha -\epsilon \end{array}}\right]\cdot \left[{\begin{array}{c|c}y_{1}\\\hline y_{2}\\\hline y_{A}\end{array}}\right]=0}$

### arrays2

${\displaystyle {\begin{pmatrix}x-2\sigma &\sigma &0\\2\sigma &-2\sigma -\beta \epsilon &\beta \epsilon \\0&\epsilon &x-\alpha -\epsilon \end{pmatrix}}\cdot {\begin{bmatrix}y_{1}\\y_{2}\\y_{A}\end{bmatrix}}\ =0}$

## Labeled and unlabeled transclusion

### Transclusion of unlabeled sections

{{#lsth:OpenStax College|Making the testbank user friendly}}

click to view transclusion

### Labeled section transclusion

<section begin=chapter1 />this is a chapter<section end=chapter1 />

How to call the text

{{#lst:resource_page_name/subpage|Title_of_section}}
click to view transclusion

The kinetic energy K of the system at time t is

${\displaystyle K(t)={\frac {1}{2}}mv^{2}(t)={\frac {1}{2}}m\omega ^{2}A^{2}\sin ^{2}(\omega t-\varphi )={\frac {1}{2}}kA^{2}\sin ^{2}(\omega t-\varphi ),}$

and the potential energy is

${\displaystyle U(t)={\frac {1}{2}}kx^{2}(t)={\frac {1}{2}}kA^{2}\cos ^{2}(\omega t-\varphi ).}$

The total mechanical energy of the system therefore has the constant value

${\displaystyle E=K+U={\frac {1}{2}}kA^{2}.}$

### comment

To understand these examples, visit:

${\displaystyle {\underline {\overline {\left|ANSWER\right|}}}}$

### box

 First line. Indented
 First line. Indented

## Hidden text

### Comment out text for editors

<!-- Hidden text -->

### Grey bar white lightgrey(hides tables)

click to view or hide
• foo

### Grey bar white not lightgrey(also hides tables)

click to view or hide
• foo

### Jascript hidden text

Click on a question to see the answer.
1. Visible1
hidden1
2. Visible2
hidden2

## page breaks

### Insert page break

<div style="page-break-before:always"></div><!--simple pagebreak-->


### Keep together

<div style="page-break-inside:avoid;"><!--next section-->
text
text
</div><!--keep together-->


## Footnotes and references

<ref group="note">This goes into a footnote section.</ref>

Call with {{reflist|group="note"|liststyle=lower-alpha}}

## Subpages


{{cot|list of subpages}}{{Subpages/List}}{{cob}} -- this one lists them all
{{Subpages/Simple}} -- links with single word "Subpages"
{{Subpages}} -- Links with [[List]] of subpages.



## Images

### pixel counts and upright factors

Although pixel counts are easier to understand than upright factors, they adjust less well to user preferences. For example, suppose a picture contains some detail and by default is a bit too small, and you want to grow it by about 10%. Although "upright=1.1" and "240px" do the job equally well for the common case where the default width is 220 pixels, many of the users who set the default width to 300 pixels to work better with their high-resolution screens will be annoyed with "200px" because it will make the picture a third smaller than their preferred size. In contrast, "upright=1.1" will display the picture to them with a width of 330 pixels, and this is more likely to work well on their displays.

Pixel counts are typically better than upright factors for displaying combinations of pictures, some of which have known and limited sizes, and for displaying tiny icons that are intended to be combined with text.

## Active user template

The user inserts {{subst:Contrib-using}} if teaching.

The user inserts {{subst:Contrib-creator}} if constructing.

## Navbars

First line
second line
Quizbank under construction

Cross product ${\displaystyle |{\vec {a}}\times {\vec {b}}|=ab\sin \theta }$