SgWiki:Guidebook/Links: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
| Line 11: | Line 11: | ||
<div style='font-family:"Exo 2" !important;'> | <div style='font-family:"Exo 2" !important;'> | ||
Linking articles together is | Linking articles together is essential. Links allow users to jump to related information quickly, improving article usefulness. | ||
===Internal Link=== | ===Internal Link=== | ||
An | An internal link directs to a page or section within sgWiki. | ||
{{dottedbox|@=Syntax|#=<nowiki>[[ [Article Name] # [Section Name] | [Display Name] ]]</nowiki>}} | |||
'''Article Name''' is the | * '''Article Name''' is the page you wish to link. | ||
'''Section Name''' is header | * '''Section Name''' is the header within that page (optional). | ||
'''Display Name''' is text | * '''Display Name''' is the text shown; defaults to article name (optional). | ||
===External Link=== | ===External Link=== | ||
An | An external link directs to a website outside sgWiki. | ||
{{dottedbox|@=Syntax|#=<nowiki>[ [ | |||
{{dottedbox|@=Syntax|#=<nowiki>[ [Website] [Display Name] ]</nowiki>}} | |||
'''Website''' is the | * '''Website''' is the URL. | ||
'''Display Name''' is the text | * '''Display Name''' is the text shown; defaults to the URL (optional). | ||
===When to link=== | ===When to link=== | ||
Links add value but must be used carefully. | |||
* Link only at the first occurrence of a word or phrase in an article or section. | |||
* Do not over‑link common words such as "station" or "bus" unless they are keywords central to the article. | |||
===Template=== | ===Template=== | ||
Templates standardise information across multiple pages. They are embedded into the final page when displayed. | |||
{{dottedbox|@=Template Syntex|#=<nowiki>{{ [ | |||
{{dottedbox|@=Template Syntex|#=<nowiki>{{ [Template Name] | [Parameters] }}</nowiki>}} | |||
'''Template Name''' is the template | * '''Template Name''' is the template to use. | ||
'''Parameters''' is | * '''Parameters''' is values passed to customise output. Separate each with " | " (optional). | ||
===Categories=== | ===Categories=== | ||
Categories | Categories group articles by topic. They appear at the bottom of a page. | ||
{{dottedbox|@=Syntax|#=<nowiki>[[Category: [category name] ]]</nowiki>}} | {{dottedbox|@=Syntax|#=<nowiki>[[Category: [category name] ]]</nowiki>}} | ||
* '''Category Name''' is the category to add the article to. | |||
* Each category must contain at least two related articles. | |||
'''Category Name''' is the category | |||
</div> | </div> | ||
Revision as of 00:18, 8 July 2026
| Introductions | Editing & Formatting | Links | Citing sources | sgWiki Buses | sgWiki Rails | Ban & Warning Points |
Linking articles together is essential. Links allow users to jump to related information quickly, improving article usefulness.
Internal Link
An internal link directs to a page or section within sgWiki.
Syntax
| [[ [Article Name] # [Section Name] | [Display Name] ]] |
- Article Name is the page you wish to link.
- Section Name is the header within that page (optional).
- Display Name is the text shown; defaults to article name (optional).
External Link
An external link directs to a website outside sgWiki.
Syntax
| [ [Website] [Display Name] ] |
- Website is the URL.
- Display Name is the text shown; defaults to the URL (optional).
When to link
Links add value but must be used carefully.
- Link only at the first occurrence of a word or phrase in an article or section.
- Do not over‑link common words such as "station" or "bus" unless they are keywords central to the article.
Template
Templates standardise information across multiple pages. They are embedded into the final page when displayed.
Template Syntex
| {{ [Template Name] | [Parameters] }} |
- Template Name is the template to use.
- Parameters is values passed to customise output. Separate each with " | " (optional).
Categories
Categories group articles by topic. They appear at the bottom of a page.
Syntax
| [[Category: [category name] ]] |
- Category Name is the category to add the article to.
- Each category must contain at least two related articles.