Wikitext Cheatsheet: Difference between revisions
m (Text replacement - "|" to "|") |
m (Text replacement - "\<p(.*?)\>(.*?)\<\/p>" to "<span$1>$2</span>") |
||
Line 57: | Line 57: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Paragraphs|Paragraph]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Paragraphs|Paragraph]] | ||
| style="border:1px solid black" | <font color="red"><nowiki>< | | style="border:1px solid black" | <font color="red"><nowiki><span></nowiki></font>Lorem ipsum ....<font color="red"><nowiki></span></nowiki></font> | ||
| style="border:1px solid black" | | | style="border:1px solid black" | | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki_University_Wikitext--Inline_Styling|In-line style]] | | style="border:1px solid black" | [[Help:Wiki_University_Wikitext--Inline_Styling|In-line style]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">property:change</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
| style="border:1px solid black" | | | style="border:1px solid black" | | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki_University_Wikitext--Changing_Fonts#Enlarging fonts|font-size]] | | style="border:1px solid black" | [[Help:Wiki_University_Wikitext--Changing_Fonts#Enlarging fonts|font-size]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">font-size:16pt</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
| style="border:1px solid black" | | | style="border:1px solid black" | | ||
Lorem ipsum ..... | Lorem ipsum ..... | ||
Line 71: | Line 71: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Changing Fonts|font-family]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Changing Fonts|font-family]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">font-family:times new roman</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
''[https://www.w3schools.com/cssref/css_websafe_fonts.asp Click here] for all acceptable font styles'' | ''[https://www.w3schools.com/cssref/css_websafe_fonts.asp Click here] for all acceptable font styles'' | ||
Line 80: | Line 80: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Colors|font-color]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Colors|font-color]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">color:blue</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
''[https://www.w3schools.com/colors/colors_names.asp Click here] for all acceptable colors'' | ''[https://www.w3schools.com/colors/colors_names.asp Click here] for all acceptable colors'' | ||
Line 88: | Line 88: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Bold-Italics#Bold_fonts|bold text]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Bold-Italics#Bold_fonts|bold text]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span></nowiki><font color="red"><nowiki>'''</nowiki></font>Lorem ipsum ....<font color="red"><nowiki>'''</nowiki></font><nowiki></span></nowiki> | ||
| style="border:1px solid black" | '''Lorem ipsum ....''' | | style="border:1px solid black" | '''Lorem ipsum ....''' | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Bold-Italics#Italicized_fonts|italicized text]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Bold-Italics#Italicized_fonts|italicized text]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span></nowiki><font color="red"><nowiki>''</nowiki></font>Lorem ipsum ....<font color="red"><nowiki>''</nowiki></font><nowiki></span></nowiki> | ||
| style="border:1px solid black" | ''Lorem ipsum ....'' | | style="border:1px solid black" | ''Lorem ipsum ....'' | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Multi-attributes|multiple attributes]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Multi-attributes|multiple attributes]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">font-family:times new roman; font-size:14pt; color:blue</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
''Note the semi-colon between attributes'' | ''Note the semi-colon between attributes'' | ||
Line 104: | Line 104: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Backgrounds|backgrounds]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Backgrounds|backgrounds]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">background:lightgray</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
''[https://www.w3schools.com/colors/colors_names.asp Click here] for all acceptable colors'' | ''[https://www.w3schools.com/colors/colors_names.asp Click here] for all acceptable colors'' | ||
Line 112: | Line 112: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Padding|padding]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Padding|padding]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">padding:10px</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
*''Padding is the '''space between the contents and the border''' whether the border is '''visible or not'''''. | *''Padding is the '''space between the contents and the border''' whether the border is '''visible or not'''''. | ||
*''Can pad on just one or more sides: <font color="red">top</font>, <font color="red">right</font>, <font color="red">bottom</font> and <font color="red">left</font>.'' | *''Can pad on just one or more sides: <font color="red">top</font>, <font color="red">right</font>, <font color="red">bottom</font> and <font color="red">left</font>.'' | ||
Line 120: | Line 120: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Margins|Margins]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Margins|Margins]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">margin:10px</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
*''Margins is the '''space between borders''' whether the borders are '''visible or not'''''. | *''Margins is the '''space between borders''' whether the borders are '''visible or not'''''. | ||
*''Margins can be on just one or more sides: <font color="red">top</font>, <font color="red">right</font>, <font color="red">bottom</font> and <font color="red">left</font>.'' | *''Margins can be on just one or more sides: <font color="red">top</font>, <font color="red">right</font>, <font color="red">bottom</font> and <font color="red">left</font>.'' | ||
Line 145: | Line 145: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Borders#Border_radius|border radius]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Borders#Border_radius|border radius]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">border:1px solid black; border-radius:5px</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
*''Can place border radius on one or more corners'' | *''Can place border radius on one or more corners'' | ||
*''Example: border-radius-top-right''. | *''Example: border-radius-top-right''. | ||
Line 154: | Line 154: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Borders#Border_shadow|border shadow]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Borders#Border_shadow|border shadow]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">border:1px solid black; box-shadow:5px 5px 3px lightgray</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
*''First number is the distance from bottom of border to bottom edge of shadow.'' | *''First number is the distance from bottom of border to bottom edge of shadow.'' | ||
*''Second number is the distance from right edge of border to right edge of shadow.'' | *''Second number is the distance from right edge of border to right edge of shadow.'' | ||
Line 165: | Line 165: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Width and Height|width and height]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Width and Height|width and height]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">width:200px; height:50px</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
| style="border:1px solid black" | | | style="border:1px solid black" | | ||
Lorem ipsum .... | Lorem ipsum .... | ||
Line 171: | Line 171: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Alignment#Centering_titles|Alignment - horizontal]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Alignment#Centering_titles|Alignment - horizontal]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">text-align:center</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
*''Can align in center and right''. | *''Can align in center and right''. | ||
*''Default alignment is left.'' | *''Default alignment is left.'' | ||
Line 180: | Line 180: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Alignment#Vertical_alignment|alignment - vertical]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Alignment#Vertical_alignment|alignment - vertical]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">height:50px; line-height:50px</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
*''Line height has to equal height of container.'' | *''Line height has to equal height of container.'' | ||
Line 216: | Line 216: | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Placement|Text Wrapping (floating)]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Placement|Text Wrapping (floating)]] | ||
| style="border:1px solid black" | <nowiki>< | | style="border:1px solid black" | <nowiki><span style="</nowiki><font color="red">float:right</font>">Lorem ipsum ....<nowiki></span></nowiki> | ||
| style="border:1px solid black" | [[Image:Ireland Cemeteries 1.jpg|right|100px|Ireland Cemeteries 1.jpg]] | | style="border:1px solid black" | [[Image:Ireland Cemeteries 1.jpg|right|100px|Ireland Cemeteries 1.jpg]] | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. | Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. |
Revision as of 19:59, 8 May 2023
Condensed guide to Wikitext coding
Click on sort icon to put list in alphabetical order
Description | Type | You Get | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Headers | ==Header 2== ===Header 3=== |
Header 2 Header 3
| ||||||||||||||||||||
Lists - unordered | *Item one *Item two *Item three |
| ||||||||||||||||||||
Lists - ordered | #Item one #Item two #Item three |
| ||||||||||||||||||||
Links - internal | [[Missouri Genealogy|Missouri]] Double square brackets - Name of article - pipe - User-defined link name |
Missouri | ||||||||||||||||||||
Links - external | [https://familysearch.org(space)Family Search] Single square brackets - URL of external link - space - User-defined link name |
Family Search Notice little box and arrow at the end of the name of the link. | ||||||||||||||||||||
Comments | <!--Comment goes here between dashes--> (At least two dashes are required on either side of the comment) |
(No comments should appear) | ||||||||||||||||||||
Categories | [[Category:name of category]] | [[Category:Name of Category]] | ||||||||||||||||||||
Images | [[File:name of image|location on page|size in px|caption]] | IMAGE | ||||||||||||||||||||
Paragraph | <span>Lorem ipsum ....</span> | |||||||||||||||||||||
In-line style | <span style="property:change">Lorem ipsum ....</span> | |||||||||||||||||||||
font-size | <span style="font-size:16pt">Lorem ipsum ....</span> |
Lorem ipsum ..... | ||||||||||||||||||||
font-family | <span style="font-family:times new roman">Lorem ipsum ....</span>
Click here for all acceptable font styles |
Lorem ipsum .....
| ||||||||||||||||||||
font-color | <span style="color:blue">Lorem ipsum ....</span>
Click here for all acceptable colors |
Lorem ipsum ..... | ||||||||||||||||||||
bold text | <span>'''Lorem ipsum ....'''</span> | Lorem ipsum .... | ||||||||||||||||||||
italicized text | <span>''Lorem ipsum ....''</span> | Lorem ipsum .... | ||||||||||||||||||||
multiple attributes | <span style="font-family:times new roman; font-size:14pt; color:blue">Lorem ipsum ....</span>
Note the semi-colon between attributes |
Lorem ipsum .... | ||||||||||||||||||||
backgrounds | <span style="background:lightgray">Lorem ipsum ....</span>
Click here for all acceptable colors |
Lorem ipsum .... | ||||||||||||||||||||
padding | <span style="padding:10px">Lorem ipsum ....</span>
|
Content .... Content ....
| ||||||||||||||||||||
Margins | <span style="margin:10px">Lorem ipsum ....</span>
|
Contents.... Contents ....
| ||||||||||||||||||||
div tag | <div style="font-family:times new roman; font-size:14pt; color:blue">Lorem ipsum ....</div> No builtin margins or padding as in paragraph tags
|
Lorem ipsum ....
| ||||||||||||||||||||
borders | <div style="border:1px solid black">Lorem ipsum ....</div>
|
Lorem ipsum .... | ||||||||||||||||||||
border radius | <span style="border:1px solid black; border-radius:5px">Lorem ipsum ....</span>
|
Lorem ipsum .... | ||||||||||||||||||||
border shadow | <span style="border:1px solid black; box-shadow:5px 5px 3px lightgray">Lorem ipsum ....</span>
|
Lorem ipsum .... | ||||||||||||||||||||
width and height | <span style="width:200px; height:50px">Lorem ipsum ....</span> |
Lorem ipsum .... | ||||||||||||||||||||
Alignment - horizontal | <span style="text-align:center">Lorem ipsum ....</span>
|
Lorem ipsum .... | ||||||||||||||||||||
alignment - vertical | <span style="height:50px; line-height:50px">Lorem ipsum ....</span>
|
Lorem ipsum .... | ||||||||||||||||||||
Tables |
|
|||||||||||||||||||||
Text Wrapping (floating) | <span style="float:right">Lorem ipsum ....</span> |
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec sit amet iaculis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Fusce elementum efficitur faucibus. | ||||||||||||||||||||
Table scrolling | <div style="overflow:scroll; width:300px; height:100px"
{| style="border:1px solid red" |
| ||||||||||||||||||||
Templates |
To save a template: {{Template:name of template}} |
|||||||||||||||||||||
Breadcrumb trails |
The Breadcrumb trail is a specialized template where one enters internal links leading to the page you are on: {{breadcrumb
|
| ||||||||||||||||||||
References/Footnotes | <ref>This is a footnote</ref>
|
| ||||||||||||||||||||
SEO |
|
| ||||||||||||||||||||
Table column spans |
{|
|
| ||||||||||||||||||||
Table row span |
{|
|
| ||||||||||||||||||||
Parameters | {{{parameter}}}
{{Name of template
|
name of parameter | ||||||||||||||||||||
If functions | |{{#if:{{{parameter|}}}|name of parameter |
{{{parameter}}} }}
| parameter= If nothing is entered after the equal sign the entire line will be missing. |
If the parameter is blank, there is no line. If the parameter is added, the text will show. | |||||||||||||||||||
Position relative | <div style="position:relative">
<div style="position:relative;top:20px; left:100px">Stuff</div>
|
|||||||||||||||||||||
Position-absolute | <div style="position:absolute">
<div style="position:relative">
|