User:Guy vandegrift/Editorial tricks
Friday 19 July 2024 12:43:AM {{Purge|refresh}}
- [[Special:Diff/583498451/611653557|<text>]]
- Unicode shapecatcher
- QB -- Help:Interwiki linking -- w:Template:Graph:Chart -- w:Help:Special_page#Available_special_pages
- Tables Generator -- Copy and Paste Excel-to-Wiki Converter]
- The script for a redirect is
#REDIRECT [[<text>]]
where <text> is a pagename. - w:Template:CSS image crop
{{RoundBoxTop}} ...{{RoundBoxBottom}}
See also {{Template:Robelbox}}{{tl|Template:Robelbox}}
<div class="thumb tleft"><div style="width:100px;">xx</div></div>
- {{BASEPAGENAME}} creates Guy vandegrift
- Use {{colbegin}} and {{colend}} templates to produce columns. See also Template:Multicol
![]() | Today is Thursday, July 18, 2024 Current time is 18:43 UTC |
{{subst:callforcontributions}} {{subst:Pagemove announcement}}
Draft:Archive/2024/
{{Pages purged of links}}
blog (more) Journals: 2020 2021 2022 2023 2024 small div with reduced linebreaks
[edit | edit source]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}}
- mw:Help:Magic_words999
- <syntaxhighlight lang='matlab'>
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)
Navbars and Draftspace
[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
Transclusion
[edit | edit source]See below for actual templates for copy/paste
- w:Wikipedia:Transclusion#Selective_transclusion template transclusion How to transclude a labeled section from a template or another website.
- Labeled section transclusion
Import requests
[edit | edit source]Symbols and colors
[edit | edit source]- ॐ ॐ ॐ U+0950
- A⃗B
- w:User:Guy_vandegrift/sandbox#Symbols
- html tags such as ∞ α ℓ ½ ≈ ±(&infin &alpha ℓ ½ &asymp ±)... can be found at
- html tags: http://www.w3schools.com/charsets/ref_utf_math.asp
- Great Big List of Latex Symbols
- Wikitext Symbols:Sun☉ Star☆ Moon☽ Earth♁ⴲ planets
- w:List_of_colors_(compact)
Equations
[edit | edit source]- maybe use https://oeis.org/wiki/List_of_LaTeX_mathematical_symbols
- From w:Help:Displaying_a_formula#Display_attribute:
<math display="inline">
and<math display="block">
- See #Converting_equation_into_image_format
numbered equations
[edit | edit source]-
(
)
-
a
(b)
h
- In Divergence theorem I used Template:NumBlk and referenced using Equation 5:
-
(5)
-
- In Poynting's theorem I used Template:NumBlk:
-
(1)
Two templates I might like
[edit | edit source]Possible problem
[edit | edit source]In Rule_of_product I used 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: 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
|
---|
|
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:
- Physics_equations/Oscillations,_waves,_and_interference
- #lst:Physics_equations/Oscillations,_waves,_and_interference
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]box
[edit | edit source]First line.
|
First line.
|
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]- foo
Grey bar white not lightgrey(also hides tables)
[edit | edit source]- foo
two colors 75% collapsible
[edit | edit source]To see WHATEVER click to right ===> Lorem ipsum dolor sit amet, consectetur adipiscing 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.
Jascript hidden text
[edit | edit source]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
Sister interlinks
[edit | edit source]
Interlink prefixes
[edit | edit source]- w:Main page or Wikipedia:Main page
- v:Main page but not Wikiversity:Main page
- mw:Main page
- v:Main page or Wikibooks:Main page
- wikt:Main page or Wiktionary:Main page
side by side image
[edit | edit source]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]Licensing
[edit | edit source]
![]() ![]() |
This work is licensed under the Creative Commons Attribution 3.0 License.
This template should only be used on file pages. |
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