साँचा:Subject bar/doc

मुक्त ज्ञानकोश विकिपीडिया से
< साँचा:Subject bar
imported>Mala chaubey द्वारा परिवर्तित ०६:४५, ३ अप्रैल २०१४ का अवतरण (→‎Optional parameters)
(अन्तर) ← पुराना अवतरण | वर्तमान अवतरण (अन्तर) | नया अवतरण → (अन्तर)
नेविगेशन पर जाएँ खोज पर जाएँ

{{

 साँचा:namespace detect

| type = notice | image = | imageright = | class = | style = margin-bottom:1.0em; | textstyle = | text = साँचा:strong for साँचा:terminate sentence
It contains usage information, categories and other content that is not part of the original साँचा page. | small = | smallimage = | smallimageright = | smalltext = | subst = | date = | name = }} साँचा:lua This navigational template is intended be placed at the bottom of an article, after the References or External Links and before the categories. It offers an alternative to several floating box templates that link to books, portals, and Wikipedia's sister projects but also typically cause formatting issues because of their size and alignment.

Usage

Note: None of the parameters should be capitalized. For example, use "commons", "v", etc. - not "Commons", "V", etc.

All parameters

When copying all parameters in either the vertical or horizontal layouts, delete those which are not needed. If no links are needed for a particular type, such as "books", that part of the template will not appear on the page.

All parameters, horizontal layout
{{Subject bar |book= |portal= |commons= |commons-search= |species= |species-search= |n= |n-search= |wikt= |wikt-search= |b= |b-search= |q= |q-search= |s= |s-search= |v= |v-search= |voy= |voy-search=}}
All parameters, vertical layout
{{Subject bar
|book           = 
|portal         = 
|commons        = 
|commons-search = 
|species        = 
|species-search = 
|n              = 
|n-search       = 
|wikt           = 
|wikt-search    = 
|b              = 
|b-search       = 
|q              = 
|q-search       = 
|s              = 
|s-search       = 
|v              = 
|v-search       = 
|voy            = 
|voy-search     = 
}}

Using multiple books and portals

The for articles linking to a single book or portal, use the sample code below. If more than one book or portal is needed (up to 10 of each), append a number as follows:
{{Subject bar |book1= |book2= |book3= | ... | |portal1= |portal2= |portal3= |...}}

Required parameters

No single parameter is required, however, at least one book, portal, or sister project should be utilized with the use of this template. Since Wikipedia articles typically fall under the domain of one or more WikiProjects, and since WikiProjects often have a portal, almost every article should list at least one portal.

Optional parameters

  • book parameters
    • book
    • book1, book2, book3, ...
  • portal parameters
    • portal
    • portal1, portal2, portal3, ...
  • sister project parameters
    • commons: Setting any value for this parameter will result in a link to WikiMedia Commons. The default search string is the article name.
    • commons-search: This value replaces the default Commons search string. To search by category, start with "Category:".
    • species: Setting any value for this parameter will result in a link to Wikispecies. The default search string is the article name.
    • species-search: This value replaces the default Wikispecies search string.
    • n: Setting any value for this parameter will result in a link to Wikinews. The default search string is the article name.
    • n-search: This value replaces the default Wikinews search string.
    • wikt: Setting any value for this parameter will result in a link to Wiktionary. The default search string is the article name.
    • wikt-search: This value replaces the default Wiktionary search string.
    • b: Setting any value for this parameter will result in a link to Wikibooks. The default search string is the article name.
    • b-search: This value replaces the default Wikibooks search string.
    • q: Setting any value for this parameter will result in a link to Wikiquote. The default search string is the article name.
    • q-search: This value replaces the default Wikiquote search string.
    • s: Setting any value for this parameter will result in a link to Wikisource. The default search string is the article name.
    • s-search: This value replaces the default Wikisource search string. To search by author, start with "Author:".
    • v: Setting any value for this parameter will result in a link to Wikiversity. The default search string is the article name.
    • v-search: This value replaces the default Wikiversity search string.
    • voy: Setting any value for this parameter will result in a link to Wikivoyage. The default search string is the article name.
    • voy-search: This value replaces the default Wikivoyage search string.

Examples

Examples using one or more of each type

{{Subject bar |book= Lemurs |portal1= Primates |portal2= Madagascar |commons= y |commons-search= Category:Lemuriformes |species= y |species-search= Lemuriformes }}

स्क्रिप्ट त्रुटि: "subject bar" ऐसा कोई मॉड्यूल नहीं है।

{{Subject bar |book1= Lemurs |portal1= Primates |portal2= Madagascar |commons= y |commons-search= Category:Lemur catta |species= y |species-search= Lemur catta |n= y |wikt= y |wikt-search= Lemur |b= y |q= y |s= y |v= y |voy= y |voy-search= Madagascar }}

स्क्रिप्ट त्रुटि: "subject bar" ऐसा कोई मॉड्यूल नहीं है।

Examples omitting one or more types

{{Subject bar |portal1= Biography |portal2= Primates |s= y |s-search= Author:William Charles Osman Hill |v= y }}

स्क्रिप्ट त्रुटि: "subject bar" ऐसा कोई मॉड्यूल नहीं है।

{{Subject bar |book1= Subfossil lemurs |book2= Lemurs |portal1= Primates |portal2= Madagascar }}

स्क्रिप्ट त्रुटि: "subject bar" ऐसा कोई मॉड्यूल नहीं है।

{{Subject bar |portal = Primates }}

स्क्रिप्ट त्रुटि: "subject bar" ऐसा कोई मॉड्यूल नहीं है।

See also