User:Spinningspark/Coding and formatting
Coding help
Javascript
- User:Spinningspark/monobook.js
- Wikipedia:Catalogue of CSS classes includes links to javascript
- W3S Javascript tutorial and reference
- MDN Javascript guide and reference
- wikibits.js
- Wikipedia:WikiProject User scripts/Techniques namespace references etc
- Wikipedia:Gadget
CSS
- User:Spinningspark/monobook.css
- Help:Cascading style sheets
- W3S CSS Reference
- MDN CSS Reference
- Wikipedia:Catalogue of CSS classes
Latex
Mediawiki
- mw:Help:Magic words
- mw:Help:Extension:ParserFunctions
- Help:Parser function
- mw:Extension:Parser function extensions
- mw:Extension:VariablesExtension not available WP
- Help:Labeled section transclusion
- Mediawiki core tree
HTML
- Help:HTML in wikitext
- HTML tags
- HTML colour names
- HTML special characters
- MDN HTML guide and reference
Tables and pictures
Searching
Other
Archives
See Talk:Vacuum tube for example with search input in the archive box rather than talk page header. Also has example of indexing.
Disambiguation see also
Multiple sources
<ref>Multiple sources: {{ubl|style=margin-left:1em|Gupta, page 113| Voltmer, pages 146–147}}</ref>
Lorem[mult 1] ipsum[mult 2] dolores.[mult 3]
Templates
<br style="clear:left;"/>
Not substed,
![]() | Yes, it must be |
Categories
Don't CAT the Sandbox!!!!
[[Category:Puzzles]]
To make a link to a category without categorising the page
[[:Category:Automotive technologies]]
To force a sort order
[[Category:Mechanical puzzles|Puzzles, Mechanical]]
To force to top of list (Space is lower in ASCII)
[[Category:Rubik's Cube| ]]
Locator Maps
Locator template (example):
Clickable image
The entire template is now deprecated. Use the link= parameter in the file link instead
{{Click |image = <image to be linked> |size = <size of the image> |width = <width of the image> DEPRECATED |height = <height of the image, optional> DEPRECATED |link = <page the image must link to> |title = <the label for the image, optional> |desc = <location of a description link, optional> }}
Template:Superimpose2 for up to 50 superimposed images
Link
Click here to see Pamela Anderson naked
Ha ha, very cute
Edit help: How to put paragraphs within a single bulleted item?
<huge amount of not-so-good intervening suggestions removed>
- I'd say the best option to use is partial HTML. Have a standard bulleted list, but use <p> tags on the long item. Example:
- Item 1
- Item 2
Item 3 with a really long boring block of text that really should be broken into two or more paragraphs but there's no apparant way to do it. 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. 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.
- Item 4
- This method keeps the bulleted list while allowing for paragraph breaks. Pyrospirit (talk · contribs) 02:40, 2 January 2008 (UTC)
- I'd say the best option to use is partial HTML. Have a standard bulleted list, but use <p> tags on the long item. Example:
References
A great example of use of footnotes/references/bibliography using a footnotes template can be found in Niagara Falls Suspension Bridge
{{Ref label|truss|k|none}} {{Note label|start|a|none}}
A much[note 1] better way though[note 2], is;
<ref group=note>
Grouped notes
{{Reflist|group=note}}
OR[note 1]
- ^ A footnote
<references group=note />
Fonts
Can be used with <span>, <p> or <font> tags.
style="font-style:italic;" |
Now is the time for all good men to come to the aid of the party |
style="font-style:normal;" |
Now is the time for all good men to come to the aid of the party |
style="font-weight:bold;" |
Now is the time for all good men to come to the aid of the party |
style="font-weight:normal;" |
Now is the time for all good men to come to the aid of the party |
style="font-family:times;" |
Now is the time for all good men to come to the aid of the party |
style="font-family:times new roman;" |
Now is the time for all good men to come to the aid of the party |
style="font-family:courier;" |
Now is the time for all good men to come to the aid of the party |
style="font-family:monospace;" |
Now is the time for all good men to come to the aid of the party |
style="font-family:courier new;" |
Now is the time for all good men to come to the aid of the party |
style="font-family:script;" |
Now is the time for all good men to come to the aid of the party |
style="font-style:italic;color:red;" |
Now is the time for all good men to come to the aid of the party |
style="font-size:16pt;" |
16 point font |
Colour match
Series colour | Allotrope colour |
---|---|
alkali metal | |
alkaline earth metal | |
lanthanide | |
actinide | |
transition metal | |
poor metal | |
metalloid | |
nonmetal | |
halogen | |
noble gas |
Code snip for setting heading colours.
|-<!-- ELEMENT PHYSICAL PROPERTIES --> ! colspan=2 style="background:<!-- COLOR 1 -->#{{#if:{{{series color|}}}|{{{series color}}}|{{#switch:{{{series}}} |alkali metal|alkali metals=FF6666 |alkaline earth metal|alkaline earth metals=FFDEAD |lanthanide|lanthanides=FFBFFF |actinide|actinides=FF99CC |transition metal|transition metals=FFC0C0 |poor metal|poor metals=CCCCCC |metalloid|metalloids=CCCC99 |nonmetal|non-metal|nonmetals|non-metals=A0FFA0 |halogen|halogens=FFFF99 |noble gas|noble gases=C0FFFF }}}}; <!-- COLOR 2 -->{{#if:{{{phase color|}}}|color:{{{phase color}}}|color:#{{#switch:{{{phase}}} |Gas|gas=008000 |Liquid|liquid=0000FF |Solid|solid=000000 }}}}" | <center>Physical properties</center><!-- ALLATROPE 1 PHYSICAL PROPERTIES --> {{#if:{{{allatrope 1|}}}| {{!}}- ! colspan=2 style="background:<!-- COLOR 1 -->#{{#if:{{{series color|}}}|{{{series color}}}|{{#switch:{{{series}}} |alkali metal|alkali metals=FFA9A9 |alkaline earth metal|alkaline earth metals=FFE6C3 |lanthanide|lanthanides=FFE3FF |actinide|actinides=FFCEE6 |transition metal|transition metals=ffd8d7 |poor metal|poor metals=e1e2e2 |metalloid|metalloids=e2e2bc |nonmetal|non-metal|nonmetals|non-metals=caffca |halogen|halogens=ffffc7 |noble gas|noble gases=e2ffff }}}}; <!-- COLOR 2 -->{{#if:{{{phase color|}}}|color:{{{phase color}}}|color:#{{#switch:{{{phase}}} |Gas|gas=008000 |Liquid|liquid=0000FF |Solid|solid=000000 }}}}" {{!}}<center>{{{allatrope 1}}}</center>|}}<!-- -->