Text Formatting Templates

出自Gentoo Linux Wiki

跳转到: 导航, 搜索
您正在查看 模板列表.
头部 文本格式化 信息 讨论和Bug 头衔和身份地位 其他

[编辑] Introduction

This listing of templates is used to help format text for easier reading on the Gentoo Linux Wiki and to help make all articles consistant

[编辑] Listing

What it looks like What you type
Template:Box Code
代码: Code Title
Code Content
More code content
Even more code
 {{Box Code|Code Title|
  <pre>
  Code Content
  More code content
  Even more code
  </pre>
 }}
 
Template:Box File
文件: File Title
File content,
more content
even more content
 {{Box File|File Title|
  <pre>
  File content,
  more content
  even more content
  </pre>
 }}
 
Template:Box Note
注意: This is a note.
 {{Box Note|This is a note.}}
 
Template:Box Warning
警告: This is a warning about a possibly dangerous action.
 {{Box Warning|This is a warning about a possibly dangerous action.}}
 
Template:Box Tip
提示! This is a helpful tip.
 {{Box Tip|This is a helpful tip.}}
 
Template:Firewall Rule


1. Save your current firewall rules iptables-save > /etc/iptables.bak
2. Open /etc/iptables.bak in your favorite text editor
3. Add the following rule(s) in appropriate order (according to your existing rules).

Firewall Rule: Service Name
-A INPUT -s 127.0.0.1 -j ACCEPT
-A INPUT -j DROP

4. Restore all rules to be part of your current configuration iptables-restore /etc/iptables.bak


 {{Firewall Rule|Service Name|
  <nowiki>
 -A INPUT -s 127.0.0.1 -j ACCEPT
 -A INPUT -j DROP
  </nowiki>
 }}
 
Template:Box Kernel
Linux Kernel Configuration: Name of Config
Code maturity level options  --->
General setup  --->
Loadable module support  --->
Processor type and features  --->
Power management options (ACPI, APM)  --->
{{Box Kernel|Name of Config|
 Code maturity level options  --->
 General setup  --->
 Loadable module support  --->
 Processor type and features  --->
 Power management options (ACPI, APM)  --->
}}
Template:Filename

/path/to/file

{{Filename|/path/to/file}}

Template:Commandline

your command here

{{Commandline|your command here}}

Template:Gui

clickable » item » here

{{Gui| clickable » item » here}}

Template:Useflag

Make sure you have gnome enabled...

Make sure you have {{Useflag|gnome}} enabled...

Template:Ebuild

sys-apps/acpid

{{Ebuild|sys-apps/acpid}}

Template:Codeline

Option "DPMS"

{{Codeline|Option "DPMS"}}

Template:Keyword

~x86

{{Keyword|~x86}}

Template:Box FIXME
FIXME: Something on this page demands attention and should be fixed.

{{Box FIXME|Something on this page demands attention and should be fixed.}}

个人工具