• 欢迎来到THBWiki!如果您是第一次来到这里,请点击右上角注册一个帐户
  • 有任何意见、建议、求助、反馈都可以在 讨论板 提出
  • THBWiki以专业性和准确性为目标,如果你发现了任何确定的错误或疏漏,可在登录后直接进行改正

Topic on 用户讨论:Demobanker

Jump to navigation Jump to search

为什么词条名用的“:”但是专辑名称又用“:”呢?

5
Summary by VincentDirac

感谢

VincentDirac〈女儿怪〉 (talkcontribs)

Excuse me. Why the pagename of the work"Re:" use "Re:" instead of "Re:"?

VincentDirac〈女儿怪〉 (talkcontribs)

抱歉,之前想太远了,误以为是专辑。因为之前我看到过,很多专辑有类似的情况。词条使用全角符号但是名称使用半角导致一些模板不能读取。同人志不会遇到这种问题。

Demobanker〈Aim to Be a Poketouhou Master〉 (talkcontribs)

Characters like ":", "/", and "*" have special purposes in URLs and can cause errors if they're in page titles. Using their fullwidth version (so ":", "/" and "*") is the workaround for them. /THRiCE/ for example wasn't linking until it was renamed to use fullwidth slashes. *Cherry Garden* or * Works also had linking issues and it was fixed by renaming the page to use * instead of *.

":" in page names are used to indicate the namespace of the page. Namespace basically indicate special page types and can have special behaviors. This conversation is taking place in the 用户讨论 (user discussion) namespace. 歌词:Bad Apple!!(Alstroemeria Records) is in the lyrics namespace. Most pages, however, don't have a namespace and are considered to be in the mainspace. That includes doujin works pages. Those pages use : so they don't get treated as a namespace page. You can check the Mediawiki help page to learn more about namespaces.

In the case of Re:, I don't think it will cause any issue since the character is at the end of the name. However, it's automatically converted into : by the doujin work info template. You can test it out by going to the sandbox and adding this

{{简单信息框架
|列表=
{{简单同人志信息
|名称=test:food
}}

}}

and see that it lets you create a page named test:food.

Hope this helps answer your question.

VincentDirac〈女儿怪〉 (talkcontribs)

哦哦哦,原来如此。感谢你的解答。Thank you very much!

Demobanker〈Aim to Be a Poketouhou Master〉 (talkcontribs)

oh that was fast lol

but yeah it's one of those mediawiki quirks that can be frustrating when you don't know why it happens. I think it's easier to understand why you have to make "}" and "|" fullwidth when they appear in song titles than something like this