中华古典文库

Template:Plain_sister 中华文库

文档图示 模板文档[查看] [编辑] [历史] [清除缓存]
本模板已应用于 200,000+页面。
为避免大规模的破坏及不必要的服务器负荷,任何改动均应先在模板的沙盒、测试样例页面或您自己的用户页测试,经过测试后即可一次性改动本模板。为尊重其他用户,任何改动在生效前都应先在讨论页讨论。

目录

  • 1 Background
  • 2 Usage
    • 2.1 Parameters
  • 3 Examples
    • 3.1 Basic
    • 3.2 Full

Background

This template provides a simple list of links to sister WMF projects.

  • An interface to this template is already included in {{header}}, {{author}} and {{portal header}}, and this methodology is to be used as the preference in the respective namespaces — Main, Author and 类型
  • Where the above header templates are not used this template is to be used, instead of bulky templates like {{wikipedia}}.

Usage

{{Plain sister
| edition = yes
| portal = 
| related_author = 
| wikipedia = 
| commons = 
| commonscat = 
| wikiquote = 
| wikinews = 
| wiktionary = 
| wikibooks = 
| wikiversity = 
| wikispecies = 
| wikivoyage = 
| wikidata = 
| wikilivres = 
| meta = 
}}

Parameters

This template uses the following parameters. All parameters are optional. if you enter no parameters, no output will be generated.

  • {{{edition}}}: Link to the associated talk-page when set to yes.
  • {{{portal}}}: Link to the named portal. Multiple portals can be linked by separating portals with a forward slash, eg. United States/Australia. Maximum of ten portals can be added
  • {{{related_author}}}: Link to the named author. Multiple authors can be linked by separating authors with a forward slash, eg. William Shakespeare/Francis Bacon
  • {{{wikipedia}}}: Link to Wikipedia (displays as article)
  • {{{commons}}}: Link to Wikicommons (displays as media) )
  • {{{commonscat}}}: An alternative link to Wikicommons, this links to a category instead of a gallery (displays as media category)
  • {{{wikiquote}}}: Link to Wikiquote (displays as quotes)
  • {{{wikinews}}}: Link to Wikinews (displays as news)
  • {{{wiktionary}}}: Link to Wiktionary (displays as definition)
  • {{{wikibooks}}}: Link to Wikibooks (displays as textbook)
  • {{{wikiversity}}}: Link to Wikiversity (displays as course)
  • {{{wikispecies}}}: Link to Wikispecies (displays as taxonomy)
  • {{{wikivoyage}}}: Link to Wikivoyage (displays as travel guide)
  • {{{wikidata}}}: Link to Wikidata (displays as data log). NB: Wikidata pages are referenced by an alphanumeric code.
  • {{{wikilivres}}}: Link to Wikilivres (displays as wikilivres)
  • {{{meta}}}: Link to Meta (displays as meta)

Examples

Basic

The template can be used as follows to create a single interwiki link, author link or portal link:

{{Plain sister
| wikipedia = Test
}}


    {{Plain sister
    | portal = 类型s
    }}
    
    • 相关导览。相关导览:类型s


    {{Plain sister
    | portal = Afghanistan/Albania/Algeria/Andorra/Angola/Antigua and Barbuda/Argentina/Armenia/Australia/Austria
    }}
    
    • 相关导览。相关导览:Afghanistan,Albania,Algeria,Andorra,Angola,Antigua and Barbuda,Argentina,Armenia,Australia,Austria


    {{Plain sister
    | related_author = William Shakespeare/Francis Bacon
    }}
    
    • 相关作者相关作者:William Shakespeare,Francis Bacon


    Full

    The template can also be used to display a collection of portal and interwiki links:

    {{Plain sister
    | edition = yes
    | portal = 类型s/General Works/World History
    | related_author = William Shakespeare/Francis Bacon
    | wikipedia = Test
    | commons = Test
    | commonscat = Test
    | wikiquote = Test
    | wikinews = Test
    | wiktionary = Test
    | wikibooks = Test
    | wikiversity = Test
    | wikispecies = Test
    | wikivoyage = Test
    | wikidata = Q692
    | wikilivres = Test
    | meta = Test
    }}
    
    • Documentation for the TextInfo template.版本信息
    • 相关导览。相关导览:类型s,General Works,World History
    • 相关作者相关作者:William Shakespeare,Francis Bacon


    上述文档嵌入自Template:Plain sister/doc。 (编辑 | 历史)
    编者可以在本模板的沙盒 ( | )和测试样例 ()页面进行实验。
    请在/doc子页面中添加分类。 本模板的子页面。
    @ 中华古典文库·所有典籍和文档皆收集自互联网。