TemplatesEdit

FunctionEdit
Template collectionsEdit
Info/navboxes etcEdit
Historical period/era/epochEdit

To finish / doEdit

By typeEdit
Renaming / params
Internal
Infobox-related
Category-related
Physics-related
Articles
SecondaryEdit

Formatting etcEdit

Sandbox non-categorisation  on /doc pages

<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox |
| <!-- Categories below this line, please; interwikis at Wikidata -->

}}</includeonly>

Images directly above/below Sidebar(/Infobox?)
Add following to Sidebar(/Infobox?) and remove newlines/comment:

| topimage = {{#if:{{{image|}}} |[[File:{{{image}}}|
{{{imagesize|220px}}}|{{{imagealt|}}}|link={{{imagelink|}}}]]}}
| topcaptionstyle = 
padding-bottom:[ 0.4 ]em;[ border-bottom:1px solid #aaa; ]
| topcaption = {{{caption|}}}

<!--If image parameter in use:-->
| image = {{#if:{{{image|}}} | |[previous image code]}}
previous
  {{Multiple image
  | direction = vertical
  | width = 250 <!--(px) (≃ 22.0em)-->
  | header_align = center  <!--(if sidebar/infobox above image/s)-->
  | header = {{...| [embedded/child/child=...] }}  <!--(ditto)-->
  | image1 = [filename]
  | alt1 = [text]
  | caption1 = {{center| [text] }}
  ( | image2 = [etc]
    ......
    | image10 = [etc] )
  | footer_align = center  <!--(if sidebar/infobox below image/s)-->
  | footer = {{...| [embedded/child/child=...] }}  <!--(ditto)-->
  }}
  
Sidebar / Infobox may require:
[]style = {{#switch:{{{1|}}}|embedded|child=border:none;font-size:100%;}}

Wikicode table without start-row syntax

{| ......                     {| ......
!  .......... !! ......       {{br!-!!}} ... !! ......
{{br!-!}} ... || ......       {{br!-!}} .... || ......
{{br!-!}} ... || ......
|- (style="..." etc)
| ........... || ......
{{br!-!}} ... || ......       (etc)

(etc)

|}                            |}
    • plain
    • italic
    • smallcaps
    • italic smallcaps
    • bold
    • bold italic
    • bold smallcaps
    • bold italic smallcaps
    • ellipsis= Alt+0133 
    •  ndash= Alt+0150 
    •  para= Alt+0182
    • equals= &#61; 
    •  colon= &#58;
  • Whitespace characters (also Unicode spaces)
  • {{int:dot-separator}} ( ≡ {{dot}}..? )
    • (novisibility) visibility:hidden; (but leaves space)
    • (nodisplay) display:none;             (and no space)
  • Lowercase Greek letters used as category indices:
    • α (archival?)
    • π (portal)
    • τ (template)
    • σ (stub?)
    • χ (inactive, deprecated, etc)

    • ω (Wikipedia:/ WikiProject)
    • .........
  • {{noflag}} (or {{flagicon}} without parameter/s)
  • Relative font-sizes (User:Edokter/fonttest)
  • To trim whitespace from {{{X}}}, use {{#if:true|{{{X|}}}}}
    ( ≡ {{trim}} )  (User:Mr. Stradivarius).
    • <ref name="…">…</ref>
    • <ref name="…"/>
    • {{refpage|page#}}
    • {{refpages|page#page# … page#, page# …}}
    • {{#tag:ref …}}
  • {{longitem}} = padding:0.1em 0;line-height:1.2em;
  • {{longlink}} = padding:0.2em 0.4em;line-height:1.2em;
  • Place content within <div [class="nocolbreak"] ''and/or'' [style="display:inline-block;"]>...</div> to prevent it being wrapped by e.g. {{Div col}}.
  • "Wrap {{BASEPAGENAME}} inside {{#titleparts…}} in case category name contains an apostrophe. See warning box at mw:Help:Magic words#Page names." (User:John of Reading)
  • table-layout:auto; ..... Column width set by widest unbreakable content;   
    table-layout:fixed; ... Horizontal layout depends only on table's and columns' widths, i.e. regardless of content.


Sidebar / subsidebar / subinfobox

  • If headings given backgrounds, use contentstyle=padding-top:0.2em;padding-bottom[0.6– 0.8]em; otherwise content starts too close to background.
  • Use display:block;margin-bottom:N; in a Sidebar's titlestyle to add gap between title and first heading's background.
  • {{subsidebar bodystyle}} → {{subinfobox bodystyle}} :
clear:none;float:none;width:100%;font-size:100%;margin:0;
border-collapse:collapse;border-spacing:0;border:none
  • For a subsidebar[/infobox?] as content/listN,
  • add |content/listNstyle= padding-bottom:0;
  • and use: {{Sidebar |child |navbar=off
  • |bodystyle={{subsidebar bodystyle}} …}}

{{Documentation}} below Navbox

}}<noinclude>
{{Documentation
 | content =
{{Collapsible option |statename=optional}}

<!--[[Category:...]]-->
<!--[[Category:...]]-->
}}<!--(end Documentation)-->
</noinclude>

Indentation

Text following an initial colon (indent)
  • Text following an intial asterisk (bullet)

 Text following a {{pad|1.4em}}

Text in a div style="padding-left:1.6em;"
Text in a div style="margin-left:1.6em;"