PK ref

From Sagataflwiki

(Difference between revisions)
Jump to: navigation, search
(Adding X in between PRE tgs in the newly emptied cell, to preserve "pretty" layout)
(removing "not tested" text since it has now been tested and found to work)
 
(13 intermediate revisions not shown)
Line 8: Line 8:
! Notes
! Notes
|-
|-
-
| colspan in table ||colspan=5| <pre>|colspan=2| 1st colspan column ||colspan=2| 2nd colspan column</pre> || use rowspan=X in the same way
+
| Control column width ||colspan=5| <pre>!!scope="col" style="width: 25em;" | Stuff A !! Stuff B </pre> || Preferably place in header row. Controls the width of the Stuff A column.
 +
|-
 +
| colspan in table ||colspan=5| <pre>|colspan=2| 1st colspan cell ||colspan=2| 2nd colspan cell</pre> || use rowspan=X in the same way
|-
|-
| Making a piped link || <pre>[[Destination|ClickMe]]</pre> ||  ||  ||rowspan=2| The basic structure of a table  ||rowspan=2|
| Making a piped link || <pre>[[Destination|ClickMe]]</pre> ||  ||  ||rowspan=2| The basic structure of a table  ||rowspan=2|
Line 24: Line 26:
| Linking to a category || <pre>[[:Category:XYZ]]</pre> ||  ||  || Control font size  || <pre><font size="+1">word</font></pre> || Use only values of -2, +1 and higher
| Linking to a category || <pre>[[:Category:XYZ]]</pre> ||  ||  || Control font size  || <pre><font size="+1">word</font></pre> || Use only values of -2, +1 and higher
|-
|-
-
| Adding invisibly to a category || <pre>[[Category:XYZ| ]]</pre> || Article does not show up on category page ||  || For starting a new article ||align="center"| <br>[[Article in wikitext|Click me!]] || Leads to the template or structure for new articles
+
| Ending part w. horiz. stacked tables || <pre><br style="clear:left"></pre> || Presumably use "right" for right-stacked tables? ||  || For starting a new article ||align="center"| <br>[[Article in wikitext|Click me!]] || Leads to the template or structure for new articles
|-
|-
-
| Comment || <pre><!-- comment --></pre> ||  ||  ||  || <pre>x</pre> ||  
+
| Comment || <pre><!-- comment --></pre> ||  ||  ||  || <pre></pre> ||  
|-
|-
-
| #REDIRECT [[pagename]] || <pre>#REDIRECT [[pagename]]</pre> || Must be on 1st line of page ||  ||  || <pre>x</pre> ||  
+
| Making a redirect to another page || <pre>#REDIRECT [[pagename]]</pre> || Must be on 1st line of page ||  ||  || <pre></pre> ||  
|-
|-
-
| Non-breaking space || <pre>&amp;nbsp;</pre> || Inserted into any normal text ||  ||  || <pre>x</pre> ||  
+
| Soft hyphen || <pre>&amp;shy;</pre> || Tells browser it's OK to break up word there ||  ||  || <pre></pre> ||  
|-
|-
-
| || <pre>x</pre> || ||  ||  || <pre>x</pre> ||  
+
| Non-breaking space || <pre>&amp;nbsp;</pre> || Inserted into any normal text ||  ||  || <pre></pre> ||  
|-
|-
-
| || <pre>x</pre> ||  ||  ||  || <pre>x</pre> ||  
+
| Non-breaking hyphen || <pre>&amp;#8209;</pre> ||  ||  ||  || <pre></pre> ||  
|-
|-
-
|  || <pre>x</pre> ||  ||  ||  || <pre>x</pre> ||  
+
|  || <pre></pre> ||  ||  ||  || <pre></pre> ||
 +
|-
 +
|  || <pre></pre> ||  ||  ||  || <pre></pre> ||  
|-
|-
! Thing !! Wikitext !! Notes !!  !! Thing !! Wikitext !! Notes
! Thing !! Wikitext !! Notes !!  !! Thing !! Wikitext !! Notes
|}
|}
-
spacer
 
-
{|
 
-
! Thing !! Wikitext !! Notes !!  !!  !!  !! Thing !! Wikitext !! Notes
 
-
|-
 
-
| Making a piped link || <pre>[[Destination|ClickMe]]</pre> ||  ||  ||  ||  || Making a redirect || <pre>#REDIRECT [[pagename]]</pre> || Must be on 1st line of page.
 
-
|-
 
-
| Adding a category || <pre>[[Category:XYZ]]</pre> ||  ||  ||  ||  || Non-breaking space || <pre>&amp;nbsp;</pre> || Inserted into any normal text.
 
-
|-
 
-
| Linking to a category || <pre>[[:Category:XYZ]]</pre> ||  ||  ||  ||  ||rowspan=2| The basic structure of a table ||rowspan=2|
 
-
<pre>{|style="margin: 1px;"
 
-
! A !! B !! C
 
-
|-
 
-
| 1 || 2 || 3
 
-
|-
 
-
| 4 || 5 || 6
 
-
|}
 
-
</pre>
 
-
|rowspan=2| Table is 3 columns, 3 rows, and includes 1 pixel external buffer/margin on top, bottom, right and left.
 
-
|-
 
-
| Adding invisibly to a category || <pre>[[Category:XYZ| ]]</pre> || Article does not show up on category page ||  ||  ||
 
-
|-
 
-
| Comment || <pre><!-- comment --></pre> ||  ||  ||  ||  || For starting a new article ||align="center"| <br>[[Article in wikitext|Click me!]] || Leads to the template or structure for new articles
 
-
|-
 
-
| colspan in table ||colspan=7| <pre>|colspan=2| 1st colspan column ||colspan=2| 2nd colspan column</pre> || use rowspan in the same way.
 
-
|-
 
-
| Control font size || <pre><font size="+1">word</font></pre> ||  ||  ||  ||  ||  || <pre>x</pre> ||
 
-
|-
 
-
|  || <pre>x</pre> ||  ||  ||  ||  ||  || <pre>x</pre> ||
 
-
|}
 
-
<!-- the middle cells are to add more spacing between the two "parts" of the table. Put content into only the first 3 cells and the last 3 cells of each row -->
 
<br><br>
<br><br>

Latest revision as of 14:45, 18 June 2011

Thing Wikitext Notes Thing Wikitext Notes
Control column width
!!scope="col" style="width: 25em;" | Stuff A !! Stuff B 
Preferably place in header row. Controls the width of the Stuff A column.
colspan in table
|colspan=2| 1st colspan cell ||colspan=2| 2nd colspan cell
use rowspan=X in the same way
Making a piped link
[[Destination|ClickMe]]
The basic structure of a table
{|style="margin: 2px;"
! A !! B !! C
|-
| 1 || 2 || 3
|}
Table is 3 columns, 2 rows (1st row is header formatted), and includes a 2 pixel external buffer/margin on top, bottom, right and left.
Adding to a category
[[Category:XYZ]]
use on an article or category page
Linking to a category
[[:Category:XYZ]]
Control font size
<font size="+1">word</font>
Use only values of -2, +1 and higher
Ending part w. horiz. stacked tables
<br style="clear:left">
Presumably use "right" for right-stacked tables? For starting a new article
Click me!
Leads to the template or structure for new articles
Comment
<!-- comment -->
 
Making a redirect to another page
#REDIRECT [[pagename]]
Must be on 1st line of page
 
Soft hyphen
&shy;
Tells browser it's OK to break up word there
 
Non-breaking space
&nbsp;
Inserted into any normal text
 
Non-breaking hyphen
&#8209;
 
 
 
 
 
Thing Wikitext Notes Thing Wikitext Notes



Note, this is a personal reference page for editor Peter Knutsen. Nobody else should ever make any alterations to this page, without explicit permisson from Peter Knutsen. You are, however, welcome to copy from it

This page contains the wikitext usage references most frequently used by Peter Knutsen, which he finds hard or impossible to remember at the present time.

Personal tools