|
|
(2 intermediate revisions by the same user not shown) |
Line 62: |
Line 62: |
|
| |
|
|
| |
|
| | = Categories Specific to the MS Terms Wiki = |
|
| |
|
| = Templates Specific to the MS Terms Wiki =
| | All pages can be put into a category if the following text is included at the bottom of the page: |
|
| |
|
| If you want the same stuff on different pages, you can use a template. The templates are special Wiki pages and can be edited in the same way. They will also take arguments like subroutines. Here are some templates for this Wiki:
| | <pre>[[Category:Some Important Things]]</pre> |
|
| |
|
| == Stub Template ==
| | where ''Some Important Things'' is the category name. The list of cagegories for the MS terms Wiki is on this page |
|
| |
|
| <pre>{{stub}}</pre>
| | [[Special:Categories]] |
|
| |
|
| {{stub}}
| | and an example of a sorted category page is here: |
|
| |
|
| | [[:Category:Ionization]] |
| | |
| | You can link directly to the category listing by including the following anywhere in the page (note the full colon at the left): |
|
| |
|
| == Suggested Definition Template ==
| | <pre>[[:Category:Ionization]]</pre> |
|
| |
|
| <pre>{{Sugdef|Term goes here|Definition goes here}}</pre>
| |
|
| |
|
| {{Sugdef|Term goes here|Definition goes here}}
| | = Templates Specific to the MS Terms Wiki = |
|
| |
|
| | If you want the same stuff on different pages, you can use a template. The templates are special Wiki pages and can be edited in the same way. They will also take arguments like subroutines. Here are some templates for this Wiki: |
|
| |
|
| == Draft Definition Template ==
| | :[[Help:Templates]] |
| | |
| <pre>{{Def|Term goes here|Definition goes here}}</pre>
| |
| | |
| {{Def|Term goes here|Definition goes here}}
| |
| | |
| | |
| == Draft Definition Template (Term is Page Name ) ==
| |
| | |
| <pre>{{DefName|Definition goes here}}</pre>
| |
|
| |
|
| {{DefName|Definition goes here}}
| |
|
| |
|
| = Wiki Variables = | | = Wiki Variables = |
|
| |
|
| The Wiki used by this site has some special variables that depend on the page. This is a list of '''variables''' that can be used in the wikitext. The way they are rendered depends on the time, on the project, or on the page in which it occurs. | | The Wiki used by this site has some special variables that depend on the page. The way they are rendered depends on the time, on the project, or on the page in which it occurs. The link below contains a list of '''variables''' that can be used in the wikitext. |
| | |
| On the left is the variable, on the right how it is rendered at this time, in this project, on this page.
| |
| | |
| ==Constant, only depending on the project and parameters==
| |
| | |
| <table>
| |
| <tr><td><nowiki>{{ns:-2}} or {{ns:Media}}</nowiki>
| |
| <td>{{ns:-2}}
| |
| <tr><td><nowiki>{{ns:-1}} or {{ns:Special}}</nowiki>
| |
| <td>{{ns:-1}}
| |
| <tr><td><nowiki>{{ns:1}} or {{ns:Talk}}</nowiki>
| |
| <td>{{ns:1}}
| |
| <tr><td><nowiki>{{ns:2}} or {{ns:User}}</nowiki>
| |
| <td>{{ns:2}}
| |
| <tr><td><nowiki>{{ns:3}} or {{ns:User_talk}}</nowiki>
| |
| <td>{{ns:3}}
| |
| <tr><td><nowiki>{{ns:4}} or {{ns:Project}}</nowiki>
| |
| <td>{{ns:4}}
| |
| <tr><td><nowiki>{{ns:5}} or {{ns:Project_talk}}</nowiki>
| |
| <td>{{ns:5}}
| |
| <tr><td><nowiki>{{ns:6}} or {{ns:Image}}</nowiki>
| |
| <td>{{ns:6}}
| |
| <tr><td><nowiki>{{ns:7}} or {{ns:Image_talk}}</nowiki>
| |
| <td>{{ns:7}}
| |
| <tr><td><nowiki>{{ns:8}} or {{ns:MediaWiki}}</nowiki>
| |
| <td>{{ns:8}}
| |
| <tr><td><nowiki>{{ns:9}} or {{ns:MediaWiki_talk}}</nowiki>
| |
| <td>{{ns:9}}
| |
| <tr><td><nowiki>{{ns:10}} or {{ns:Template}}</nowiki>
| |
| <td>{{ns:10}}
| |
| <tr><td><nowiki>{{ns:11}} or {{ns:Template_talk}}</nowiki>
| |
| <td>{{ns:11}}
| |
| <tr><td><nowiki>{{ns:12}} or {{ns:Help}}</nowiki>
| |
| <td>{{ns:12}}
| |
| <tr><td><nowiki>{{ns:13}} or {{ns:Help_talk}}</nowiki>
| |
| <td>{{ns:13}}
| |
| <tr><td><nowiki>{{ns:14}} or {{ns:Category}}</nowiki>
| |
| <td>{{ns:14}}
| |
| <tr><td><nowiki>{{ns:15}} or {{ns:Category_talk}}</nowiki>
| |
| <td>{{ns:15}}
| |
| <tr><td><nowiki>{{ns:100}}</nowiki>
| |
| <td>{{ns:100}}
| |
| <tr><td>... (depending on custom namespaces)
| |
| <td>
| |
| <tr><td><nowiki>{{ns:121}}</nowiki>
| |
| <td>{{ns:121}}
| |
| <tr><td><nowiki>{{SITENAME}}</nowiki>
| |
| <td>{{SITENAME}}
| |
| <tr><td><nowiki>{{SERVER}}</nowiki>
| |
| <td>{{SERVER}}
| |
| <tr><td><nowiki>{{localurl:pagename}}</nowiki>
| |
| <td>{{localurl:pagename}}
| |
| <tr><td><nowiki>{{localurl:pagename|</nowiki>''query string''<nowiki>}}</nowiki>
| |
| <td>{{localurl:pagename|''query string''}}
| |
| </table>
| |
| | |
| ==Varying with time==
| |
| | |
| <table>
| |
| <tr><td><nowiki>{{CURRENTMONTH}}</nowiki>
| |
| <td>{{CURRENTMONTH}}
| |
| <tr><td><nowiki>{{CURRENTMONTHNAME}}</nowiki>
| |
| <td>{{CURRENTMONTHNAME}}
| |
| <tr><td><nowiki>{{CURRENTMONTHNAMEGEN}}</nowiki>
| |
| <td>{{CURRENTMONTHNAMEGEN}}
| |
| <tr><td><nowiki>{{CURRENTDAY}}</nowiki>
| |
| <td>{{CURRENTDAY}}
| |
| <tr><td><nowiki>{{CURRENTDAYNAME}}</nowiki>
| |
| <td>{{CURRENTDAYNAME}}
| |
| <tr><td><nowiki>{{CURRENTYEAR}}</nowiki>
| |
| <td>{{CURRENTYEAR}}
| |
| <tr><td><nowiki>{{CURRENTTIME}}</nowiki>
| |
| <td>{{CURRENTTIME}}
| |
| <tr><td><nowiki>{{NUMBEROFARTICLES}}</nowiki>
| |
| <td>{{NUMBEROFARTICLES}}
| |
| </table>
| |
| | |
| NUMBEROFARTICLES: number of pages in the main namespace which contain a link and are not a redirect, i.e. number of articles, stubs containing a link, and disambiguation pages.
| |
| | |
| This depends on system variable $wgUseCommaCount If true, article count will only include those with commas (","). If false, will only count those with links ("[["). The default set in [[DefaultSettings.php]] is false, this can be changed in [[LocalSettings.php]].
| |
| | |
| ==Depending on page==
| |
| | |
| {|
| |
| |<nowiki>{{NAMESPACE}}</nowiki>
| |
| |{{NAMESPACE}}
| |
| |-
| |
| |<nowiki>{{PAGENAME}}</nowiki>
| |
| |{{PAGENAME}}
| |
| |-
| |
| |<nowiki>{{PAGENAMEE}}</nowiki>
| |
| |{{PAGENAMEE}}
| |
| |}
| |
| | |
| PAGENAMEE displays the page title in the form that is used in URLs, i.e. with underscores for spaces, and escape codes for special characters, and is therefore used for constructing URLs. For example, on a page called "Another test", PAGENAMEE would produce "Another'''_'''test" rather than "Another test". See also [[Help:Page_name#Variables_.7B.7BPAGENAME.7D.7D_and_.7B.7BPAGENAMEE.7D.7D|<nowiki>Variables {{PAGENAME}} and {{PAGENAMEE}}</nowiki>]]
| |
| | |
| When used in a [[template]], these three variables refer to the page in which the template is included, not to the template page.
| |
| | |
| ==Examples of combinations==
| |
| | |
| <table>
| |
| <tr><td><nowiki>{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|</nowiki>action=edit<nowiki>}}</nowiki>
| |
| <td>{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}|action=edit}}
| |
| <tr><td><nowiki>{{SERVER}}{{localurl:Special:Whatlinkshere|target={{NAMESPACE}}:{{PAGENAMEE}}}}</nowiki><td>{{SERVER}}{{localurl:Special:Whatlinkshere|target={{NAMESPACE}}:{{PAGENAMEE}}}}
| |
| <tr><td><nowiki>[[{{NAMESPACE}}:{{PAGENAMEE}}_1]]</nowiki>
| |
| <td>[[{{NAMESPACE}}:{{PAGENAMEE}}_1]]
| |
| <tr><td><nowiki>{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}_1}}</nowiki>
| |
| <td>{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAMEE}}_1}}
| |
| </table>
| |
| | |
| Here on Meta, due to [[Template:UTC]], <nowiki>{{UTC}}</nowiki> produces: {{UTC}}
| |
|
| |
|
| In a template, for a link to a page which depends on a template parameter, the external link style is used even for internal links, to avoid that the system links to the edit page even if the page exists. To construct the external link, variables can also be useful.
| | :[[Help:Variables]] |
External Links (Advanced Editing Topics)
- Wikipedia:How_to_edit_a_page
- Creating Tables
- Mozilla Mediawiki FAQ
Two Minute Markup Tutorial
To edit a page, click on the Edit tab. Put the text shown in the dotted box below into the edit box. After you hit the Save Page button the corresponding text shown below will be rendered.
'''Bold text using three apostrophes'''
results in
Bold text using three apostrophes
''Italic text using two apostrophes''
results in
Italic text using two apostrophes
== Level 2 Header ==
results in
=== Level 3 Header ===
results in
----
results in a "horizontal rule"
[http://www.cnn.com/ The CNN Website]
Results in an link to the outside
The CNN Website
[[Internal Link]]
Results in a link to a page on this Wiki (if the page isn't there, clicking will take you to the edit page)
Internal Link
Categories Specific to the MS Terms Wiki
All pages can be put into a category if the following text is included at the bottom of the page:
[[Category:Some Important Things]]
where Some Important Things is the category name. The list of cagegories for the MS terms Wiki is on this page
Special:Categories
and an example of a sorted category page is here:
Category:Ionization
You can link directly to the category listing by including the following anywhere in the page (note the full colon at the left):
[[:Category:Ionization]]
Templates Specific to the MS Terms Wiki
If you want the same stuff on different pages, you can use a template. The templates are special Wiki pages and can be edited in the same way. They will also take arguments like subroutines. Here are some templates for this Wiki:
- Help:Templates
Wiki Variables
The Wiki used by this site has some special variables that depend on the page. The way they are rendered depends on the time, on the project, or on the page in which it occurs. The link below contains a list of variables that can be used in the wikitext.
- Help:Variables