Difference between revisions of "SDNU ICPC Wiki:Help Page"

Jump to navigation Jump to search
2,689 bytes removed ,  09:51, 21 July 2021
m
no edit summary
m
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__
== Basci ==
* 编辑前,需要登陆
::之后访问想要创建的页面,如果无,则可以创建,否则修改即可
* 队伍页面格式为<code> namespace:page name</code>
::如 <nowiki>http://wiki.soullan.com/index.php/BreakFast:Front_Page</nowiki>
*与自己队伍的front page建立链接,使用
::<nowiki>[[page name| show name]] </nowiki>即可
::如<code><nowiki>[[BreakFast:Front Page|BreakFast]]</nowiki></code>
::显示为
::[[BreakFast:Front Page|BreakFast]]
* '''尽量只编辑自己队伍前缀命名的页面'''
::错误编辑用户,为保证wiki秩序可能会被封禁
* 编辑时请记得填写Summary以便回退
* 注册请向管理员申请 [mailto:lanzongwei541@gmail.com lanzongwei541@gmail.com]
* 需要实现某种效果但不知道如何实现,可以查看mediawiki语法,或者直接去页面view resource
::<del>必要时可使用markdown写完后转为mediawiki</del>
* 提供一些html标签使用
== [https://www.mediawiki.org/wiki/Help:Formatting 基本format] ==
== [https://www.mediawiki.org/wiki/Help:Formatting 基本format] ==


{| class="wikitable"
{| class="wikitable"
! <translate><!--T:3--> Description</translate>
! <!--T:3--> Description
! width=40% | <translate><!--T:4--> You type</translate>
! width=40% | <!--T:4--> You type
! width=40% | <translate><!--T:5--> You get</translate>
! width=40% | <!--T:5--> You get
|-
|-
! colspan="3" style="background: #ABE" | <translate><!--T:6--> Character (inline) formatting – ''applies anywhere''</translate>
! colspan="3" style="background: #ABE" | <!--T:6--> Character (inline) formatting – ''applies anywhere''
|-
|-
| <translate><!--T:7--> Italic text</translate>
| <!--T:7--> Italic text
| <pre>
| <pre>
''<translate nowrap><!--T:8--> italic</translate>''
''<!--T:8--> italic''
</pre>
</pre>
|
|
''<translate><!--T:9--> italic</translate>''
''<!--T:9--> italic''
|-
|-
| <translate><!--T:10--> Bold text</translate>
| <!--T:10--> Bold text
| <pre>
| <pre>
'''<translate nowrap><!--T:11--> bold</translate>'''
'''<!--T:11--> bold'''
</pre>
</pre>
|
|
'''<translate><!--T:12--> bold</translate>'''
'''<!--T:12--> bold'''
|-
|-
| <translate><!--T:13--> Bold and italic</translate>
| <!--T:13--> Bold and italic
| <pre>
| <pre>
'''''<translate nowrap><!--T:14--> bold & italic</translate>'''''
'''''<!--T:14--> bold & italic'''''
</pre>
</pre>
|
|
'''''<translate><!--T:15--> bold & italic</translate>'''''
'''''<!--T:15--> bold & italic'''''
|- style="visibility: collapse;"
|- style="visibility: collapse;"
| colspan="3" | {{Anchor|nowiki|&lt;nowiki&gt;|.3Cnowiki.3E}}
| colspan="3" |  
|-
|-
| <translate><!--T:19--> Escape wiki markup</translate>
| <!--T:19--> Escape wiki markup
| {{#tag:syntaxhighlight|
<!-- This can't use <syntaxhighlight><nowiki>, as that breaks the <translate> tag -->
{{^(}}nowiki{{)^}}<translate nowrap><!--T:20--> no [[wiki]] ''markup''</translate>{{^(}}/nowiki{{)^}}
| lang = "html"
}}
|
|
<translate><!--T:155--> <nowiki>no [[wiki]] ''markup''</nowiki></translate>
<!--T:155--> <nowiki>no [[wiki]] ''markup''</nowiki>
|-
|-
! colspan="3" style="background: #ABE" | <translate><!--T:24--> Section formatting – ''only at the beginning of the line''</translate>
! colspan="3" style="background: #ABE" | <!--T:24--> Section formatting – ''only at the beginning of the line''
|-
|-
| <translate><!--T:25--> Section Headings of different levels</translate>
| <!--T:25--> Section Headings of different levels  
| <pre>
| <pre>
<translate>
 
== Level 2 == <!--T:26-->
== Level 2 == <!--T:26-->


Line 54: Line 85:


====== Level 6 ====== <!--T:30-->
====== Level 6 ====== <!--T:30-->
</translate>
 
</pre>
</pre>
----
----
{{note|1=<nowiki/>
* <translate><!--T:31--> [[<tvar name=lv1>Special:MyLanguage/Help_talk:Formatting#Level_1</tvar>|Skip Level 1]], it is page name level.</translate>
* <translate><!--T:32--> Do not put any text on the same line after the ending equal signs.</translate>
* <translate><!--T:33--> An article with 4 or more headings automatically creates a [[wikipedia:Help:Section#Table of contents (TOC)|table of contents]] (unless setting the magic word <tvar name=1><code><nowiki>__NOTOC__</nowiki></code></tvar>).</translate>
}}
|
|
<!-- using HTML markup to avoid creating new sections -->
<!-- using HTML markup to avoid creating new sections -->
<translate>
 
<!--T:35-->
<!--T:35-->
<h2>Level 2</h2>
<h2>Level 2</h2>
Line 79: Line 105:
<!--T:39-->
<!--T:39-->
<h6>Level 6</h6>
<h6>Level 6</h6>
</translate>
 
|-
|-
| <translate><!--T:40--> Horizontal rule</translate>
| <!--T:40--> Horizontal rule
| <pre>
| <pre>
<translate nowrap><!--T:41--> Text before</translate>
<!--T:41--> Text before
----
----
<translate nowrap><!--T:42--> Text after</translate>
<!--T:42--> Text after
</pre>
</pre>
|
|
<translate><!--T:43--> Text before</translate>
<!--T:43--> Text before
----
----
<translate><!--T:44--> Text after</translate>
<!--T:44--> Text after
|-
|-
| <translate><!--T:45--> Bullet list</translate>
| <!--T:45--> Bullet list
|
|
<pre>
<pre>
<translate nowrap>
 
<!--T:46-->
<!--T:46-->
* Start each line
* Start each line
Line 122: Line 148:
:* sublist that doesn't create empty
:* sublist that doesn't create empty
:* spaces after definition
:* spaces after definition
</translate>
 
</pre>
</pre>
|
|
<translate>
 
<!--T:47-->
<!--T:47-->
* Start each line
* Start each line
Line 152: Line 178:
:* sublist that doesn't create empty
:* sublist that doesn't create empty
:* spaces after definition
:* spaces after definition
</translate>
 
|-
|-
| <translate><!--T:48--> Numbered list</translate>
| <!--T:48--> Numbered list
|
|
<pre>
<pre>
<translate nowrap>
 
<!--T:49-->
<!--T:49-->
# Start each line
# Start each line
Line 175: Line 201:
<!--T:183-->
<!--T:183-->
<tvar name=1>&lt;nowiki&gt;#&lt;/nowiki&gt;</tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.
<tvar name=1>&lt;nowiki&gt;#&lt;/nowiki&gt;</tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.
</translate>
 
</pre>
</pre>
|
|
<translate>
 
<!--T:51-->
<!--T:51-->
# Start each line
# Start each line
Line 195: Line 221:


<!--T:184-->
<!--T:184-->
<tvar name=1><nowiki>#</nowiki></tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.</translate>
<tvar name=1><nowiki>#</nowiki></tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.
|-
|-
| <translate><!--T:53--> Definition list</translate>
| <!--T:53--> Definition list
| <pre>
| <pre>
<translate nowrap>
 
<!--T:54-->
<!--T:54-->
;item 1
;item 1
Line 206: Line 232:
: definition 2-1
: definition 2-1
: definition 2-2
: definition 2-2
</translate>
 
</pre>
</pre>
{{note|1=<translate><!--T:176--> At the end of the line, if the line begins with a semicolon (;), any inserted colon (:) will not be displayed.</translate> <translate><!--T:177--> If you want for the colon to be displayed, escape it by writing <tvar name=1><code>&amp;#58;</code></tvar>.</translate>}}
|
|
<translate>
 
<!--T:55-->
<!--T:55-->
;item 1
;item 1
Line 217: Line 242:
: definition 2-1
: definition 2-1
: definition 2-2
: definition 2-2
</translate>
 
|-
|-
| <translate><!--T:56--> Indent text</translate>
| <!--T:56--> Indent text
| <pre>
| <pre>
<translate nowrap>
 
<!--T:57-->
<!--T:57-->
: Single indent
: Single indent
:: Double indent
:: Double indent
::::: Multiple indent
::::: Multiple indent
</translate>
 
</pre>
</pre>
----
----
{{Note|1=<translate><!--T:58--> This workaround may harm accessibility.</translate>}}
|
|
<translate>
 
<!--T:59-->
<!--T:59-->
: Single indent
: Single indent
:: Double indent
:: Double indent
::::: Multiple indent
::::: Multiple indent
</translate>
 
|-
|-
| <translate><!--T:60--> Mixture of different types of list</translate>
| <!--T:60--> Mixture of different types of list
| <syntaxhighlight lang="html">
| <syntaxhighlight lang="html">
<translate nowrap>
 
<!--T:61-->
<!--T:61-->
# one
# one
Line 258: Line 282:
### five sub 1 sub 1
### five sub 1 sub 1
## five sub 2
## five sub 2
</translate>
 
</syntaxhighlight>
</syntaxhighlight>
----
----
{{note|1=<translate><!--T:62--> The usage of <tvar name=1><code>#:</code></tvar> and <tvar name=2><code>*:</code></tvar> for breaking a line within an item may also harm accessibility.</translate>}}
|
|
<translate>
 
<!--T:63-->
<!--T:63-->
# one
# one
Line 281: Line 304:
### five sub 1 sub 1
### five sub 1 sub 1
## five sub 2
## five sub 2
</translate>
 
|-
|-
| <translate><!--T:64--> Preformatted text</translate>
| <!--T:64--> Preformatted text
| <pre>
| <pre>
  <translate nowrap><!--T:65--> Start each line with a space.</translate>
  <!--T:65--> Start each line with a space.
  <translate nowrap><!--T:179--> Text is '''preformatted''' and</translate>
  <!--T:179--> Text is '''preformatted''' and
  <translate nowrap><!--T:180--> ''markups'' '''''can''''' be done.</translate>
  <!--T:180--> ''markups'' '''''can''''' be done.
</pre>
</pre>
----
----
{{note|1=<translate><!--T:66--> This way of preformatting only applies to section formatting. Character formatting markups are still effective.</translate>}}
|
|
  <translate><!--T:67--> Start each line with a space.</translate>
  <!--T:67--> Start each line with a space.
  <translate><!--T:181--> Text is '''preformatted''' and</translate>
  <!--T:181--> Text is '''preformatted''' and
  <translate><!--T:182--> ''markups'' '''''can''''' be done.</translate>
  <!--T:182--> ''markups'' '''''can''''' be done.
|-
|}
| <translate><!--T:68--> Preformatted text blocks</translate>
| <pre> &lt;nowiki&gt;<translate nowrap><!--T:69-->
Start with a space in the first column,
(before the <tvar name=1>&lt;nowiki&gt;</tvar>).
 
<!--T:70-->
Then your block format will be
    maintained.


<!--T:170-->
This is good for copying in code blocks:
</translate>


def function():
    """<translate nowrap><!--T:171--> documentation string</translate>"""
    if True:
        print True
    else:
        print False&lt;/nowiki&gt;
</pre>
|
{{#tag:nowiki|<translate nowrap><!--T:73-->
Start with a space in the first column,
(before the &lt;nowiki&gt;).
<!--T:74-->
Then your block format will be
    maintained.
<!--T:75-->
This is good for copying in code blocks:
</translate>
def function():
    """<translate nowrap><!--T:172--> documentation string</translate>"""
    if True:
        print True
    else:
        print False
}}
|}
<translate>
== Paragraphs == <!--T:78-->
== Paragraphs == <!--T:78-->


<!--T:79-->
<!--T:79-->
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <tvar name=1>{{tag|br|single}}</tvar>.
MediaWiki ignores single line breaks. To start a new paragraph, leave an empty line. You can force a line break within a paragraph with the HTML tag <nowiki><br /></nowiki>.
</translate>
 


== Template 提供 ==
== Template 提供 ==

Navigation menu