Changes

Jump to navigation Jump to search
9,841 bytes added ,  10:05, 13 March 2018
m
1 revision imported: Resources from GCPedia
{{Help pages header}} {{Help TOC|star=1}}

This '''Help section on Advanced Editing''' explains the codes used to format text in various ways. Text format codes for centering, strikethroughs, superscripts, subscripts, hidden comments (only visible to other editors), headlines, tabs, fonts (including font size and colours), links (including internal links and "piped links"), references, and underlining.

= Text formatting =

Here are some tips on how to format your text:

== Centre align ==

*To centre text, use the following code:
**Enter <nowiki><div style="text-align: center;"></nowiki>
**Then enter your text
**Finally, enter <nowiki></div></nowiki>

*Overall, your code should look like this:

<nowiki><div style="text-align: center;">
Centered text
</div></nowiki>

*Once you have entered that code, your text will look like this:
<div style="text-align: center">
Centered text
</div>
== Strikethrough ==

*To strikethrough text, use the following code:
**Enter <nowiki><s></nowiki> before the text.
**Enter the text
**Enter <nowiki></s></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><s>blah blah blah</s></nowiki>

*Once you have entered that code, your text will look like this:

<s>blah blah blah</s>

Strikethrough can be used as a transparent way of retracting a comment that you made on a Discussion page. For example, if an editor made an earlier comment that "User XYZ is completely incorrect, and she/he does not know the issues", and upon subsequent reflection, she/he wishes to retract that comment, the strikethrough feature could be used. It is more "transparent" in that the comment is seen to be withdrawn, and yet it is not erased, so the record of the dialogue is preserved. Strikethrough is not normally used in articles.

== Superscript ==

*To insert a superscript, use the following code:
**Enter <nowiki><sup></nowiki> before the text.
**Enter the text
**Enter <nowiki></sup></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><sup>blah blah blah</sup></nowiki>

*Once you have entered that code, your text will look like this:

blah blah blah <sup>blah blah blah</sup>

== Subscript ==

*To insert, use the following code:
**Enter <nowiki><sub></nowiki> before the text.
**Enter the text
**Enter <nowiki></sub></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><sub>blah blah blah</sub></nowiki>

*Once you have entered that code, your text will look like this:

blah blah blah <sub>blah blah blah</sub>

== Hidden comment ==

*To insert a hidden comment, use the following code:
**Enter <nowiki><!-- </nowiki>before the text.
**Enter the text
**Enter <nowiki>--></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><!-- blah blah blah--></nowiki>

*You will not be able to see the text on this page, but it will be seen when you try to edit this page. Hidden text is mostly used for works in process or notes to other editors (e.g., a note to see an ongoing discussion on the Talk page about the article). Hidden texts are said to be "commented out".

== Secondary headline ==

*To insert a secondary headline, use the following code:
**Enter <nowiki>==</nowiki> before the text.
**Enter the text
**Enter <nowiki>==</nowiki> after the text.

*Overall, your code should look like this:

<nowiki>==blah blah blah==</nowiki>

*Once you have entered that code, the text should look like the underlined headlines on this page.

== Tab ==

*To insert a tab, use the following code:
**Enter <nowiki>::</nowiki> before the text.

*Overall, your code should look like this:

<nowiki>:blah blah blah</nowiki>

*Once you have entered that code, your text will look like this:

:blah blah blah

== Font colour ==

*To change the colour of text, use the following code:
**Enter <nowiki><span style="color: ColorName"></nowiki> before the text. (Note American spelling of the word “color”)
**Choose the colour
**Enter the text
**Enter <nowiki></span></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><span style="color: green">blah blah blah</span></nowiki>

*Once you have entered that code, your text will look like this:

<span style="color: green">blah blah blah</span>

*Another way to do it is:

**Enter <nowiki><font color="ColorName"></nowiki> before the text.
**Choose the colour
**Enter the text
**Enter <nowiki></font></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><font color="green">blah blah blah</font></nowiki>

*Once you have entered that code, your text will look like this:

<font color="#008000">blah blah blah</font>

*A third way is to use the colour template:
**<nowiki>{{colour|red|Hello, world!}}</nowiki> produces {{colour|red|Hello, world!}}
<div style="border-right: #008080 1px solid; padding-right: 4px; border-top: #008080 1px solid; padding-left: 4px; padding-bottom: 4px; border-left: #008080 1px solid; padding-top: 4px; border-bottom: #008080 1px solid">
<font color="#008080"><big>'''Tip'''</big> For colour names, look at the [[HTML colour chart]]</font>
</div>
<!--
<big>
<font color=#008080>

'''Tip'''
</font>
</big>

For colour names, go to a site such as [http://home.i1.net/~dwolfe/hexmixer/ylowmx.html Hex Mixer] -->

== Links ==

*To make external links look internal, use the following code:
**Enter <nowiki><span class="plainlinks"><font color="002bb8"></nowiki> before the text.
**Enter the external link
**Enter <nowiki></font></span></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><span class="plainlinks"><font color="002bb8">[http://example.com external link]</font></span></nowiki>

*Once you have entered that code, the external link should look like this:

<span class="plainlinks"><font color="#002bb8">[http://example.com external link]</font></span>

*Note that if someone is using a custom skin that specifies different link colors, for example green for internal links, and purple for "redlinks," a link formatted with this code will still look blue, and not match other links in appearance, to that user.

=== Link to another GCpedia article ===

To link to another GCpedia article, put double square brackets around the term <nowiki>[[Word or phrase you want to link]]</nowiki>.

==== Piped link ====

To link to another GCpedia article, but have the reader see a different word or phrase in the text, use the following wiki-text: <nowiki>[[Title of article | Word or phrase you want to link]]</nowiki>.

The need to create a "piped link" occurs when you want to create a link to an article, but you do not want the entire title of the article to appear in the text. Here is example B with real text:

<nowiki>[[Spam |unwanted junk e-mails]]</nowiki>.

The reader will only see the phrase "unwanted junk e-mails". However, when the reader clicks on the link, it will take him/her to the GCpedia article on [[Spam]]. The name of the actual GCpedia article is typed first. Then there is a vertical line. Then you type the word or phrase that you want the reader to see in the article.

Here is example B as it would look in a GCpedia article:

*Many public servants are finding that they have to spend too much time reading through [[Spam|unwanted junk e-mails]].

In the above example, the piped link was used because "spam" is a jargon term that not all readers might be familiar with.

===== Acceptable and unacceptable types =====

Piped links should always take the reader to an article page that would be expected. Creating links to unexpected pages (this is called creating an "easter egg") is confusing for readers.

'''Acceptable types''' Creating a piped link like this is acceptable:

*Equivalent terms or phrase:

<nowiki>[[Broadcasting Act| The legislation governing television and radio]]</nowiki>

<nowiki>[[Department of Solar Affairs |The Department that deals with solar issues]]</nowiki>

*Acronyms or abbreviation:

<nowiki>[[Organization for Economic Cooperation and Development, Policy Branch for Asia |OECD-PBA]]</nowiki>

<nowiki>[[Canadian Heritage| PCH]]</nowiki>

<br>'''Unacceptable types''' Creating an "easter egg" piped link like this is not considered to be acceptable:

*Adding a negative or biased "Point of View":

<nowiki>[[Department of Solar Affairs | Problem-plagued organizations]]</nowiki>

*Attempts to be humorous should be limited to one's own private webspace, and not done in GCpedia:

<nowiki>[[Annual leave in the public service| key safeguards for mental stability]]</nowiki>

== Underlining ==

*To underline text, use the following code:
**Enter <nowiki><u></nowiki> before the text.
**Enter the text
**Enter <nowiki></u></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><u>text</u></nowiki>

*Once you have entered that code, the text should look like this:

<u>text</u>

== Font size ==

*To make text a certain size, use the following code:
**Enter <nowiki><font size="4"></nowiki> before the text.
**Choose the size
**Enter the text
**Enter <nowiki></font></nowiki> after the text.

*Overall, your code should look like this:

<nowiki><font size="4">blah blah blah</font></nowiki>

*Once you have entered that code, your text will look like this:

<font size="4">blah blah blah</font>

== More symbols ==

Some of the symbols that you may wish to use are as follows:

<nowiki>:– — ‘’ “” ° ″ ′ ≈ ≠ ≤ ≥ ± − × ÷ √ ← → · § {{}} {{{}}} | [] [[]] [[Category:]] #REDIRECT [[]] <s></s> <sup></sup> <sub></sub> <code></code> <pre></pre> <blockquote></blockquote> {{Reflist}} <references/> <includeonly></includeonly> <noinclude></noinclude> </nowiki>

__NOTOC__

[[Category:GCPEDIA_Help|E]] [[fr:Aide:Mise en forme avancée|fr:Aide:Mise en forme avancée]]

Navigation menu

GCwiki