Wikitext Cheatsheet: Difference between revisions
m (Created page with "<!--lone div tag to move right sidebar to bottom----------------------------> <div> <!--opening table tag for entire document----------------------------------> <div style="borde...") |
mNo edit summary |
||
(25 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<!--lone div tag to move right sidebar to bottom----------------------------> | {{breadcrumb | ||
<div> | | link1=[[Get_Involved_in_Wiki_Projects|Get Involved in Wiki]] | ||
<!--opening table tag for entire document----------------------------------> | | link2=[[Help:Wiki_Help|Help:Wiki Help]] | ||
<div style="border:5px solid darkred; border-radius:10px; background:#FFE4B5; width:870px; height:100%; text-align:center; padding:10px; margin-bottom:10px; box-shadow:5px 5px 3px #888888"><span style="font-size:36px; font-family:arial; padding:10px">WIKITEXT CHEATSHEET</span><br>Condensed | | link3=[[Help:Editing the Wiki|Help:Editing the Wiki]] | ||
| link4= | |||
| link5={{PAGENAME}} | |||
}} | |||
<div><!--lone div tag to move right sidebar to bottom----------------------------> | |||
<div><!--opening table tag for entire document----------------------------------> <div style="border:5px solid darkred; border-radius:10px; background:#FFE4B5; width:870px; height:100%; text-align:center; padding:10px; margin-bottom:10px; box-shadow:5px 5px 3px #888888"><span style="font-size:36px; font-family:arial; padding:10px">WIKITEXT CHEATSHEET</span><br>Condensed guide to Wikitext coding | |||
''Click on sort icon to put list in alphabetical order'' | |||
</div> | |||
{| style="width:900px; height:100%; border:2px solid green" class="sortable" | |||
|- style="background:#FFE4B5" | |||
! style="width:150px; border:1px solid black; font-size:18px; padding:10px" | Description | |||
! style="width:50%; border:1px solid black; font-size:18px; padding:10px" | Type | |||
! style="border:1px solid black; font-size:18px; padding:10px" | You Get | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Headers|Headers]] | |||
| style="border:1px solid black" | <nowiki>==Header 2==</nowiki><br><nowiki>===Header 3===</nowiki> | |||
| style="border:1px solid black" | <div style="font-family:new times roman; font-size:2em">Header 2</div><div style="font-family:new times roman; font-size:1.6em; margin-top:5px">Header 3</div> | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Lists#Unordered_Lists|Lists - unordered]] | |||
| style="border:1px solid black" | <nowiki>*Item one</nowiki><br><nowiki>*Item two</nowiki><br><nowiki>*Item three</nowiki> | |||
| style="border:1px solid black" | | |||
*Item one | |||
*Item two | |||
*item three | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Lists#Ordered_Lists|Lists - ordered]] | |||
| style="border:1px solid black" | <nowiki>#Item one</nowiki><br><nowiki>#Item two</nowiki><br><nowiki>#Item three</nowiki> | |||
| style="border:1px solid black" | | |||
#Item one | |||
#Item two | |||
#item three | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Links#Internal_Links|Links - internal]] | |||
| style="border:1px solid black" | <font color="red"><nowiki>[[</nowiki></font>Missouri Genealogy<font color="red"><nowiki>|</nowiki></font>Missouri<font color="red"><nowiki>]]</nowiki></font><br>''Double square brackets - Name of article - pipe - User-defined link name'' | |||
| style="border:1px solid black" | [[Missouri, United States Genealogy|Missouri]] | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Links#External_Links|Links - external]] | |||
| style="border:1px solid black" | <font color="red"><nowiki>[</nowiki></font><nowiki>https://</nowiki>familysearch.org<font color="red">''(space)''</font>Family Search<font color="red"><nowiki>]</nowiki></font><br>''Single square brackets - URL of external link - space - User-defined link name'' | |||
| style="border:1px solid black" | [https://familysearch.org/ Family Search]<br>''Notice little box and arrow at the end of the name of the link.'' | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Comments|Comments]] | |||
| style="border:1px solid black" | <font color="red"><nowiki><!--</nowiki></font>Comment goes here between dashes<font color="red"><nowiki>--></nowiki></font><br>''(At least <font color="red">two</font> dashes are required on either side of the comment)'' | |||
| style="border:1px solid black" | ''(No comments should appear)'' | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Categories|Categories]] | |||
| style="border:1px solid black" | <font color="red"><nowiki>[[Category:</nowiki></font>name of category<font color="red">]]</font> | |||
| style="border:1px solid black" | <nowiki>[[Category:Name of Category]]</nowiki> | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Images|Images]] | |||
| style="border:1px solid black" | <font color="red"><nowiki>[[File:</nowiki></font>name of image<font color="red">|</font>location on page<font color="red">|</font>size in px<font color="red">|</font>caption<font color="red">]]</font> | |||
| style="border:1px solid black" | IMAGE | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Paragraphs|Paragraph]] | |||
| 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" | [[Help:Wiki_University_Wikitext--Inline_Styling|In-line style]] | |||
| 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" | [[Help:Wiki_University_Wikitext--Changing_Fonts#Enlarging fonts|font-size]] | |||
| 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" | | |||
Lorem ipsum ..... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Changing Fonts|font-family]] | |||
| 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'' | |||
| style="border:1px solid black" | | |||
Lorem ipsum ..... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Colors|font-color]] | |||
| 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'' | |||
| style="border:1px solid black" | | |||
Lorem ipsum ..... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Font Bold-Italics#Bold_fonts|bold text]] | |||
| 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" | [[Help:Wiki University Wikitext--Font Bold-Italics#Italicized_fonts|italicized text]] | |||
| 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" | [[Help:Wiki University Wikitext--Multi-attributes|multiple attributes]] | |||
| 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'' | |||
| style="border:1px solid black" | | |||
Lorem ipsum .... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Backgrounds|backgrounds]] | |||
| 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'' | |||
| style="border:1px solid black" | | |||
Lorem ipsum .... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Padding|padding]] | |||
| 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'''''. | |||
*''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>.'' | |||
*''Example: <font color="red"><nowiki>padding-top:10px</nowiki></font>'' | |||
| style="border:1px solid black" | <div style="border:1px solid black; padding:10px">Content ....</div><div style="border:1px solid black; padding:10px">Content ....</div> | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Margins|Margins]] | |||
| 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 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>.'' | |||
*''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>. | |||
*''Example: <font color="red"><nowiki>padding-top:10px</nowiki></font>'' | |||
*''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>. | |||
*''Example: <font color="red"><nowiki>margin-top:10px</nowiki></font>'' | *''Example: <font color="red"><nowiki>margin-top:10px</nowiki></font>'' | ||
[[ | [[Image:Tip New.jpg|left|75px|Tip New.jpg]]''Without borders, the spacing between contents looks about the same whether you use padding or margins. Just be aware of the effects of these attributes if you are using borders around your content''. | ||
| style="border:1px solid black" | <div style="border:1px solid black; margin:10px">Contents....</div> <div style="border:1px solid black; margin:10px">Contents ....</div> | |||
<div style="border:1px solid black; margin:10px">Contents ....</div> | *''Please note: '''Margins overlap.''''' | ||
*''Please note: '''Margins overlap.''''' | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Div Tag - Introduction|div tag]] | |||
| style="border:1px solid black" | <nowiki><div style="</nowiki><font color="red">font-family:times new roman; font-size:14pt; color:blue</font>">Lorem ipsum ....<nowiki></div></nowiki><div>''No builtin margins or padding as in paragraph tags''</div> | |||
| style="border:1px solid black" | <div style="font-family:times new roman; font-size:14pt; color:blue">Lorem ipsum ....</div> | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Borders|borders]] | |||
| style="border:1px solid black" | <nowiki><div style="</nowiki><font color="red">border:1px solid black</font>">Lorem ipsum ....<nowiki></div></nowiki> | |||
*''The border property is in three parts.'' | |||
*''First part is the width of the border line in pixels.'' | |||
*''Second part is the [http://www.w3schools.com/css/css_border.asp kind of line], whether solid, dashed, dotted, etc.'' | |||
*''The border property is in three parts.'' | |||
*''First part is the width of the border line in pixels.'' | |||
*''Second part is the [http://www.w3schools.com/css/css_border.asp kind of line], whether solid, dashed, dotted, etc.'' | |||
*''Third is the color of the border.'' | *''Third is the color of the border.'' | ||
| style="border:1px solid black" | | |||
Lorem ipsum .... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Borders#Border_radius|border radius]] | |||
| 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''. | ||
| style="border:1px solid black" | | |||
Lorem ipsum .... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Borders#Border_shadow|border shadow]] | |||
*''First number is the distance from bottom of border to bottom edge of shadow.'' | | 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> | ||
*''Second number is the distance from right edge of border to right edge of shadow.'' | *''First number is the distance from bottom of border to bottom edge of shadow.'' | ||
*''Third number is height of object above plain of the page.'' | *''Second number is the distance from right edge of border to right edge of shadow.'' | ||
*''Fourth is the color of the shadow''. | *''Third number is height of object above plain of the page.'' | ||
*''Fourth is the color of the shadow''. | |||
| style="border:1px solid black" | | |||
Lorem ipsum .... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Width and Height|width and height]] | |||
| 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" | | |||
Lorem ipsum .... | |||
|- | |||
*''Can align in center and right''. | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Alignment#Centering_titles|Alignment - horizontal]] | ||
*''Default alignment is left.'' | | 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''. | |||
*''Default alignment is left.'' | |||
| style="border:1px solid black" | | |||
Lorem ipsum .... | |||
*''Line height has to equal height of container.'' | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Alignment#Vertical_alignment|alignment - vertical]] | |||
| 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.'' | |||
| style="border:1px solid black" | | |||
Lorem ipsum .... | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables|Tables]] | |||
| style="border:1px solid black" | | |||
{| | |||
|- | |||
| style="width:20px" | <font color="red"><nowiki>{|</nowiki></font> | |||
| Beginning table tag | |||
|- | |||
| style="width:20px" | <font color="red"><nowiki>|+</nowiki></font> | |||
| Table caption | |||
|- | |||
| style="width:20px" | <font color="red"><nowiki>|-</nowiki></font> | |||
| Row tag | |||
|- | |||
| style="width:20px" | <font color="red"><nowiki>!</nowiki></font> | |||
*''To add styling to each of these wikitext table tags, use inline styling.'' | | Column heading | ||
|- | |||
| style="width:20px" | <font color="red"><nowiki>|</nowiki></font> | |||
| Cell tag | |||
|- | |||
| style="width:20px" | <font color="red"><nowiki>|}</nowiki></font> | |||
| Ending table tag | |||
|} | |||
*''To add styling to each of these wikitext table tags, use inline styling.'' | |||
*''Example: <font color="red"><nowiki>{| style="border:1px solid black; width:200px"</nowiki></font>'' | *''Example: <font color="red"><nowiki>{| style="border:1px solid black; width:200px"</nowiki></font>'' | ||
| style="border:1px solid black" | | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Placement|Text Wrapping (floating)]] | |||
| 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]] | |||
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. | |||
|- | |||
[[ | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Scrolling|Table scrolling]] | ||
| style="border:1px solid black" | <font color="red"><nowiki><div style="overflow:scroll; width:300px; height:100px"</nowiki></font> | |||
<nowiki>{| style="border:1px solid red" </nowiki> <br><nowiki>|- </nowiki> <br><nowiki>. </nowiki> <br><nowiki>. </nowiki> <br><nowiki>. </nowiki> | |||
<font color="red"><nowiki></div></nowiki></font> | |||
| style="border:1px solid black" | <div style="overflow:scroll; width:300px; height:100px;"> | |||
{| style="border:1px solid red; width:900px; margin-bottom:0px" | |||
<nowiki>{| style="border:1px solid red" </nowiki> | |- | ||
<br><nowiki>|- </nowiki> | ! Fruits | ||
<br><nowiki>. </nowiki> | ! Vegetable | ||
<br><nowiki>. </nowiki> | ! Nuts | ||
<br><nowiki>. </nowiki | |||
<font color="red"><nowiki></div></nowiki></font | |||
{| style="border:1px solid red; width:900px; margin-bottom:0px " | |||
|- | |||
! Fruits | |||
! Vegetable | |||
! Nuts | |||
! Grains | ! Grains | ||
|- | |- | ||
| Apples | | Apples | ||
| Peas | | Peas | ||
| Peanuts | | Peanuts | ||
| Wheat | | Wheat | ||
|- | |- | ||
| Pears | | Pears | ||
| Carrots | | Carrots | ||
| Walnuts | | Walnuts | ||
| Oats | | Oats | ||
|- | |- | ||
| Cherries | | Cherries | ||
| Corn | | Corn | ||
| Cashews | | Cashews | ||
| Barley | | Barley | ||
|- | |- | ||
| Orange | | Orange | ||
| Beans | | Beans | ||
| Almonds | | Almonds | ||
| Buckwheat | | Buckwheat | ||
|} | |} | ||
</div | </div> | ||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Templates|Templates]] | |||
| 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 embed a template'': <font color="red"><nowiki>{{</nowiki></font>name of template<font color="red"><nowiki>}}</nowiki></font> | |||
''To save a template'': <font color="red"><nowiki>{{</nowiki></font>Template:name of template<font color="red"><nowiki>}}</nowiki></font><br> | | style="border:1px solid black" | | ||
''To | |- | ||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Breadcrumb Trails|Breadcrumb trails]] | |||
| style="border:1px solid black" | | |||
The Breadcrumb trail is a specialized template where one enters internal links leading to the page you are on:<br> | |||
<font size="2px"><font color="red"><nowiki>{{breadcrumb</nowiki></font></font><br> | |||
<font size="2px"><font color="red"><nowiki>| link1=[[United States Genealogy|United States]]</nowiki></font></font><br> | |||
<font size="2px"><font color="red"><nowiki>| link2=[[Missouri, United States Genealogy|Missouri]]</nowiki></font></font><br> | |||
<font color="red"><nowiki>[[</nowiki></font> | <font size="2px"><font color="red"><nowiki>| link3=</nowiki></font></font><br> | ||
*''Don't forget pipe between Article name and link name.'' | <font size="2px"><font color="red"><nowiki>| link4=</nowiki></font></font><br> | ||
<font size="2px"><font color="red"><nowiki>| link5=[[Adair County, Missouri Genealogy|Adair County]]</nowiki></font></font><br> | |||
<font size="2px"><font color="red"><nowiki>}}</nowiki></font></font><br> | |||
*''Don't forget pipe between Article name and user-defined link name.'' | |||
*''link5 will always point to the page you are on.'' | |||
| style="border:1px solid black" | | |||
{{breadcrumb | |||
| link1=[[United States Genealogy|United States]] | |||
| link2= [[Missouri, United States Genealogy|Missouri]] | |||
| link3= | |||
| link4= | |||
| link5=[[Adair County, Missouri Genealogy|Adair County]] | |||
}} | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--References/Footnotes|References/Footnotes]] | |||
| style="border:1px solid black" | <font color="red"><nowiki><ref></nowiki></font>This is a footnote<font color="red"><nowiki></ref></nowiki></font> | |||
*''The footnote and ref tags are place right after the item<ref>This is a footnote</ref> you want to footnote regardless of what comes after it even if in the middle of a sentence''. | *''The footnote and ref tags are place right after the item<ref>This is a footnote</ref> you want to footnote regardless of what comes after it even if in the middle of a sentence''. | ||
*'' | *''Place a header named '''References''' as the last header on the page | ||
*''Under the References header place a list of your footnotes/references using this code'': <font color="red"><nowiki><references/></nowiki></font> | |||
| style="border:1px solid black" | {{reflist}} | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--SEO|SEO]] | |||
| style="border:1px solid black" | | |||
*A short sentence of about 25 words giving details as to what material is in the article. | *A short sentence of about 25 words giving details as to what material is in the article. | ||
*Appears just under the breadcrumb trail. | *Appears just under the breadcrumb trail. | ||
*When you search your browser for a topic this SEO will appear under the title of the web page. | *When you search your browser for a topic this SEO will appear under the title of the web page. | ||
*Take some pains to create this SEO, the world will see it and hopefully want to visit your page because of what you wrote in the SEO. | *Take some pains to create this SEO, the world will see it and hopefully want to visit your page because of what you wrote in the SEO. | ||
Guide to '''Adair County, Missouri ancestry, family history, and genealogy''' birth records, marriage records, death records, census records | | style="border:1px solid black" | | ||
{{breadcrumb | |||
| link1=[[United States Genealogy|United States]] | |||
| link2= [[Missouri, United States Genealogy|Missouri]] | |||
| link3= | |||
| link4= | |||
<nowiki>{|</nowiki><br> | | link5=[[Adair County, Missouri Genealogy|Adair County]] | ||
<nowiki>|-</nowiki><br> | }} | ||
<nowiki>|</nowiki> <font color="red">colspan="2"</font> style="........."| Content to span two columns<br> | <br> | ||
<nowiki>|-</nowiki><br> | Guide to '''Adair County, Missouri ancestry, family history, and genealogy''' birth records, marriage records, death records, census records, and military records. | ||
<nowiki>| content</nowiki> <br> | |||
<nowiki>| content</nowiki> <br> | |- | ||
<nowiki>|}</nowiki> | | style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Column Spans|Table column spans]] | ||
| style="border:1px solid black" | | |||
<nowiki>{|</nowiki><br> <nowiki>|-</nowiki><br> <nowiki>|</nowiki> <font color="red">colspan="2"</font> style="........."| Content to span two columns<br> <nowiki>|-</nowiki><br> <nowiki>| content</nowiki> <br> <nowiki>| content</nowiki> <br> <nowiki>|}</nowiki> | |||
*''Notice there is only one cell in the row where the column span is located.'' | *''Notice there is only one cell in the row where the column span is located.'' | ||
| style="border:1px solid black" | | |||
{| style="width:250px; border:1px solid black" | {| style="width:250px; border:1px solid black" | ||
|- | |- | ||
| | | style="text-align:center; border:1px solid black; background:lightgrey" colspan="2" | Content to span two columns | ||
|- | |- | ||
| style="border:1px solid black" | content | | style="border:1px solid black" | content | ||
| style="border:1px solid black" | content | | style="border:1px solid black" | content | ||
|} | |} | ||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Row Spans|Table row span]] | |||
| style="border:1px solid black" | | |||
<nowiki>{|</nowiki><br> <nowiki>|-</nowiki><br> | <font color="red"><nowiki>rowspan="2"</nowiki></font> | content<br> <nowiki>| second row content</nowiki><br> <nowiki>| third row content</nowiki><br> <nowiki>|-</nowiki><br> <nowiki>| second row content</nowiki><br> <nowiki>| third row content</nowiki><br> <nowiki>|}</nowiki> | |||
<nowiki>{|</nowiki><br> | |||
<nowiki>|-</nowiki><br> | |||
| <font color="red"><nowiki>rowspan="2"</nowiki></font> | content<br> | |||
<nowiki>| second row content</nowiki><br> | |||
<nowiki>| third row content</nowiki><br> | |||
<nowiki>|-</nowiki><br> | |||
<nowiki>| second row content</nowiki><br> | |||
<nowiki>| third row content</nowiki><br> | |||
<nowiki>|}</nowiki> | |||
*''Notice one less cell in the second row.'' | *''Notice one less cell in the second row.'' | ||
| style="border:1px solid black" | | |||
{| style="border:1px solid black; width:250px" | {| style="border:1px solid black; width:250px" | ||
|- | |- | ||
| | | style="border:1px solid black; background:lightgrey" rowspan="2" | content | ||
| style="border:1px solid black" | | | style="border:1px solid black" | first row second cell content | ||
| style="border:1px solid black" | first row third cell content | | style="border:1px solid black" | first row third cell content | ||
|- | |- | ||
| style="border:1px solid black" | second row second cell content | | style="border:1px solid black" | second row second cell content | ||
| style="border:1px solid black" | second row third cell content | | style="border:1px solid black" | second row third cell content | ||
|} | |} | ||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Infobox - Creating#Parameters|Parameters]] | |||
| style="border:1px solid black" | <font color="red"><nowiki>{{{</nowiki></font>parameter<font color="red"><nowiki>}}}</nowiki></font><br> | |||
*''Parameters are usually part of a template.'' | |||
*''Parameters are usually part of a template. | |||
*''To place a parameter'': <br> | *''To place a parameter'': <br> | ||
<nowiki>{{</nowiki>Name of template<br> | |||
<font color="red">| parameter= name of parameter</font><br> | <nowiki>{{</nowiki>Name of template<br> <font color="red">| parameter= name of parameter</font><br> <nowiki>}}</nowiki> | ||
<nowiki>}}</nowiki> | |||
*Note the pipe before the parameter and the equal sign after. | *Note the pipe before the parameter and the equal sign after. | ||
| style="border:1px solid black" | name of parameter | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Infobox - If functions|If functions]] | |||
| style="border:1px solid black" | <font color="red"><nowiki>|{{#if:{{{parameter|}}}</nowiki></font>|name of parameter<br> | |||
|{{{parameter}}} <font color="red"><nowiki>}}</nowiki></font> <br> | |||
|{{{parameter}}} <font color="red"><nowiki>}}</nowiki></font> | *''Be careful and be sure that all symbols are present in your code. If a single pipe is missing, for example, this will not work.''<br> | ||
<nowiki>| parameter= </nowiki> If nothing is entered after the equal sign the entire line will be missing. | |||
<br> | <br> | ||
If the parameter is blank, there is no line. If the parameter is added, the text will show. | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Position - Relative|Position relative]] | |||
| style="border:1px solid black" | <nowiki><div style="</nowiki><font color="red">position:relative</font>"><br> | |||
<nowiki><div style="</nowiki><font color="red">position:relative</font>" | |||
*You can place the relative position objects with top or bottom and left or right attributes:<br> | *You can place the relative position objects with top or bottom and left or right attributes:<br> | ||
<nowiki><div style="position:relative;</nowiki><font color="red"> top:20px; left:100px</font><nowiki>">Stuff</div></nowiki> | |||
<nowiki><div style="position:relative;</nowiki><font color="red">top:20px; left:100px</font><nowiki>">Stuff</div></nowiki> | |||
*''Remember relative position places objects in relation to where the browser would put the object on a page, if not told otherwise''. | *''Remember relative position places objects in relation to where the browser would put the object on a page, if not told otherwise''. | ||
| style="border:1px solid black" | | |||
|- | |||
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Position - Absolute|Position-absolute]] | |||
| style="border:1px solid black" | <nowiki><div style="</nowiki><font color="red">position:absolute</font>"><br> | |||
*''All "position absolute" should be within "position relative" attributes.'' | |||
<nowiki><div style="position:relative"></nowiki><br> <font color="red"><nowiki><div style="position absolute; top:50px; left:50px">Stuff</div></nowiki></font><br> <nowiki></div></nowiki> | |||
<nowiki><div style="</nowiki><font color="red">position:absolute</font>" | |||
*''All "position absolute" should be within "position relative" attributes. | |||
<nowiki><div style="position:relative"></nowiki><br> | |||
<font color="red"><nowiki><div style="position absolute; top:50px; left:50px">Stuff</div></nowiki></font><br> | |||
<nowiki></div></nowiki | |||
</ | *''Remember absolute position places items in just where you want it''. | ||
*''You are not controlled by the browser as in relative position.'.'' | |||
*''However, it ignores what is already on the page in the same spot and covers it up''. | |||
*''Most of the time your absolute positioned item will be inside relative position object''. | |||
| style="border:1px solid black" | | |||
|} | |||
[[Category:Wikitext_Lessons]] </div> |
Latest revision as of 17:43, 2 January 2024
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">
|