Help:Editing basics: Difference between revisions
From Inkipedia, the Splatoon wiki
m (→Links: Changed red-link example to obvious Red link example to avoid confusion in wanted pages) |
m (Text replacement - "{{roundy}}" to "border-radius: 20px;") |
||
(13 intermediate revisions by 8 users not shown) | |||
Line 5: | Line 5: | ||
==The Basics== | ==The Basics== | ||
{| class="unsortable" width=100% align="center" cellpadding="1px" style=" | {| class="unsortable" width=100% align="center" cellpadding="1px" style="text-align:left; border: 3px solid #a9de00; padding: 5px; border-radius: 20px;" | ||
!class="unsortable" | | !class="unsortable" | | ||
! Input | ! Input | ||
! Output | ! Output | ||
! Description | |||
|- | |- | ||
|'''Text''' | |'''Text''' | ||
|Hello world! | |Hello world! | ||
|Hello world! | |Hello world! | ||
| | |||
|- | |- | ||
|'''Italics''' | |'''Italics''' | ||
|<nowiki>''Hello world!''</nowiki> | |<nowiki>''Hello world!''</nowiki> | ||
|''Hello world!'' | |''Hello world!'' | ||
|Surrounding text with two quotes either side (<nowiki>''</nowiki>) makes the text ''italic'' | |||
|- | |- | ||
|'''Bold''' | |'''Bold''' | ||
|<nowiki>'''Hello world!'''</nowiki> | |<nowiki>'''Hello world!'''</nowiki> | ||
|'''Hello world!''' | |'''Hello world!''' | ||
|Surrounding text with three quotes either side (<nowiki>'''</nowiki>) makes the text '''bold''' | |||
|- | |- | ||
|'''Bold Italics''' | |'''Bold Italics''' | ||
|<nowiki>'''''Hello world!'''''</nowiki> | |<nowiki>'''''Hello world!'''''</nowiki> | ||
|'''''Hello world!''''' | |'''''Hello world!''''' | ||
|Surrounding text with five quotes either side (<nowiki>'''''</nowiki>) makes the text '''''bold italic''''' | |||
|- | |||
|Headings | |||
|<nowiki>==The Basics==</nowiki> | |||
| See above! | |||
|Surrounding text with equals (=) either side makes page headings.<br/> The more = signs, the further down in sub-headings it goes. | |||
|- | |||
|} | |} | ||
==Links== | ==Internal Links== | ||
{| class="unsortable" width=100% align="center" cellpadding="1px" style=" | {| class="unsortable" width=100% align="center" cellpadding="1px" style="text-align:left; border: 3px solid #a9de00; padding: 5px; border-radius: 20px;" | ||
!class="unsortable" | | !class="unsortable" | | ||
! Input | ! Input | ||
! Output | ! Output | ||
! Description | |||
|- | |- | ||
|'''Link''' | |'''Link''' | ||
|<nowiki>[[Inkling]]</nowiki> | |<nowiki>[[Inkling]]</nowiki> | ||
|[[Inkling]] | |[[Inkling]] | ||
|Surrounding text with two square brackets (<nowiki>[[...]]</nowiki>) makes a link to another article. | |||
|- | |- | ||
| | | | ||
|<nowiki>[[Inkling]]s</nowiki> | |<nowiki>[[Inkling]]s</nowiki> | ||
|[[Inkling]]s | |[[Inkling]]s | ||
|You can put letters immediately following the brackets and they'll be linked too! | |||
|- | |- | ||
|'''Redlink''' | |'''Redlink''' | ||
|<nowiki>[[Red link example]]</nowiki> | |<nowiki>[[Red link example]]</nowiki> | ||
|[[Red link example]] | |[[Red link example]] | ||
|Links to pages on the wiki that don't exist show up in red. | |||
|- | |- | ||
|''' | |'''Links with different text''' | ||
|<nowiki>[[Inkling|Squid]]</nowiki> | |<nowiki>[[Inkling|Squid]]</nowiki> | ||
|[[Inkling|Squid]] | |[[Inkling|Squid]] | ||
|You can link to an article but use different text by using a pipe (<nowiki>|</nowiki>). The text on the left-side of the pipe is the destination page, and the text on the right is what you want to display. You'll need to do this for some plural words. | |||
|- | |||
|'''All together''' | |||
|<nowiki>[[Red link example|This doesn't ex]]ist!</nowiki> | |||
|[[Red link example|This doesn't ex]]ist! | |||
|Here's everything above, together! | |||
|- | |||
|'''Link to a section''' | |||
|<nowiki>[[#Internal Links]]</nowiki> | |||
|[[#Internal Links]] | |||
|To link to a section header, use a # followed by the header name. | |||
|- | |||
| | |||
|<nowiki>[[Inkling#Background|Inkling background]]</nowiki> | |||
|[[Inkling#Background|Inkling background]] | |||
|You can also combine these together. | |||
|- | |||
|'''Namespace''' | |||
|<nowiki>[[Help:Contents|Help contents]]</nowiki> | |||
|[[Help:Contents|Help contents]] | |||
|To link to a page in a different namespace (that's like a different section or type of page on the wiki), type its namespace first then a colon, then the page name.{{note|You don't have to do this for ''mainspace'' pages (that's the "normal" pages you get here on Inkipedia like [[Inkling]]) because the mainspace is assumed by default.}} For files and categories, this is a bit different. | |||
|- | |||
|'''Categories''' | |||
|<nowiki>[[Category:Browse]]</nowiki> | |||
|[[Category:Browse]] | |||
|Categories are added to a page if you "link" to a category. If you instead want to link to the category, use a : before Category, like <nowiki>[[:Category:Splatoon]]</nowiki>, or the {{t|C}} template. | |||
|- | |||
|'''Files''' | |||
|<nowiki>[[:File:Example.png]]</nowiki> | |||
|[[:File:Example.png]] | |||
|Files are added to a page if you "link" to a file. [[#Files|See below]] for more on that! If you instead want to link to the file's page, use a : before File, like <nowiki>[[:File:Example.png]]</nowiki>, or the {{t|F}} template. | |||
|- | |||
|'''Interwiki''' | |||
|<nowiki>[[wikipedia:Splatoon]]</nowiki><br/> | |||
|[[wikipedia:Splatoon]]<br/> | |||
|Interwiki links - that is, links that go to another wiki and have been setup by the Inkipedia staff, are in the same form as above | |||
|- | |||
|'''Inkipedia in other languages''' | |||
|<nowiki>[[:es:Splatoon]]</nowiki> | |||
|[[:es:Splatoon]]<br/> | |||
|These interwiki links work in a similar way to Categories. You need a : before the language code (es for Spanish and fr for French) to link to the article. Without it, the article is added to the "In other languages" section.{{note|You can see on the [[Main Page]] examples of this!}} | |||
|} | |||
{{note list}} | |||
==External Links== | |||
{| class="unsortable" width=100% align="center" cellpadding="1px" style="text-align:left; border: 3px solid #a9de00; padding: 5px; border-radius: 20px;" | |||
!class="unsortable" | | |||
! Input | |||
! Output | |||
! Description | |||
|- | |||
|'''External Link''' | |||
|<nowiki>[https://www.example.com]</nowiki> | |||
|[https://www.example.com] | |||
|Surrounding text with one square brackets (<nowiki>[...]</nowiki>) makes an external link that leaves Inkipedia. | |||
|- | |||
| | |||
|<nowiki>[https://www.example.com Example Website]</nowiki> | |||
|[https://www.example.com Example Website] | |||
|Instead of pipes, external links treated anything after a ''space'' inside the link as the text to displayed. | |||
|- | |- | ||
|} | |} | ||
==Templates== | ==Templates== | ||
{| class="unsortable" width=100% align="center" cellpadding="1px" style=" | {| class="unsortable" width=100% align="center" cellpadding="1px" style="text-align:left; border: 3px solid #a9de00; padding: 5px; border-radius: 20px;" | ||
!class="unsortable" | | |||
! Input | |||
! Output | |||
! Description | |||
|- | |||
|'''GamePad''' | |||
|<nowiki>{{GP}}</nowiki> | |||
|{{GP}} | |||
| Surrounding text with two curly braces (<nowiki>{{...}}</nowiki>) makes the code that's on the linked template page run on the article. | |||
|- | |||
|'''Left Stick''' | |||
|<nowiki>{{button|LS}}</nowiki><br/> | |||
<nowiki>{{button|LS|Switch}}</nowiki> | |||
|{{button|LS}}<br/> | |||
{{button|LS|Switch}} | |||
| Templates can have "parameters", which are separated by pipes. A knowledgeable editor will usually write on the template page how everyone can use it! | |||
|- | |||
|'''Right Stick''' | |||
|<nowiki>{{button|RS}}</nowiki><br/> | |||
<nowiki>{{button|RS|Switch}}</nowiki> | |||
|{{button|RS}}<br/> | |||
{{button|RS|Switch}} | |||
| ''See {{t|button}} for more examples'' | |||
|} | |||
==Files== | |||
{| class="unsortable" width=100% align="center" cellpadding="3px" style="text-align:left; border: 3px solid #a9de00; padding: 5px; border-radius: 20px;" | |||
! Input | ! Input | ||
! Output | ! Output | ||
|- | |- | ||
| | ! Image | ||
|<nowiki> | |<nowiki>[[File:MarieArt.png]]</nowiki> | ||
| | |[[File:MarieArt.png]] | ||
|- | |||
! Image thumbnail | |||
|<nowiki>[[File:MarieArt.png|thumb]]</nowiki> | |||
|[[File:MarieArt.png|thumb]] | |||
|- | |||
! Image thumbnail with caption | |||
|<nowiki>[[File:MarieArt.png|thumb|A caption!]]</nowiki> | |||
|[[File:MarieArt.png|thumb|A caption!]] | |||
|- | |- | ||
! Image with a maximum width | |||
|<nowiki> | |<nowiki>[[File:MarieArt.png|100px]]</nowiki> | ||
| | |[[File:MarieArt.png|100px]] | ||
|- | |- | ||
! Image with a maximum height | |||
|<nowiki> | |<nowiki>[[File:MarieArt.png|x100px]]</nowiki> | ||
| | |[[File:MarieArt.png|x100px]] | ||
|- | |- | ||
! Image with a maximum width and height | |||
|<nowiki>[[File:MarieArt.png|100x100px]]</nowiki> | |||
|[[File:MarieArt.png|100px]] | |||
|- | |||
| colspan=3 style="padding-left:15px"| *<small>Note that if an image is given a maximum width and height that do not match its [[wikipedia:aspect ratio|aspect ratio]], it will conform to whichever value makes it smaller. For example, the above image becomes 100px wide by 80px tall; if it was 100px tall then it would be 125px wide, which exceeds the given maximum width.</small> | |||
|- | |||
! Image that [[wikipedia:Cascading Style Sheets#Positioning|floats]] to the right | |||
|<nowiki>[[File:MarieArt.png|float|right]]</nowiki> | |||
| [[File:MarieArt.png|float|right]] | |||
|- | |||
| colspan=3 style="padding-left:15px"| *<small>An image with the ''thumb'' attribute also floats to the right, but this does so without the frame | |||
|} | |} | ||
For more help on files, see our [[Help:Files|file help page]]. | |||
==Tables== | |||
{{main|Help:Tables}} | |||
{{ | {| class="unsortable" width=100% align="center" cellpadding="3px" style="text-align:left; border: 3px solid #a9de00; padding: 5px; border-radius: 20px;" | ||
!class="unsortable" width=20% | | |||
! Input | |||
! Output | |||
|- | |||
! Table | |||
| <nowiki>{| class="wikitable"</nowiki><br><nowiki>| Foo</nowiki><br><nowiki>|}</nowiki> | |||
| | |||
{| class="wikitable" | |||
| Foo | |||
|} | |||
|- | |||
! Table with multiple cells | |||
| <nowiki>{| class="wikitable"</nowiki><br><nowiki>| Foo</nowiki><br><nowiki>| Bar </nowiki><br><nowiki>|}</nowiki> | |||
| | |||
{| class="wikitable" | |||
| Foo | |||
| Bar | |||
|} | |||
|- | |||
! Table with multiple rows | |||
| <nowiki>{| class="wikitable"</nowiki><br><nowiki>| Foo</nowiki><br><nowiki>| Bar </nowiki><br><nowiki>|</nowiki>-<br><nowiki>| Baz</nowiki><br><nowiki>| Qux</nowiki><br><nowiki>|}</nowiki> | |||
| | |||
{| class="wikitable" | |||
| Foo | |||
| Bar | |||
|- | |||
| Baz | |||
| Qux | |||
|} | |||
|- | |||
! Table with header cells | |||
| <nowiki>{| class="wikitable"</nowiki><br>! Foo<br>! Bar<br><nowiki>|</nowiki>-<br><nowiki>| Baz</nowiki><br><nowiki>| Qux</nowiki><br><nowiki>|}</nowiki> | |||
| | |||
{| class="wikitable" | |||
! Foo | |||
! Bar | |||
|- | |||
| Baz | |||
| Qux | |||
|} | |||
|} |
Latest revision as of 00:38, 28 June 2023
- ← Return to Help:Contents
- Suggest an editing topic to be added here!
Welcome to Inkipedia! If you're on this page, you're probably new to Wikicode or just need a little clarification to build that awesome template you've been dreaming of. Look no further, because we've got you covered.
The Basics
Input | Output | Description | |
---|---|---|---|
Text | Hello world! | Hello world! | |
Italics | ''Hello world!'' | Hello world! | Surrounding text with two quotes either side ('') makes the text italic |
Bold | '''Hello world!''' | Hello world! | Surrounding text with three quotes either side (''') makes the text bold |
Bold Italics | '''''Hello world!''''' | Hello world! | Surrounding text with five quotes either side (''''') makes the text bold italic |
Headings | ==The Basics== | See above! | Surrounding text with equals (=) either side makes page headings. The more = signs, the further down in sub-headings it goes. |
Internal Links
Input | Output | Description | |
---|---|---|---|
Link | [[Inkling]] | Inkling | Surrounding text with two square brackets ([[...]]) makes a link to another article. |
[[Inkling]]s | Inklings | You can put letters immediately following the brackets and they'll be linked too! | |
Redlink | [[Red link example]] | Red link example | Links to pages on the wiki that don't exist show up in red. |
Links with different text | [[Inkling|Squid]] | Squid | You can link to an article but use different text by using a pipe (|). The text on the left-side of the pipe is the destination page, and the text on the right is what you want to display. You'll need to do this for some plural words. |
All together | [[Red link example|This doesn't ex]]ist! | This doesn't exist! | Here's everything above, together! |
Link to a section | [[#Internal Links]] | #Internal Links | To link to a section header, use a # followed by the header name. |
[[Inkling#Background|Inkling background]] | Inkling background | You can also combine these together. | |
Namespace | [[Help:Contents|Help contents]] | Help contents | To link to a page in a different namespace (that's like a different section or type of page on the wiki), type its namespace first then a colon, then the page name.[a] For files and categories, this is a bit different. |
Categories | [[Category:Browse]] | Categories are added to a page if you "link" to a category. If you instead want to link to the category, use a : before Category, like [[:Category:Splatoon]], or the {{C}} template. | |
Files | [[:File:Example.png]] | File:Example.png | Files are added to a page if you "link" to a file. See below for more on that! If you instead want to link to the file's page, use a : before File, like [[:File:Example.png]], or the {{F}} template. |
Interwiki | [[wikipedia:Splatoon]] |
wikipedia:Splatoon |
Interwiki links - that is, links that go to another wiki and have been setup by the Inkipedia staff, are in the same form as above |
Inkipedia in other languages | [[:es:Splatoon]] | es:Splatoon |
These interwiki links work in a similar way to Categories. You need a : before the language code (es for Spanish and fr for French) to link to the article. Without it, the article is added to the "In other languages" section.[b] |
External Links
Input | Output | Description | |
---|---|---|---|
External Link | [https://www.example.com] | [1] | Surrounding text with one square brackets ([...]) makes an external link that leaves Inkipedia. |
[https://www.example.com Example Website] | Example Website | Instead of pipes, external links treated anything after a space inside the link as the text to displayed. |
Templates
Input | Output | Description | |
---|---|---|---|
GamePad | {{GP}} | Surrounding text with two curly braces ({{...}}) makes the code that's on the linked template page run on the article. | |
Left Stick | {{button|LS}} {{button|LS|Switch}} |
|
Templates can have "parameters", which are separated by pipes. A knowledgeable editor will usually write on the template page how everyone can use it! |
Right Stick | {{button|RS}} {{button|RS|Switch}} |
|
See {{button}} for more examples |
Files
Input | Output | |
---|---|---|
Image | [[File:MarieArt.png]] | |
Image thumbnail | [[File:MarieArt.png|thumb]] | |
Image thumbnail with caption | [[File:MarieArt.png|thumb|A caption!]] | |
Image with a maximum width | [[File:MarieArt.png|100px]] | |
Image with a maximum height | [[File:MarieArt.png|x100px]] | |
Image with a maximum width and height | [[File:MarieArt.png|100x100px]] | |
*Note that if an image is given a maximum width and height that do not match its aspect ratio, it will conform to whichever value makes it smaller. For example, the above image becomes 100px wide by 80px tall; if it was 100px tall then it would be 125px wide, which exceeds the given maximum width. | ||
Image that floats to the right | [[File:MarieArt.png|float|right]] | |
*An image with the thumb attribute also floats to the right, but this does so without the frame |
For more help on files, see our file help page.
Tables
- Main article: Help:Tables
Input | Output | |||||
---|---|---|---|---|---|---|
Table | {| class="wikitable" | Foo |} |
| ||||
Table with multiple cells | {| class="wikitable" | Foo | Bar |} |
| ||||
Table with multiple rows | {| class="wikitable" | Foo | Bar |- | Baz | Qux |} |
| ||||
Table with header cells | {| class="wikitable" ! Foo ! Bar |- | Baz | Qux |} |
|