Difference between revisions of "Template:1911"

From Self-sufficiency
Jump to: navigation, search
m (1 revision)
(pass on year and edition if set otherwise do not set them. year needed so that it can be changed for short citations if more than one anonymous 1911 article is used as a refrence)
Line 1: Line 1:
 +
{{hide in print|1=
 
<!--
 
<!--
 
sort out the icon to use
 
sort out the icon to use
-->{{#if: {{{noicon|{{{no-icon|}}}<!--noicon-->}}} |<!--eq to empty-->|
+
-->{{#if: {{{noicon|{{{no-icon|}}}<!--noicon-->}}} |<!--eq to empty-->
      {{#ifeq: {{{wstitle|{{{wikisource|}}}<!--wst-->}}} |<!--eq to empty-->|
+
    |<!--then-->{{#ifeq: {{{wstitle|{{{wikisource|}}}<!--wst-->}}} |<!--eq to empty-->
      <!--then-->{{#ifeq: {{{1|}}}|<!--eq to empty-->|
+
                |<!--then-->{{#ifeq: {{{1|}}}|<!--eq to empty-->
                  <!--then-->[[File:PD-icon.svg|12px|alt=]]&nbsp;
+
                              |<!--then-->[[File:PD-icon.svg|12px|alt=]]&nbsp;
 +
                              |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;
 +
                            }}
 
                 |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;
 
                 |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;
                }}
+
                }}
      |<!--else-->[[File:Wikisource-logo.svg|12px|alt=]]&nbsp;
+
  }}
      }}
+
}}<!--Sort out the lead string
  }}<!--Sort out the lead string
+
-->{{#ifeq: {{{no-prescript|}}} |<!--eq to empty-->
-->{{#ifeq: {{{1|{{{no-prescript|}}}<!--1-->}}} |<!--eq to empty-->|<!--
+
    |<!--then display a prescript-->{{#ifeq: {{{inline|{{{footnote|}}}<!--inline-->}}} |<!--eq to empty-->
      then display a prescript-->
+
                                    |<!--then display-->This article
      {{#ifeq: {{{inline|{{{footnote|}}}<!--inline-->}}} |<!--eq to empty-->|<!--
+
                                    |<!--else display-->One or more of the preceding sentences
      then display-->This article
+
                                    }}<!-- no white space
      |<!--else display-->One or more of the preceding sentences
+
  -->&nbsp;incorporates text from a publication now in the [[public domain]]:&nbsp;
      }}<!-- no white space
+
      -->&nbsp;incorporates text from a publication now in the [[public domain]]:&nbsp;
+
 
   }}<!--no white space
 
   }}<!--no white space
-->{{cite encyclopedia
+
-->{{Cite EB1911 |
| last =  {{{author| {{{last|}}} }}}  
+
    | noicon=1
| first = {{{first|}}}
+
    | last =  {{{author| {{{last|}}} }}}
| authorlink = {{{authorlink|}}}
+
    | first = {{{first|}}}
| coauthors = {{{coauthors|}}}
+
    | authorlink = {{{authorlink|}}}
| editor-first = Hugh
+
    | coauthors = {{{coauthors|}}}
| editor-last = Chisholm
+
    | accessdate = {{{accessdate|}}}
| encyclopedia = [[Encyclopædia Britannica Eleventh Edition|Encyclopædia Britannica]]
+
    | wstitle =  {{{wstitle| {{{wikisource| {{{1|}}} }}} }}}
  | title= {{#ifeq: {{{wstitle|{{{wikisource|}}}<!--wst-->}}} |<!--eq to empty-->|
+
    | title = {{{title| {{{article|}}} }}}
            <!--then-->
+
    |{{#if:{{{edition|}}}   |edition    |HIDE_PARAMETER}}={{{edition|}}}
                  {{#ifeq: {{{1|}}}|<!--eq to empty-->|
+
    |{{#if:{{{year|}}}       |year        |HIDE_PARAMETER}}={{{year|}}}
                    <!--then-->
+
    | url = {{{url|}}}
                      {{{title|{{{article|<!--<sup>[[template:1911|[article name needed]]]</sup>-->}}}<!-- -->}}}
+
    | volume = {{{volume|}}}
                    |<!--else-->
+
    | page = {{{page|}}}
                        [[Wikisource:1911 Encyclopædia Britannica/{{{1}}}|{{{1}}}]]
+
    | pages = {{{pages|}}}
                  }}
+
    | ref = harv
            |<!--else--> [[Wikisource:1911 Encyclopædia Britannica/{{{wstitle|{{{wikisource}}}<!--wst-->}}}|{{{wstitle|{{{wikisource}}}<!--wst-->}}}]]
+
  }}<!-- no white space
          }}
+
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->
| url =  {{#if: {{{wikisource|}}} |<!--eq to empty-->|<!--then set--> {{{url|}}} |<!--else leave unset-->}}
+
    |<!-- then-->[[Category:Wikipedia articles incorporating text from the 1911 Encyclopædia Britannica]]<!--
| accessdate = {{{accessdate|}}}  
+
    -->{{#if:{{{1|}}}|[[Category:Wikipedia articles incorporating text from the 1911 Encyclopædia Britannica with an unnamed parameter]]}}<!--
| language =
+
    -->{{#if:{{{article|}}}|[[Category:Wikipedia articles incorporating text from the 1911 Encyclopædia Britannica with an article  parameter]]}}<!--
| edition = Eleventh
+
    -->{{#if:{{{article|}}}|[[Category:Wikipedia articles incorporating text from the 1911 Encyclopædia Britannica with a wikisource parameter]]}}
| date =
+
    |<!--else do nothing-->
| year = 1911
+
  }}<!--no white space
| month =
+
--><noinclude>
| publisher =  Cambridge University Press
+
| volume = {{{volume|}}}
+
| location =
+
| id =
+
| isbn =
+
| oclc =
+
| doi =
+
| page = {{{page|}}}
+
| pages = {{{pages|}}}
+
| quote =
+
| ref = harv  
+
}}<!--legacy code to handle post script
+
-->{{#ifeq: {{{2|}}}||<!--is set then-->|&nbsp;{{{2|}}} }}<noinclude>
+
{{pp-template|small=yes}}
+
 
{{Documentation}}</noinclude><!--
 
{{Documentation}}</noinclude><!--
--><includeonly><!--
+
--><includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT-->
-->{{#ifeq: {{NAMESPACEE}} |<!--is set-->|<!--
+
    then-->[[Category:Wikipedia articles incorporating text from the 1911 Encyclopædia Britannica]]
+
      {{#ifeq: {{{wstitle|{{{wikisource|}}}<!--wst-->}}} |<!--eq to empty-->|<!--
+
        then-->{{#ifeq: {{{1|}}}|<!--eq to empty-->|
+
                  <!--then-->[[Category:Wikipedia articles incorporating text from the 1911 Encyclopaedia Britannica without Wikisource reference]]
+
                  |<!--else-->[[Category:Wikipedia articles incorporating text from the 1911 Encyclopaedia Britannica with Wikisource reference]]
+
                }}
+
        |<!--else-->[[Category:Wikipedia articles incorporating text from the 1911 Encyclopaedia Britannica with Wikisource reference]]
+
      }}<!-- Now check for a parameter as every usage of this template ought to have an article. no white space
+
    -->{{#ifeq: {{{1|{{{wstitle|{{{wikisource|{{{article|{{{title|}}}<!--article-->}}}<!--wikisource-->}}}<!--wst-->}}}<!--1-->}}}|<!--eq to empty-->|<!--
+
        then-->[[Category:Wikipedia articles incorporating text from the 1911 Encyclopaedia Britannica with no article parameter]]
+
        |<!--else do nothing-->
+
      }}<!-- no white space
+
  -->|<!--else do nothing-->
+
  }}<!--no white space
+
--></includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT-->
+

Revision as of 22:27, 12 November 2011

 This article incorporates text from a publication now in the public domainChisholm, Hugh, ed (1911). Encyclopædia Britannica (11th ed.). Cambridge University Press.