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

From SDNU ICPC Wiki
Jump to navigation Jump to search
(Created page with "== [https://www.mediawiki.org/wiki/Help:Formatting 基本format] == == Template 提供 == === Template:Member === Member 在table中添加成员 <code> <nowiki> {| class=w...")
 
Line 1: Line 1:
== [https://www.mediawiki.org/wiki/Help:Formatting 基本format] ==
== [https://www.mediawiki.org/wiki/Help:Formatting 基本format] ==
{| class="wikitable"
! <translate><!--T:3--> Description</translate>
! width=40% | <translate><!--T:4--> You type</translate>
! width=40% | <translate><!--T:5--> You get</translate>
|-
! colspan="3" style="background: #ABE" | <translate><!--T:6--> Character (inline) formatting – ''applies anywhere''</translate>
|-
| <translate><!--T:7--> Italic text</translate>
| <pre>
''<translate nowrap><!--T:8--> italic</translate>''
</pre>
|
''<translate><!--T:9--> italic</translate>''
|-
| <translate><!--T:10--> Bold text</translate>
| <pre>
'''<translate nowrap><!--T:11--> bold</translate>'''
</pre>
|
'''<translate><!--T:12--> bold</translate>'''
|-
| <translate><!--T:13--> Bold and italic</translate>
| <pre>
'''''<translate nowrap><!--T:14--> bold & italic</translate>'''''
</pre>
|
'''''<translate><!--T:15--> bold & italic</translate>'''''
|- style="visibility: collapse;"
| colspan="3" | {{Anchor|nowiki|&lt;nowiki&gt;|.3Cnowiki.3E}}
|-
| <translate><!--T:19--> Escape wiki markup</translate>
| {{#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>
|-
! colspan="3" style="background: #ABE" | <translate><!--T:24--> Section formatting – ''only at the beginning of the line''</translate>
|-
| <translate><!--T:25--> Section Headings of different levels</translate>
| <pre>
<translate>
== Level 2 == <!--T:26-->
=== Level 3 === <!--T:27-->
==== Level 4 ==== <!--T:28-->
===== Level 5 ===== <!--T:29-->
====== Level 6 ====== <!--T:30-->
</translate>
</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 -->
<translate>
<!--T:35-->
<h2>Level 2</h2>
<!--T:36-->
<h3>Level 3</h3>
<!--T:37-->
<h4>Level 4</h4>
<!--T:38-->
<h5>Level 5</h5>
<!--T:39-->
<h6>Level 6</h6>
</translate>
|-
| <translate><!--T:40--> Horizontal rule</translate>
| <pre>
<translate nowrap><!--T:41--> Text before</translate>
----
<translate nowrap><!--T:42--> Text after</translate>
</pre>
|
<translate><!--T:43--> Text before</translate>
----
<translate><!--T:44--> Text after</translate>
|-
| <translate><!--T:45--> Bullet list</translate>
|
<pre>
<translate nowrap>
<!--T:46-->
* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
<!--T:160-->
* combine bullet list
** with definition
::- definition
** creates empty space
<!--T:161-->
* combine bullet list
** with definition
*:- definition
** without empty spaces
<!--T:162-->
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
</translate>
</pre>
|
<translate>
<!--T:47-->
* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.
<!--T:163-->
* combine bullet list
** with definition
::- definition
** creates empty space
<!--T:164-->
* combine bullet list
** with definition
*:- definition
** without empty spaces
<!--T:165-->
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
</translate>
|-
| <translate><!--T:48--> Numbered list</translate>
|
<pre>
<translate nowrap>
<!--T:49-->
# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines
<!--T:50-->
# end the list and start another.
Any other start also
ends the list.
<!--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.
</translate>
</pre>
|
<translate>
<!--T:51-->
# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines
<!--T:52-->
# end the list and start another.
Any other start also
ends the list.
<!--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>
|-
| <translate><!--T:53--> Definition list</translate>
| <pre>
<translate nowrap>
<!--T:54-->
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
</translate>
</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-->
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
</translate>
|-
| <translate><!--T:56--> Indent text</translate>
| <pre>
<translate nowrap>
<!--T:57-->
: Single indent
:: Double indent
::::: Multiple indent
</translate>
</pre>
----
{{Note|1=<translate><!--T:58--> This workaround may harm accessibility.</translate>}}
|
<translate>
<!--T:59-->
: Single indent
:: Double indent
::::: Multiple indent
</translate>
|-
| <translate><!--T:60--> Mixture of different types of list</translate>
| <syntaxhighlight lang="html">
<translate nowrap>
<!--T:61-->
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <tvar name=1><br /></tvar> of <tvar name=2><nowiki><br /></nowiki></tvar>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
</translate>
</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-->
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <tvar name=1><br /></tvar> of <tvar name=2><nowiki><br /></nowiki></tvar>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
</translate>
|-
| <translate><!--T:64--> Preformatted text</translate>
| <pre>
<translate nowrap><!--T:65--> Start each line with a space.</translate>
<translate nowrap><!--T:179--> Text is '''preformatted''' and</translate>
<translate nowrap><!--T:180--> ''markups'' '''''can''''' be done.</translate>
</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>
<translate><!--T:181--> Text is '''preformatted''' and</translate>
<translate><!--T:182--> ''markups'' '''''can''''' be done.</translate>
|-
| <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-->
<!--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>.
</translate>


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

Revision as of 16:58, 13 June 2021

基本format

<translate> Description</translate> <translate> You type</translate> <translate> You get</translate>
<translate> Character (inline) formatting – applies anywhere</translate>
<translate> Italic text</translate>
''<translate nowrap><!--T:8--> italic</translate>''

<translate> italic</translate>

<translate> Bold text</translate>
'''<translate nowrap><!--T:11--> bold</translate>'''

<translate> bold</translate>

<translate> Bold and italic</translate>
'''''<translate nowrap><!--T:14--> bold & italic</translate>'''''

<translate> bold & italic</translate>

Template:Anchor
<translate> Escape wiki markup</translate>
[[:Template:^(]]nowiki[[:Template:)^]]<translate nowrap> no [[wiki]] ''markup''</translate>[[:Template:^(]]/nowiki[[:Template:)^]]

<translate> no [[wiki]] ''markup''</translate>

<translate> Section formatting – only at the beginning of the line</translate>
<translate> Section Headings of different levels</translate>
<translate>
== Level 2 == <!--T:26-->

=== Level 3 === <!--T:27-->

==== Level 4 ==== <!--T:28-->

===== Level 5 ===== <!--T:29-->

====== Level 6 ====== <!--T:30-->
</translate>

Template:Note

<translate>

Level 2

Level 3

Level 4

Level 5
Level 6

</translate>

<translate> Horizontal rule</translate>
<translate nowrap><!--T:41--> Text before</translate>
----
<translate nowrap><!--T:42--> Text after</translate>

<translate> Text before</translate>


<translate> Text after</translate>

<translate> Bullet list</translate>
<translate nowrap>
<!--T:46-->
* Start each line
* with an [[Wikipedia:asterisk|asterisk]] (*).
** More asterisks give deeper
*** and deeper levels.
* Line breaks <br />don't break levels.
*** But jumping levels creates empty space.
Any other start ends the list.

<!--T:160-->
* combine bullet list
** with definition 
::- definition
** creates empty space

<!--T:161-->
* combine bullet list
** with definition 
*:- definition
** without empty spaces

<!--T:162-->
*bullet list
:- definition
:* sublist that doesn't create empty
:* spaces after definition
</translate>

<translate>

  • Start each line
  • with an asterisk (*).
    • More asterisks give deeper
      • and deeper levels.
  • Line breaks
    don't break levels.
      • But jumping levels creates empty space.

Any other start ends the list.

  • combine bullet list
    • with definition
- definition
    • creates empty space
  • combine bullet list
    • with definition
    - definition
    • without empty spaces
  • bullet list
- definition
  • sublist that doesn't create empty
  • spaces after definition

</translate>

<translate> Numbered list</translate>
<translate nowrap>
<!--T:49-->
# Start each line
# with a [[Wikipedia:Number_sign|number sign]] (#).
## More number signs give deeper
### and deeper
### levels.
# Line breaks <br />don't break levels.
### But jumping levels creates empty space.
# Blank lines

<!--T:50-->
# end the list and start another.
Any other start also
ends the list.

<!--T:183-->
<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>

<translate>

  1. Start each line
  2. with a number sign (#).
    1. More number signs give deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines
  1. end the list and start another.

Any other start also ends the list.

<tvar name=1>#</tvar> use "nowiki" tags to display a literal (#) at the beginning of a line without interpreting it as a numbered list.</translate>

<translate> Definition list</translate>
<translate nowrap>
<!--T:54-->
;item 1
: definition 1
;item 2
: definition 2-1
: definition 2-2
</translate>

Template:Note

<translate>

item 1
definition 1
item 2
definition 2-1
definition 2-2

</translate>

<translate> Indent text</translate>
<translate nowrap>
<!--T:57-->
: Single indent
:: Double indent
::::: Multiple indent
</translate>

Template:Note

<translate>

Single indent
Double indent
Multiple indent

</translate>

<translate> Mixture of different types of list</translate>
<translate nowrap>
<!--T:61-->
# one
# two
#* two point one
#* two point two
# three
#; three item one
#: three def one
# four
#: four def one
#: this looks like a continuation
#: and is often used
#: instead <tvar name=1><br /></tvar> of <tvar name=2><nowiki><br /></nowiki></tvar>
# five
## five sub 1
### five sub 1 sub 1
## five sub 2
</translate>

Template:Note

<translate>

  1. one
  2. two
    • two point one
    • two point two
  3. three
    three item one
    three def one
  4. four
    four def one
    this looks like a continuation
    and is often used
    instead <tvar name=1>
    </tvar> of <tvar name=2><br /></tvar>
  5. five
    1. five sub 1
      1. five sub 1 sub 1
    2. five sub 2

</translate>

<translate> Preformatted text</translate>
 <translate nowrap><!--T:65--> Start each line with a space.</translate>
 <translate nowrap><!--T:179--> Text is '''preformatted''' and</translate>
 <translate nowrap><!--T:180--> ''markups'' '''''can''''' be done.</translate>

Template:Note

<translate> Start each line with a space.</translate>
<translate> Text is preformatted and</translate>
<translate> markups can be done.</translate>
<translate> Preformatted text blocks</translate>
 <nowiki><translate nowrap><!--T:69-->
Start with a space in the first column,
(before the <tvar name=1><nowiki></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</nowiki>
<translate nowrap>
Start with a space in the first column,
(before the <nowiki>).

Then your block format will be
    maintained.

This is good for copying in code blocks:
</translate>

def function():
    """<translate nowrap> documentation string</translate>"""

    if True:
        print True
    else:
        print False

<translate>

Paragraphs

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>Template:Tag</tvar>. </translate>

Template 提供

Template:Member

Member 在table中添加成员

{| class=wikitable
|-
{{TeamMember|member=liupo|cfid=liupo|age=2018}}
|}

liupo member 2018

使用html标签

wiki可使用html标签较少,当出现无法使用标签时,可向管理员申请使用

申请后使用方式

<htmltag tagname="img" 正常标签属性 />