Wikitext Cheatsheet: Difference between revisions

m
Text replacement - "|" to "|"
m (Text replacement - "census records, family history, and military records." to "census records, and military records.")
m (Text replacement - "|" to "|")
Line 53: Line 53:
|-
|-
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Images|Images]]
| 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">&#124;</font>location on page<font color="red">&#124;</font>size in px<font color="red">&#124;</font>caption<font color="red">]]</font>
| 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" | IMAGE
|-
|-
Line 317: Line 317:
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Column Spans|Table column spans]]
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Column Spans|Table column spans]]
| style="border:1px solid black" |  
| style="border:1px solid black" |  
<nowiki>{|</nowiki><br> <nowiki>|-</nowiki><br> <nowiki>|</nowiki> <font color="red">colspan="2"</font> style="........."&#124; Content to span two columns<br> <nowiki>|-</nowiki><br> <nowiki>| content</nowiki> <br> <nowiki>| content</nowiki> <br> <nowiki>|}</nowiki>  
<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.''
Line 333: Line 333:
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Row Spans|Table row span]]
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Tables - Row Spans|Table row span]]
| style="border:1px solid black" |  
| style="border:1px solid black" |  
<nowiki>{|</nowiki><br> <nowiki>|-</nowiki><br> &#124; <font color="red"><nowiki>rowspan="2"</nowiki></font> &#124; 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.''
Line 354: Line 354:
*''To place a parameter'': <br>
*''To place a parameter'': <br>


<nowiki>{{</nowiki>Name of template<br> <font color="red">&#124; parameter= name of parameter</font><br> <nowiki>}}</nowiki>  
<nowiki>{{</nowiki>Name of template<br> <font color="red">| parameter= name of parameter</font><br> <nowiki>}}</nowiki>  


*Note the pipe before the parameter and the equal sign after.
*Note the pipe before the parameter and the equal sign after.
Line 361: Line 361:
|-
|-
| style="border:1px solid black" | [[Help:Wiki University Wikitext--Infobox - If functions|If functions]]
| 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>&#124;name of parameter<br>  
| style="border:1px solid black" | <font color="red"><nowiki>|{{#if:{{{parameter|}}}</nowiki></font>|name of parameter<br>  
&#124;{{{parameter}}} <font color="red"><nowiki>}}</nowiki></font> <br>  
|{{{parameter}}} <font color="red"><nowiki>}}</nowiki></font> <br>  


*''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>
*''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>