Help:Editing: Difference between revisions

m
link fix
(changed sample OCF links (RIP OCF); removed some niche advice on specific templates; various wording)
m (link fix)
 
(2 intermediate revisions by the same user not shown)
Line 134: Line 134:
Normally we apply the class "wikitable" to a table to give it borders and make it look pretty with <code>{| class="wikitable"</code>, though you can do a lot of manual styling for almost any custom look you want (see {{SectionLink||Further help}} to read more about tables).
Normally we apply the class "wikitable" to a table to give it borders and make it look pretty with <code>{| class="wikitable"</code>, though you can do a lot of manual styling for almost any custom look you want (see {{SectionLink||Further help}} to read more about tables).


To make the table a fixed width, add this CSS styling to the first line: <code>{| style="width:500px;"</code>. You can also use a percentage such as <code>width:50%;</code>. To center the table on the page, use <code>{| style="margin-left:auto; margin-right:auto;"</code>. To right-align it, use <code>"float:right;"</code> instead.
To make the table a fixed width, add this CSS styling to the first line: <code>{| style="width:500px;"</code>. You can also use a percentage such as <code>width:50%;</code>. To center the table on the page, use <code>{| style="[[Template:Center|<nowiki>{{center}}</nowiki>]]"</code>. To right-align it, use <code>"float:right;"</code> instead.


You can add styling directives to individual columns, rows and cells like this:
You can add styling directives to individual columns, rows and cells like this:
Line 164: Line 164:


==Advanced tricks==
==Advanced tricks==
Some of these "tricks" are very simple in practice, but hard to remember. This is basically a list of bookmarks to helpful examples around the wiki:
Some of these "tricks" are very simple in practice, but hard to remember. This is basically a list of bookmarks to helpful examples around the wiki. Remember to also look at our [[templates]], which perform additional tricks that are not all documented below.
*Alphabetic footnotes: [[Quotes/Manual]]
*Alphabetic footnotes: [[Quotes/Manual]]
*Indenting wrapped text: [[Walkthrough]]
*Indenting wrapped text: [[Walkthrough]]
Line 175: Line 175:
**Advanced styling: [[Template:OBD File Header]]
**Advanced styling: [[Template:OBD File Header]]
**Aesthetic designs: [[Template:PoliciesSidebox]], [[Anniversary Edition]]
**Aesthetic designs: [[Template:PoliciesSidebox]], [[Anniversary Edition]]
**Hideable columns: [[OBD:Versions]]
**Hideable columns: [[OBD:Releases]]
**Multipart tables: [[Rights]]
**Multipart tables: [[Rights]]
**Multirow sortable groups: {{SectionLink|Videos|Full playthroughs}}
**Multirow sortable groups: {{SectionLink|Videos|Full playthroughs}}