Wikitext Cheatsheet: Difference between revisions
m (modify text for SEO) |
m (modify text for breadcrumb) |
||
Line 258: | Line 258: | ||
| style="border:1px solid black" | | | style="border:1px solid black" | | ||
''To save a template'': <font color="red"><nowiki>{{</nowiki></font>Template:name of template<font color="red"><nowiki>}}</nowiki></font><br> | ''To save a template'': <font color="red"><nowiki>{{</nowiki></font>Template:name of template<font color="red"><nowiki>}}</nowiki></font><br> | ||
''To | ''To embed a template'': <font color="red"><nowiki>{{</nowiki></font>name of template<font color="red"><nowiki>}}</nowiki></font> | ||
| style="border:1px solid black" | | | style="border:1px solid black" | | ||
|- | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Breadcrumb Trails|Breadcrumb trails]] | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Breadcrumb Trails|Breadcrumb trails]] | ||
| style="border:1px solid black" | | | style="border:1px solid black" | | ||
The Breadcrumb trail is a specialized template where one enters internal links leading to the page you are on: | The Breadcrumb trail is a specialized template where one enters internal links leading to the page you are on:<br> | ||
<nowiki>{{breadcrumb</nowiki><br> | <font size="2px"><font color="blue"><nowiki>{{breadcrumb</nowiki></font></font><br> | ||
<nowiki>| link1=</nowiki><br> | <font size="2px"><font color="blue"><nowiki>| link1=[[United States Genealogy|United States]]</nowiki></font></font><br> | ||
<nowiki>| link2=</nowiki><br> | <font size="2px"><font color="blue"><nowiki>| link2=[[Missouri, United States Genealogy|Missouri]]</nowiki></font></font><br> | ||
<nowiki>| link3=</nowiki><br> | <font size="2px"><font color="blue"><nowiki>| link3=</nowiki></font></font><br> | ||
<nowiki>| link4=</nowiki><br> | <font size="2px"><font color="blue"><nowiki>| link4=</nowiki></font></font><br> | ||
<nowiki>| link5=</nowiki><br> | <font size="2px"><font color="blue"><nowiki>| link5=[[Adair County, Missouri Genealogy|Adair County]]</nowiki></font></font><br> | ||
<nowiki>}}</nowiki><br> | <font size="2px"><font color="blue"><nowiki>}}</nowiki></font></font><br> | ||
*''Don't forget pipe between Article name and user-defined link name.'' | *''Don't forget pipe between Article name and user-defined link name.'' | ||
*''link5 will always point to the page you are on.'' | *''link5 will always point to the page you are on.'' |
Revision as of 17:41, 8 October 2021
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 | <p>Lorem ipsum ....</p> | |||||||||||||||||||||
In-line style | <p style="property:change">Lorem ipsum ....</p> | |||||||||||||||||||||
font-size | <p style="font-size:16pt">Lorem ipsum ....</p> |
Lorem ipsum ..... | ||||||||||||||||||||
font-family | <p style="font-family:times new roman">Lorem ipsum ....</p>
Click here for all acceptable font styles |
Lorem ipsum .....
| ||||||||||||||||||||
font-color | <p style="color:blue">Lorem ipsum ....</p>
Click here for all acceptable colors |
Lorem ipsum ..... | ||||||||||||||||||||
bold text | <p>'''Lorem ipsum ....'''</p> | Lorem ipsum .... | ||||||||||||||||||||
italicized text | <p>''Lorem ipsum ....''</p> | Lorem ipsum .... | ||||||||||||||||||||
multiple attributes | <p style="font-family:times new roman; font-size:14pt; color:blue">Lorem ipsum ....</p>
Note the semi-colon between attributes |
Lorem ipsum .... | ||||||||||||||||||||
backgrounds | <p style="background:lightgray">Lorem ipsum ....</p>
Click here for all acceptable colors |
Lorem ipsum .... | ||||||||||||||||||||
padding | <p style="padding:10px">Lorem ipsum ....</p>
|
Content .... Content ....
| ||||||||||||||||||||
Margins | <p style="margin:10px">Lorem ipsum ....</p>
|
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 | <p style="border:1px solid black; border-radius:5px">Lorem ipsum ....</p>
|
Lorem ipsum .... | ||||||||||||||||||||
border shadow | <p style="border:1px solid black; box-shadow:5px 5px 3px lightgray">Lorem ipsum ....</p>
|
Lorem ipsum .... | ||||||||||||||||||||
width and height | <p style="width:200px; height:50px">Lorem ipsum ....</p> |
Lorem ipsum .... | ||||||||||||||||||||
Alignment - horizontal | <p style="text-align:center">Lorem ipsum ....</p>
|
Lorem ipsum .... | ||||||||||||||||||||
alignment - vertical | <p style="height:50px; line-height:50px">Lorem ipsum ....</p>
|
Lorem ipsum .... | ||||||||||||||||||||
Tables |
|
|||||||||||||||||||||
Text Wrapping (floating) | <p style="float:right">Lorem ipsum ....</p> |
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">
|