页面“Debian配置网络”与“Mediawiki修改左侧导航条”之间的差异

来自linux中国网wiki
(页面间的差异)
跳到导航 跳到搜索
docker>Evan
 
docker>Evan
 
第1行: 第1行:
 +
=修改左侧导航栏字体大小,行距=
 +
<pre> #这里是增大,原来的感觉太小了
 +
vim ./skins/Vector/components/navigation.less
 +
 +
注释掉并修改:
 +
 +
111                                li {   
 +
112                                        /*line-height: 1.125em;*/
 +
113                                        line-height: 1.2em;
 +
114                                        padding: 0;
 +
115                                        padding-bottom: 0.5em;
 +
116                                        margin: 0;
 +
117                                        /*font-size: @menu-main-body-font-size;*/
 +
118                                        font-size: 0.875em;
 +
                                        word-wrap: break-word;</pre>
 +
 +
=修改后的左侧=
 
<pre>
 
<pre>
cat  /etc/network/interfaces
+
* navigation
# This file describes the network interfaces available on your system
+
** mainpage|mainpage
# and how to activate them. For more information, see interfaces(5).
+
*我的导航
 +
 
 +
** http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Shell |shell
 +
**http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Python |python
 +
**http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Ops |ops
 +
** http://www.linuxchina.net|linuxchina.net
 +
** http://blog.linuxchina.net|blog.linuxchina.net
 +
**
 +
** recentchanges-url|recentchanges
 +
** randompage-url|randompage
 +
** helppage|help
 +
</pre>
 +
 
 +
 
 +
 
 +
<br/> mediawiki修改左侧导航条
 +
 
 +
搜索栏中输入“mediawiki:sidebar”,然后进行编辑
 +
 
 +
mediawiki:sidebar的原始信息如下:
 +
 
 +
&nbsp;* navigation<br/> &nbsp;** mainpage|mainpage<br/> &nbsp;** portal-url|portal<br/> &nbsp;** currentevents-url|currentevents<br/> &nbsp;** recentchanges-url|recentchanges<br/> &nbsp;** randompage-url|randompage<br/> &nbsp;** helppage|help<br/> &nbsp;** sitesupport-url|sitesupport
 +
 
 +
<br/> 第一行(一个前导*)表示导航栏的名称,其提示文本在“mediawiki:navigation”页面中修改,也可以直接输入文字信息(文字不能与内部mediawiki参数页面重名)。
 +
 
 +
后续行(两个前导*)表示实际导航栏的内容,其格式为“链接网址|显示文本”。其中,链接网址有三种类型:
  
source /etc/network/interfaces.d/*
+
直接输入http网址,例如直接输入“[http://www.allwiki.com/bbs” http://www.allwiki.com/bbs”]<br/> 文章页面标题,例如输入“天下维客”代表站内文章“[[天下维客|天下维客]]”的网址<br/> mediawiki名字空间的参数页,例如输入“mainpage”代表文字信息参数页面“[[MediaWiki:Mainpage]]”的网址。此类字串还有helppage、portal-url等,请到special:allmessages里面查看更多的此类字串。<br/> 显示文本的设定与导航栏名称设定类似,可以:
  
# The loopback network interface
+
直接输入文字信息<br/> 使用mediawiki名字空间参数页的标题缩写,例如上文默认文本中的“randompage”、“sitesupoort”分别代表“[[MediaWiki:Randompage]]”和“[[MediaWiki:Sitesupport]]”。<br/> 用户可根据需求删除/增加mediawiki:sidebar页面中的项目,修改后左侧导航栏就会发生相应改变。(本方法适用于mediawiki默认的monobook皮肤风格)
auto enp0s3 # #设置开机自动连接网络
 
allow-hotplug enp0s3
 
iface enp0s3 inet static #static表示使用固定IP地址上网,dhcp表示使用动态ip
 
address 192.168.88.3  #设置静态ip地址
 
netmask 255.255.255.0 #子网掩码
 
gateway 192.168.88.1  #网关
 
  
auto lo
+
&nbsp; ** http://www.evanlinux.com | 显示文本
iface lo inet loopback
 
  
#重启网络不成功
+
举例&nbsp;
service networking restart
 
  
</pre>
+
<br/> &nbsp;*我的导航&nbsp;<br/> &nbsp;**文章标题项&nbsp;<br/> &nbsp;**[http://www.linuxchina.net http://www.linuxchina.net] &nbsp;|linuxchina.net &nbsp;&nbsp;<br/> &nbsp;**[http://wiki.linuxchina.net/index.php?title=分类:Python http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Python] |python
  
=my eg=
+
<br/> Mediawiki修改左侧导航条<br/> [http://codex.wordpress.org.cn/Mediawiki修改左侧导航条 http://codex.wordpress.org.cn/Mediawiki%E4%BF%AE%E6%94%B9%E5%B7%A6%E4%BE%A7%E5%AF%BC%E8%88%AA%E6%9D%A1]<br/> [http://mi-shang.org/修改MediaWiki左侧导航条 http://mi-shang.org/%E4%BF%AE%E6%94%B9MediaWiki%E5%B7%A6%E4%BE%A7%E5%AF%BC%E8%88%AA%E6%9D%A1]<br/> [http://www.xiuyuanxi.com/index.php?title=MediaWiki左侧导航修改 http://www.xiuyuanxi.com/index.php?title=MediaWiki%E5%B7%A6%E4%BE%A7%E5%AF%BC%E8%88%AA%E4%BF%AE%E6%94%B9]
<pre>
 
# The primary network interface
 
auto enp0s3
 
allow-hotplug enp0s3
 
iface enp0s3 inet static
 
address 192.168.88.68
 
netmask 255.255.255.0
 
gateway 192.168.88.1
 
  
auto lo
+
&nbsp;
iface lo inet loopback
 
  
</pre>
+
=see also=
=参考=
+
[https://blog.mimvp.com/article/7180.html mediawiki 常用参数设置]
[https://www.debian.cn/archives/1246 Debian中如何设置静态IP地址 ]
 
  
[http://www.voidcn.com/article/p-youlbtpa-bqt.html debian9.x配置网络]
+
[[Category:wiki]]
  [[category:ops]]
 

2018年8月24日 (五) 09:20的版本

修改左侧导航栏字体大小,行距

 #这里是增大,原来的感觉太小了
vim ./skins/Vector/components/navigation.less

注释掉并修改:

111                                li {    
112                                         /*line-height: 1.125em;*/
113                                         line-height: 1.2em;
114                                         padding: 0;
115                                         padding-bottom: 0.5em;
116                                         margin: 0;
117                                         /*font-size: @menu-main-body-font-size;*/
118                                         font-size: 0.875em;
                                         word-wrap: break-word;

修改后的左侧

* navigation
** mainpage|mainpage
*我的导航 

** http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Shell |shell
**http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Python |python
**http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Ops |ops
** http://www.linuxchina.net|linuxchina.net
** http://blog.linuxchina.net|blog.linuxchina.net
**
** recentchanges-url|recentchanges
** randompage-url|randompage
** helppage|help



mediawiki修改左侧导航条

搜索栏中输入“mediawiki:sidebar”,然后进行编辑

mediawiki:sidebar的原始信息如下:

 * navigation
 ** mainpage|mainpage
 ** portal-url|portal
 ** currentevents-url|currentevents
 ** recentchanges-url|recentchanges
 ** randompage-url|randompage
 ** helppage|help
 ** sitesupport-url|sitesupport


第一行(一个前导*)表示导航栏的名称,其提示文本在“mediawiki:navigation”页面中修改,也可以直接输入文字信息(文字不能与内部mediawiki参数页面重名)。

后续行(两个前导*)表示实际导航栏的内容,其格式为“链接网址|显示文本”。其中,链接网址有三种类型:

直接输入http网址,例如直接输入“http://www.allwiki.com/bbs”
文章页面标题,例如输入“天下维客”代表站内文章“天下维客”的网址
mediawiki名字空间的参数页,例如输入“mainpage”代表文字信息参数页面“MediaWiki:Mainpage”的网址。此类字串还有helppage、portal-url等,请到special:allmessages里面查看更多的此类字串。
显示文本的设定与导航栏名称设定类似,可以:

直接输入文字信息
使用mediawiki名字空间参数页的标题缩写,例如上文默认文本中的“randompage”、“sitesupoort”分别代表“MediaWiki:Randompage”和“MediaWiki:Sitesupport”。
用户可根据需求删除/增加mediawiki:sidebar页面中的项目,修改后左侧导航栏就会发生相应改变。(本方法适用于mediawiki默认的monobook皮肤风格)

  ** http://www.evanlinux.com | 显示文本

举例 


 *我的导航 
 **文章标题项 
 **http://www.linuxchina.net  |linuxchina.net   
 **http://wiki.linuxchina.net/index.php?title=%E5%88%86%E7%B1%BB:Python |python


Mediawiki修改左侧导航条
http://codex.wordpress.org.cn/Mediawiki%E4%BF%AE%E6%94%B9%E5%B7%A6%E4%BE%A7%E5%AF%BC%E8%88%AA%E6%9D%A1
http://mi-shang.org/%E4%BF%AE%E6%94%B9MediaWiki%E5%B7%A6%E4%BE%A7%E5%AF%BC%E8%88%AA%E6%9D%A1
http://www.xiuyuanxi.com/index.php?title=MediaWiki%E5%B7%A6%E4%BE%A7%E5%AF%BC%E8%88%AA%E4%BF%AE%E6%94%B9

 

see also

mediawiki 常用参数设置