User:Guy vandegrift/Editorial tricks

From Wikiversity
Jump to navigation Jump to search

Friday 19 July 2024 12:43:AM refresh {{Purge|refresh}}


Today is Thursday, July 18, 2024
Current time is 18:43 UTC refresh
Projects: Bytes   Editorial tricks   User:Guy vandegrift/T (list)   {{subst:callforcontributions}} {{subst:Pagemove announcement}}   Draft:Archive/2024/   {{Pages purged of links}}   blog   (more) Journals: 2020 2021 2022 2023 2024

ftools.toolforge.org

small div with reduced linebreaks

[edit | edit source]
small

regex expression for footnotes

[edit | edit source]
\<ref>(.*?)</ref>

Editing tools

[edit | edit source]

{{REVISIONID}}=- .. 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?

Download

[edit | edit source]

(Download)


[edit | edit source]

Category:Navigational templates | Template:EasyNav | Template:Draftspace

Help pages

[edit | edit source]

Latex

[edit | edit source]

Wikitext equation alphabet

[edit | edit source]

Text and transclusion

[edit | edit source]

w:Help:Wiki_markup#Special_characters

Printing beyond the window

[edit | edit source]
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  <math>c^{-2}\oint\vec E\cdot d\vec A</math> 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, <math>\int \vec H\cdot\vec{d\ell}</math>, 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

[edit | edit source]

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

Centered and right margined text

[edit | edit source]
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> 

Converting equation into image format

[edit | edit source]

See image and caption to the right: The first six rows of Pascal's triangle

The first six rows of Pascal's triangle

Transclusion

[edit | edit source]

See below for actual templates for copy/paste

Import requests

[edit | edit source]

Symbols and colors

[edit | edit source]

Equations

[edit | edit source]

numbered equations

[edit | edit source]

 

 

 

 

(G5)

G5

a

 

 

 

 

(b)

h

 

 

 

 

(5)

 

 

 

 

(1)

Two templates I might like

[edit | edit source]

Possible problem

[edit | edit source]

In Rule_of_product I used Figure 3 as the link and Figure 2as the target. The templates are Template:EquationRef as link Template:EquationNote as target.

No space is allowed after EquationNote: {{EquationNote|Figure 2}}as the target. yields Figure 2as the target.

  • In Draft:Information theory/Permutations and combinations I place equation ref in front: Eq. 2   and refer using the internal link: bla bla Fig. 5to arbitrary values on n and k as as stated at Eq. 2.On the other hand, an important restriction results from using a three-dimensional box to account for duplicate words
Template:EquationNote is not advised due to unexpected results. In the above example the * (Bullet list) symbol forces the pagebreak.

Multiple equations[1]

[edit | edit source]

 

<math>\begin{align}
11 & = 12 & 13  \\
21 & = 22 & y 23
\end{align}</math>

trial

[edit | edit source]

arrays1

[edit | edit source]

arrays2

[edit | edit source]

Labeled and unlabeled transclusion

[edit | edit source]

Transclusion of unlabeled sections

[edit | edit source]

{{#lsth:OpenStax College|See_Also}}

click to view transclusion
List of textbooks
Textbooks under construction
cnx.org

Labeled section transclusion

[edit | edit source]

See also w:Help:Labeled_section_transclusion. How to label

<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

and the potential energy is

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

comment

[edit | edit source]

To understand these examples, visit:

Please contact me (about quizzes) -- edit message

[edit | edit source]

{{#lsth:Quizbank/How to use testbank|Please contact me}}

Box answers

[edit | edit source]


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


quote box

[edit | edit source]

w:template:Quote box

First line.
Indented
First line.
Indented

Hidden text

[edit | edit source]

http://www.newtonproject.sussex.ac.uk/prism.php?id=40

Comment out text for editors

[edit | edit source]

<!-- Hidden text -->

Grey bar white lightgrey(hides tables)

[edit | edit source]
click to view or hide
  • foo

Grey bar white not lightgrey(also hides tables)

[edit | edit source]
click to view or hide
  • foo

two colors 75% collapsible

[edit | edit source]

Jascript hidden text

[edit | edit source]
Enable JavaScript to hide answers.
Click on a question to see the answer.
1. Visible1
hidden1
2. Visible2
hidden2

page breaks

[edit | edit source]

See also w:Template:Page break

Insert page break

[edit | edit source]
<div style="page-break-before:always"></div><!--simple pagebreak-->

Keep together

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

Footnotes and references

[edit | edit source]

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

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

Subpages

[edit | edit source]
{{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

[edit | edit source]

pixel counts and upright factors

[edit | edit source]

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

[edit | edit source]

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

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

See also Template:Please don't edit

[edit | edit source]
First line
second line
Quizbank under construction


[edit | edit source]

side by side image

[edit | edit source]
Cross product

multiple images

[edit | edit source]

{| style="border-spacing: 1px; align:center" |- |[[File:Entropy_flip_2_coins.jpg|thumb|160px|'''Figure 1'''. Entropy is, <br><math>S=2=N</math>, <br>where <math>N</math> is the number of fair coins. The number of possible messages is: <br><math>\Omega=2^N= 4</math>. ]] |[[File:Shannon entropy 5 coin illustration.svg |'''Figure 2'''. Elephant with 5 bits of entropy can give 3 bits to Bird and 2 bits to Rat.|thumb|210px]] |[[File:Shannon entropy coins and base 2.svg|Figure 3|thumb|270px]] |- |}

pdf license for quizbank and openstax

[edit | edit source]

Annotated image

[edit | edit source]

Template:Annotated image

Licensing

[edit | edit source]

Python code

[edit | edit source]

def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass


def quick_sort(arr):
	less = []
	pivot_list = []
	more = []
	if len(arr) <= 1:
		return arr
	else:
		pass
‎

MyOpenMath

[edit | edit source]
  • Quizbank physics 1 60675
  • Quizbank physics 2
  1. https://en.wikipedia.org/wiki/Help:Displaying_a_formula#Multiple_equations