imported>TheGhostOfInky No edit summary |
m (replaced instances of File:Yes-icon.png with the more widespread File:Yes.png; replaced instance of File:Meh-icon.png with the more widespread File:Meh.png) |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
For file links we recommend doing it in this manner, do not use leading or trailing whitespace on the link, and do not separate the <code>File:</code> namespace name from the filename: | For file links we recommend doing it in this manner, do not use leading or trailing whitespace on the link, and do not separate the <code>File:</code> namespace name from the filename: | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[File: Marxism.png]] | [[File: Marxism.png]] | ||
</pre> | </pre> | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[ File:Marxism.png]] | [[ File:Marxism.png]] | ||
</pre> | </pre> | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[File:Marxism.png ]] | [[File:Marxism.png ]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[File:Marxism.png]] | [[File:Marxism.png]] | ||
Line 28: | Line 28: | ||
Files are all capitalized automatically, so the first letter's case is insensitive, so while a leading lowercase letter works, it is highly discouraged: | Files are all capitalized automatically, so the first letter's case is insensitive, so while a leading lowercase letter works, it is highly discouraged: | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[File:marxism.png]] | [[File:marxism.png]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[File:Marxism.png]] | [[File:Marxism.png]] | ||
Line 42: | Line 42: | ||
Similarly, the <code>File:</code> namespace's first character is insensitive and automatically capitalized, but again, it is disadvised: | Similarly, the <code>File:</code> namespace's first character is insensitive and automatically capitalized, but again, it is disadvised: | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[file:Marxism.png]] | [[file:Marxism.png]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[File:Marxism.png]] | [[File:Marxism.png]] | ||
Line 56: | Line 56: | ||
If your filename has spaces, replace them with underscores, even if such action is not necessary as Mediawiki automatically converts between the 2 in internal links, it leaves some ambiguity in the link. | If your filename has spaces, replace them with underscores, even if such action is not necessary as Mediawiki automatically converts between the 2 in internal links, it leaves some ambiguity in the link. | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[File:Authoritarian Conservatism.png]] | [[File:Authoritarian Conservatism.png]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[File:Authoritarian_Conservatism.png]] | [[File:Authoritarian_Conservatism.png]] | ||
Line 78: | Line 78: | ||
It is advised to leave whitespace after the icon link, as it makes the rendered page's formatting nicer, but this depends on context. | It is advised to leave whitespace after the icon link, as it makes the rendered page's formatting nicer, but this depends on context. | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[File:Altcentr.png]] [[Dead Centrism]] | [[File:Altcentr.png]] [[Dead Centrism]] | ||
</pre> | </pre> | ||
[[File:Meh | [[File:Meh.png]] Usually not ok: | ||
<pre> | <pre> | ||
[[File:Altcentr.png]][[Dead Centrism]] | [[File:Altcentr.png]][[Dead Centrism]] | ||
Line 99: | Line 99: | ||
The first character of a page name is always capitalized and as result the first character is case insensitive, but for consistency purposes, not capitalizing the first character is heavily discouraged: | The first character of a page name is always capitalized and as result the first character is case insensitive, but for consistency purposes, not capitalizing the first character is heavily discouraged: | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[diarchy]] | [[diarchy]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[Diarchy]] | [[Diarchy]] | ||
Line 113: | Line 113: | ||
If the page name has spaces, leave them as spaces, do not convert them to underscores: | If the page name has spaces, leave them as spaces, do not convert them to underscores: | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[Democratic_Socialism]] | [[Democratic_Socialism]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[Democratic Socialism]] | [[Democratic Socialism]] | ||
Line 143: | Line 143: | ||
Similar to the pages themselves, the namespaces' first character is auto-capitalized, and as a result is case insensitive, but it is discouraged to leave it in lowercase: | Similar to the pages themselves, the namespaces' first character is auto-capitalized, and as a result is case insensitive, but it is discouraged to leave it in lowercase: | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
[[community:TheGhostOfInky]] | [[community:TheGhostOfInky]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[Community:TheGhostOfInky]] | [[Community:TheGhostOfInky]] | ||
Line 186: | Line 186: | ||
Subpage links work similarly to page links, with the subpage's name separated from the parent by <code>/</code>. Keep in mind the subpages' first character isn't case insensitive like the parent page, it is advised that you create subpages with the first letter capitalized, and similarly links to them must be capitalized to function. | Subpage links work similarly to page links, with the subpage's name separated from the parent by <code>/</code>. Keep in mind the subpages' first character isn't case insensitive like the parent page, it is advised that you create subpages with the first letter capitalized, and similarly links to them must be capitalized to function. | ||
[[File:No | [[File:No.png]] No/Broken: | ||
<pre> | <pre> | ||
[[List of movements/Political Parties/poland]] | [[List of movements/Political Parties/poland]] | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
[[List of movements/Political Parties/Poland]] | [[List of movements/Political Parties/Poland]] | ||
Line 234: | Line 234: | ||
As mentioned prior, pages from the <code>Template:</code> namespace do not need their namespace name mentioned, and so it is disadvised to include it: | As mentioned prior, pages from the <code>Template:</code> namespace do not need their namespace name mentioned, and so it is disadvised to include it: | ||
[[File:No | [[File:No.png]] No: | ||
<pre> | <pre> | ||
{{:Template:PCBA}} | {{:Template:PCBA}} | ||
</pre> | </pre> | ||
[[File:Yes | [[File:Yes.png]] Yes: | ||
<pre> | <pre> | ||
{{PCBA}} | {{PCBA}} |
Latest revision as of 12:48, 23 October 2024
In this page ideal formatting rules are outlined, whenever possible follow these:
Links
For file links we recommend doing it in this manner, do not use leading or trailing whitespace on the link, and do not separate the File:
namespace name from the filename:
[[File: Marxism.png]]
[[ File:Marxism.png]]
[[File:Marxism.png ]]
[[File:Marxism.png]]
Files are all capitalized automatically, so the first letter's case is insensitive, so while a leading lowercase letter works, it is highly discouraged:
[[File:marxism.png]]
[[File:Marxism.png]]
Similarly, the File:
namespace's first character is insensitive and automatically capitalized, but again, it is disadvised:
[[file:Marxism.png]]
[[File:Marxism.png]]
If your filename has spaces, replace them with underscores, even if such action is not necessary as Mediawiki automatically converts between the 2 in internal links, it leaves some ambiguity in the link.
[[File:Authoritarian Conservatism.png]]
[[File:Authoritarian_Conservatism.png]]
If you want the icon to link to a page, add a |
and link=
followed by the page name, all without additional whitespace:
[[File:Altcentr.png|link=Main Page]]
It is advised to leave whitespace after the icon link, as it makes the rendered page's formatting nicer, but this depends on context.
[[File:Altcentr.png]] [[Dead Centrism]]
[[File:Altcentr.png]][[Dead Centrism]]
Internal Links
For internal links use the standard internal link syntax without leading or trailing whitespace:
[[Diarchy]]
The first character of a page name is always capitalized and as result the first character is case insensitive, but for consistency purposes, not capitalizing the first character is heavily discouraged:
[[diarchy]]
[[Diarchy]]
If the page name has spaces, leave them as spaces, do not convert them to underscores:
[[Democratic_Socialism]]
[[Democratic Socialism]]
If you want the linked page to have an alias, add a |
and the alias name afterwards, again without any additional whitespace:
[[Dead Centrism|Our mascot]]
If the pages you're wanting to link from are from a namespace, add the namespace without whitespace in between them, like the file links:
[[Community:TheGhostOfInky]]
Similar to the pages themselves, the namespaces' first character is auto-capitalized, and as a result is case insensitive, but it is discouraged to leave it in lowercase:
[[community:TheGhostOfInky]]
[[Community:TheGhostOfInky]]
Bear in mind that the Category:
and File:
namespaces automatically add a category and file link by default, so to link to the pages you need to add a leading :
, as follows:
[[:File:Marxism.png]] [[:Category:Centrists]]
External links
If the external link is to a page on the Polcompball anarchy wiki, use the provided {{PCBA}}
template, similarly to internal links, don't add extra whitespace and use spaces instead of underscores:
{{PCBA|PCBA Graveyard|Banned users}}
For links to other wikis, use their respective interwiki links, following the same rules formatting as internal and PCBA links, like for example:
For chromeball:
[[mh:chromeball:Google Chrome|Ram eater]]
For wikipedia:
[[w:Chicken nugget|Nuggies]]
Subpages
Subpage links work similarly to page links, with the subpage's name separated from the parent by /
. Keep in mind the subpages' first character isn't case insensitive like the parent page, it is advised that you create subpages with the first letter capitalized, and similarly links to them must be capitalized to function.
[[List of movements/Political Parties/poland]]
[[List of movements/Political Parties/Poland]]
Bullet lists
For unordered lists, add *
followed by a trailing whitespace character, as follows:
* Hello * World
Similarly, for ordered lists, do the same only with a #
character:
# Item 1 # Item 2
Templates
Templates from the Template:
namespace can be added to pages by simply adding the name between a pair of curly brackets {{}}
, with arguments separated by |
, as follows:
{{PCBA}} {{PCBA|Arg1}} {{PCBA|Arg1|Arg2}}
Pages outside the Template:
namespaces can also be used as templates, for example to transclude the main page in a page you can do the following:
{{:Main Page}}
As mentioned prior, pages from the Template:
namespace do not need their namespace name mentioned, and so it is disadvised to include it:
{{:Template:PCBA}}
{{PCBA}}
And similarly subpages from either the Template:
namespace or other namespaces can be used as templates:
{{MessageBox/Wip}} {{:Main Page/Announcements}}