Wikiの書き方

提供:8x9 Minecraft Wiki
(版間での差分)
移動: 案内, 検索
 
(1人の利用者による、間の8版が非表示)
5行: 5行:
  
 
* [https://www.mediawiki.org/wiki/Help:Formatting/ja Help:書式整形]
 
* [https://www.mediawiki.org/wiki/Help:Formatting/ja Help:書式整形]
 +
* [https://www.mediawiki.org/wiki/Help:Tables/ja 表の書き方]
 
* [https://www.mediawiki.org/wiki/Help:Links/ja Help:リンク]
 
* [https://www.mediawiki.org/wiki/Help:Links/ja Help:リンク]
 
* [https://www.mediawiki.org/wiki/Help:Lists Help:Lists]
 
* [https://www.mediawiki.org/wiki/Help:Lists Help:Lists]
 
* [https://www.mediawiki.org/wiki/Help:Images/ja Help:Images]
 
* [https://www.mediawiki.org/wiki/Help:Images/ja Help:Images]
 
* [https://www.mediawiki.org/wiki/Help:Tables/ja Help:Tables]
 
* [https://www.mediawiki.org/wiki/Help:Tables/ja Help:Tables]
* [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi/ja シンタックスハイライト]
+
* [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi/ja シンタックスハイライト(まだ使えません)]
  
 
==samples==
 
==samples==
  
* 画像
+
===画像===
  
 
[[ファイル:2016-05-23 test2.png]]
 
[[ファイル:2016-05-23 test2.png]]
 +
 +
===SyntaxHighlighter===
 +
 +
プログラムの色付け
 +
 +
Lua:
 +
 +
<syntaxhighlight lang="lua">
 +
-- User define
 +
local tx = 3
 +
local ty = 4
 +
 +
function digdag()
 +
  turtle.dig()
 +
  turtle.forward()
 +
 +
  return true
 +
end
 +
 +
for x = 1, tx do
 +
  for y = 1, ty do
 +
    turtle.forward()
 +
    turtle.turnRight()
 +
  end
 +
end
 +
</syntaxhighlight>
 +
 +
 +
 +
HTML:
 +
 +
<syntaxhighlight lang="html4strict">
 +
<html>
 +
  <head>
 +
    <title>kinopy home page</title>
 +
  </head>
 +
  <body>
 +
    <p>こんにちは</p>
 +
    <p><font size=“3” color=“00ff00”>hello!</font></p>
 +
  </body>
 +
</html>
 +
</syntaxhighlight>
  
 
----
 
----
24行: 67行:
  
 
[[ファイル:2016-05-23 test.png]]
 
[[ファイル:2016-05-23 test.png]]
 +
 +
===GeSHi===
  
 
<syntaxhighlight lang="php">
 
<syntaxhighlight lang="php">
34行: 79行:
 
?>
 
?>
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 +
===SyntaxHighlighter===
 +
 +
<source lang="javascript">
 +
// SyntaxHighlighter makes your code snippets beautiful without tiring your servers.
 +
// http://alexgorbatchev.com
 +
var setArray = function(elems) {
 +
    this.length = 0;
 +
    push.apply(this, elems);
 +
    return this;
 +
}
 +
</source>
  
 
[[Category:Management]]
 
[[Category:Management]]

2016年5月28日 (土) 11:47時点における最新版

目次


書き方

samples

画像

2016-05-23 test2.png

SyntaxHighlighter

プログラムの色付け

Lua:

-- User define
local tx = 3
local ty = 4
 
function digdag()
  turtle.dig()
  turtle.forward()
 
  return true
end
 
for x = 1, tx do
  for y = 1, ty do
    turtle.forward()
    turtle.turnRight()
  end
end


HTML:

<html>
  <head>
    <title>kinopy home page</title>
  </head>
  <body>
    <p>こんにちは</p>
    <p><font size=3color=“00ff00”>hello!</font></p>
  </body>
</html>

Check any syntaxes

※ここから先は管理者用のテストエリアです

ファイル:2016-05-23 test.png

GeSHi

<?php
    $v = "string";    // sample initialization
?>
html text
<?
    echo $v;         // end of php code
?>

SyntaxHighlighter

// SyntaxHighlighter makes your code snippets beautiful without tiring your servers.
// http://alexgorbatchev.com
var setArray = function(elems) {
    this.length = 0;
    push.apply(this, elems);
    return this;
}
個人用ツール
名前空間
変種
操作
案内
ツールボックス