Template:Cite EB1911: Difference between revisions
From Zoophilia Wiki
Jump to navigationJump to search
meta>PBS New version which fixes problem with test on title and wstitle etc. better wording for categories |
meta>PBS New logic to sort out different categories of sourced and no parameter put in the same logic for setting a variable and put in some new tests for noicon and url |
||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
sort out the icon to use | sort out the icon to use | ||
-->{{#if: {{{noicon|{{{no-icon|}} | -->{{#if: {{#if: {{{noicon|}}}|{{{noicon}}}|{{{no-icon|}}} }}|<!--eq to empty--> | ||
|<!--then-->{{#ifeq: {{{wstitle|{{{wikisource|}} | |<!--then-->{{#ifeq: {{#if: {{{wstitle|}}}|{{{wstitle}}}|{{{wikisource|}}} }}|<!--eq to empty--> | ||
|<!--then-->{{#ifeq: {{{1|}}}|<!--eq to empty--> | |<!--then-->{{#ifeq: {{{1|}}}|<!--eq to empty--> | ||
|<!--then-->[[File:PD-icon.svg|12px|alt=]] | |<!--then-->[[File:PD-icon.svg|12px|alt=]] | ||
| Line 18: | Line 18: | ||
| editor-last = Chisholm | | editor-last = Chisholm | ||
| encyclopedia = [[Encyclopædia Britannica Eleventh Edition|Encyclopædia Britannica]] | | encyclopedia = [[Encyclopædia Britannica Eleventh Edition|Encyclopædia Britannica]] | ||
| title= {{#ifeq: {{{wstitle|{{{wikisource|}}}<!-- | | title= {{#ifeq: {{#if: {{{wstitle|}}}|{{{wstitle}}}|{{{wikisource|}}} }}|<!--eq to empty--> | ||
|<!--then-->{{#ifeq: {{{1|}}}|<!--eq to empty--> | |<!-- then--> | ||
{{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }}|<!--eq to empty--> | |||
|<!--then--> | |||
{{#ifeq: {{{1|}}}|<!--eq to empty--> | |||
|<!--then--><!--<sup>article name needed</sup>COMMENTED OUT FOR THE MOMENT--> | |||
}} | |<!--else-->[[Wikisource:1911 Encyclopædia Britannica/{{{1}}}|{{{1}}}]] | ||
}}<!--end 1--> | |||
|<!--else-->{{{title{{{article|}}} }}} | |||
}}<!--end title--> | |||
|<!--else-->[[Wikisource:1911 Encyclopædia Britannica/{{{wstitle|{{{wikisource}}}<!--wst-->}}}|{{{wstitle|{{{wikisource}}}<!--wst-->}}}]] | |||
}}<!--end wstitle--> | |||
| url = {{#if: {{{wstitle|}}}|{{{wstitle}}}|{{{wikisource|}}}|<!--eq to empty--> | |||
|<!--then set--> {{{url|}}} | |||
|<!--else leave unset--> | |||
}} | |||
| url = {{#if:{{{wstitle|{{{wikisource|}}}<!--wst-->}}}|<!--eq to empty--> | | url = {{#if:{{{wstitle|{{{wikisource|}}}<!--wst-->}}}|<!--eq to empty--> | ||
|<!--then set--> {{{url|}}} | |<!--then set--> {{{url|}}} | ||
| Line 45: | Line 54: | ||
--><includeonly><!-- | --><includeonly><!-- | ||
-->{{#ifeq: {{NAMESPACEE}} |<!--is set--> | -->{{#ifeq: {{NAMESPACEE}} |<!--is set--> | ||
|<!--Sort out the parameters--> | |||
{{#ifeq: {{#if: {{{wstitle|}}}|{{{wstitle}}}|{{{wikisource|}}} }}|<!--eq to empty--> | |||
|<!-- then--> | |||
{{#ifeq: {{#if: {{{title|}}}|{{{title}}}|{{{article|}}} }}|<!--eq to empty--> | |||
|<!--then--> | |||
{{#ifeq: {{{1|}}}|<!--eq to empty--> | |||
|<!--then-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with no article parameter]] | |||
|<!--else-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with an unnamed parameter]] | |||
}}<!--end 1--> | |||
|<!--else-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica without Wikisource reference]] | |||
}}<!--end title--> | |||
|<!--else-->[[Category:Wikipedia articles incorporating a citation from the 1911 Encyclopaedia Britannica with Wikisource reference]] | |||
}}<!--end of check wstitle--> | |||
}}<!--no white space | |<!--else not in NAMESPACE do nothing--> | ||
}}<!--end NAMESPACE no white space | |||
--></includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT--> | --></includeonly><!--DO NOT PUT A BLANK LINE AFTER THIS COMMENT--> | ||
Revision as of 12:33, 31 March 2011
Chisholm, Hugh, ed. (1911). Encyclopædia Britannica (Eleventh ed.). Cambridge University Press. {{cite encyclopedia}}: Cite has empty unknown parameter: |coauthors= (help); Missing or empty |title= (help)