Difference between revisions of "Template:Cite IBD1915"

From blackwiki
Jump to navigation Jump to search
imported>PBS
imported>Trappist the monk
(sync from sandbox;)
 
Line 1: Line 1:
{{hide in print|1=
+
{{#if:{{{noicon|}}}||{{#if:{{{wstitle|}}}||[[File:PD-icon.svg|alt=public domain|12px|link=]]&nbsp;}}<!--no white space
<!--
 
optional icon - included by default
 
-->{{#if:{{{noicon|}}}||[[File:{{#if:{{{wstitle|}}}|wikisource-logo.svg{{!}}alt=Wikisource|PD-icon.svg{{!}}alt=public domain}}|12px|link=]]&nbsp;}}<!--no white space
 
-->}}{{cite encyclopedia
 
    |{{#if:{{{first|}}}  |first  |HIDE_PARAMETER1}}={{{first|}}}
 
    |{{#if:{{{first1|}}} |first1 |HIDE_PARAMETER2}}={{{first1|}}}
 
    |{{#if:{{{first2|}}} |first2 |HIDE_PARAMETER3}}={{{first2|}}}
 
    |{{#if:{{{first3|}}} |first3 |HIDE_PARAMETER4}}={{{first3|}}}
 
  
    |{{#if:{{{last|}}}  |last  |HIDE_PARAMETER5}}={{{last|}}}
+
-->}}{{#invoke:template wrapper|{{#if:{{{_debug|}}}|list|wrap}}|_template=cite encyclopedia
    |{{#if:{{{last1|}}} |last1  |HIDE_PARAMETER6}}={{{last1|}}}
+
  |_exclude=display, noicon, noicon, short, wstitle, _debug
    |{{#if:{{{last2|}}} |last2  |HIDE_PARAMETER7}}={{{last2|}}}
+
  |_reuse=title, url
    |{{#if:{{{last3|}}} |last3  |HIDE_PARAMETER8}}={{{last3|}}}
+
 +
  | editor-first={{#if:{{{short|}}}||C. Hayavadana}}
 +
  | editor-last={{#if:{{{short|}}}||Rao}}
 +
  | encyclopedia=[[Wikisource:The Indian Biographical Dictionary (1915)/Frontispiece|The Indian Biographical Dictionary]]
  
    |{{#if:{{{author |}}} |author  |HIDE_PARAMETER9}}={{{author|}}}
+
  |title={{#if:{{{wstitle|}}}|{{cite wikisource/make link
    |{{#if:{{{author1|}}} |author1 |HIDE_PARAMETER10}}={{{author1|}}}
+
            |link=The Indian Biographical Dictionary (1915)/{{{wstitle|}}}
    |{{#if:{{{author2|}}} |author2 |HIDE_PARAMETER11}}={{{author2|}}}
+
            |label={{{display|{{{wstitle|}}}}}}
    |{{#if:{{{author3|}}} |author3 |HIDE_PARAMETER12}}={{{author3|}}}
+
            |noicon={{{no-icon|{{{noicon|}}}}}}
    |{{#if:{{{authors|}}} |authors |HIDE_PARAMETER13}}={{{authors|}}}
+
          }}|{{#if:{{{title|}}}|{{{title|}}}}}}}
    |{{#if:{{{authorlink|}}} |authorlink |HIDE_PARAMETER14a}}={{{authorlink|}}}
 
    |{{#if:{{{author-link|}}} |author-link |HIDE_PARAMETER14ab}}={{{author-link|}}}
 
    |{{#if:{{{author2link|}}} |author2link |HIDE_PARAMETER14b}}={{{author2link|}}}
 
    |{{#if:{{{author2-link|}}} |author2-link |HIDE_PARAMETER14bb}}={{{author2-link|}}}
 
    |{{#if:{{{author3link|}}} |author3link |HIDE_PARAMETER14c}}={{{author3link|}}}
 
    |{{#if:{{{author3-link|}}} |author3-link |HIDE_PARAMETER14cb}}={{{author3-link|}}}
 
    |{{#if:{{{coauthors|}}}  |coauthors  |HIDE_PARAMETER15}}={{{coauthors|}}}
 
  
    |{{#if:{{{chapter|}}} |chapter |HIDE_PARAMETER15chapter}}={{{chapter|}}}
+
   |url={{#if:{{{wstitle|}}}||{{{url|}}}}}
    
+
 
    | editor-first = {{#if: {{{short|}}}|<!-- eq to empty -->|C. Hayavadana}}
+
  | location={{#if:{{{short|}}}||Madras}}
    | editor-last = {{#if: {{{short|}}}|<!-- eq to empty -->|Rao}}
+
  | publisher={{#if: {{{short|}}}||Pillar & Co.}}
    | encyclopedia = [[Wikisource:The Indian Biographical Dictionary (1915)/Frontispiece|The Indian Biographical Dictionary]]
 
    | title= {{#ifeq: {{{wstitle|}}}|<!--eq to empty-->
 
            |<!-- then-->
 
              {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }} |<!--eq to empty-->
 
              |<!--then--><sup>[[Wikisource:The Indian Biographical Dictionary (1915)|<span style="color:red">article name needed</span>]]</sup>
 
              |<!--else-->{{{title|{{{article|}}} }}}
 
              }}<!--end title-->
 
            |<!--else-->[[Wikisource:The Indian Biographical Dictionary (1915)/{{{wstitle|}}}{{#if:{{{chapter|}}}|&#35;{{{chapter|}}}<!-- -->}}|{{{display|{{{wstitle|}}}<!-- display -->}}}]]
 
            }}<!--end wstitle-->
 
    | url = {{#if:{{{wstitle|}}}|<!--eq to empty-->
 
            |<!--then set--> {{{url|}}}
 
            |<!--else leave unset-->
 
            }}
 
    | accessdate = {{#if:{{{wstitle|}}}|<!--eq to empty-->
 
            |<!--then set--> {{{ accessdate|}}}
 
            |<!--else leave unset-->
 
            }}
 
    | edition = {{{edition|1st}}}
 
    | year = {{{year|1915}}}
 
    | location= {{#if: {{{short|}}}|<!-- eq to empty -->|Madras}}
 
    | publisher = {{#if: {{{short|}}}|<!-- eq to empty -->|Pillar & Co.}}
 
    | volume = {{{volume|}}}
 
    | page = {{{page|}}}
 
    | pages = {{{pages|}}}
 
    | quote = {{{quote|}}}
 
    | ref = {{{ref|}}}
 
    | postscript = {{{postscript|}}}
 
    | separator = {{{separator|}}}
 
    | mode = {{{mode|}}}
 
    |{{#if:{{{1|}}} |1 |HIDE_PARAMETER20}}={{{1|}}}
 
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}</noinclude><!--
 
{{Documentation}}</noinclude><!--
Line 66: Line 24:
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
 
     |<!--Sort out the parameters-->
 
     |<!--Sort out the parameters-->
     {{#ifeq: {{#if: {{{wstitle|}}}|{{{wstitle}}}|{{{wikisource|}}} }}|<!--eq to empty-->
+
     {{#ifeq: {{#if: {{{wstitle|}}}|{{{wstitle}}}}}|<!--eq to empty-->
 
     |<!-- then-->
 
     |<!-- then-->
       {{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }}|<!--eq to empty-->
+
       {{#ifeq: {{#if: {{{title|}}}|{{{title}}}}}|<!--eq to empty-->
 
       |<!--then-->[[Category:Wikipedia articles incorporating a citation from the IBD (1915) with no article parameter]]
 
       |<!--then-->[[Category:Wikipedia articles incorporating a citation from the IBD (1915) with no article parameter]]
 
       |<!--else-->[[Category:Wikipedia articles incorporating a citation from the IBD (1915) without Wikisource reference]]
 
       |<!--else-->[[Category:Wikipedia articles incorporating a citation from the IBD (1915) without Wikisource reference]]
Line 77: Line 35:
 
   |<!--else not in NAMESPACE do nothing-->
 
   |<!--else not in NAMESPACE do nothing-->
 
   }}<!--end NAMESPACE no white space
 
   }}<!--end NAMESPACE no white space
-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Wikipedia articles incorporating a citation from the IBD (1915) with an unknown parameter|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Cite IBD1915]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 |accessdate |article |author |author1 |authorlink |author-link |author2 |author2link |author2-link | author3 | author3link |author3-link  |authors |coauthors |chapter |display |edition |first |first1 |first2 |first3 |footnote |last |last1 |last2 |last3 |mode |noicon |page |pages |postscript |quote |ref |separator |short |title |url |volume |wikisource |wstitle |year
+
--></includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT-->
}}</includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT-->
 

Latest revision as of 13:36, 15 October 2020

public domain Rao, C. Hayavadana (ed.). The Indian Biographical Dictionary. Madras: Pillar & Co. Missing or empty |title= (help)

Template documentation[view] [edit] [history] [purge]

This template cites The Indian Biographical Dictionary.

Usage

Non-standard parameters:

noicon=x — do not display an icon
short=x — prevents the text of some parameters being displayed (see below)
wstitle=article name — will automatically create a link to an IDB article on Wikisource
display=alternative text — if wstitle is set and display is set then
                                       what is see is the display text

All the other parameters are standard and can be found in the documentation of {{cite encyclopedia}} template.

This template fills out the following standard parameters:

 encyclopedia = The Indian Biographical Dictionary
 year = 1915 — can be overwritten
 ref = harv — can be overwritten
These parameters do not display if the short parameter is set:
 editor-first = C. Hayavadana
 editor-last =  Rao
 edition = 1st
 location = Madras
 publisher = Pillar & Co.

In addition the following standard parameters are available to be filled:

first
first1
first2
first3
last
last1
last2
last3
author
author1
author2
author3
author-link
author2-link
author3-link
title — can be set as an alternative to wstitle if the article is not available on Wikisource
url – ignored if wstitle is set otherwise can be set as the alternative website for the IBD article
volume
page
pages
mode

Tracking categories

See also

  • {{IBD1915}} — Use for citations where the IBD (1915) text is copied
  • {{IBD1915 poster}} — Place in the external links area for topic relevant IBD (1915) articles that may be of interest but are not cited by Wikipedia.