Template:Infobox book: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
test for required lang code before passing the if statement for wikisource or external URL; avoids lang template error message and category |
fix if:both code after testing in sandbox |
||
Line 125: | Line 125: | ||
| label36 = {{longitem|Original text}} |
| label36 = {{longitem|Original text}} |
||
| data36 = {{#if:{{both|{{{native_wikisource|}}}{{{orig_lang_code|}}}}} <!-- |
| data36 = {{#if:{{both|{{{native_wikisource|}}}|{{{orig_lang_code|}}}}} <!-- |
||
then:-->| ''{{lang |{{{orig_lang_code|}}} |
then:-->| ''{{lang |{{{orig_lang_code|}}} |
||
| [[s:{{#if:{{{orig_lang_code|}}}|{{{orig_lang_code|}}}:}}{{{native_wikisource|}}}|{{{title_orig|{{{name|{{PAGENAME}}}}}}}}]]<!-- |
| [[s:{{#if:{{{orig_lang_code|}}}|{{{orig_lang_code|}}}:}}{{{native_wikisource|}}}|{{{title_orig|{{{name|{{PAGENAME}}}}}}}}]]<!-- |
||
Line 133: | Line 133: | ||
-->}} [[Wikisource]]<!-- |
-->}} [[Wikisource]]<!-- |
||
-->{{main other|[[Category:Articles that link to foreign-language Wikisources]]}} <!--(create hidden category to be monitored by WikiProject:Wikisource) |
-->{{main other|[[Category:Articles that link to foreign-language Wikisources]]}} <!--(create hidden category to be monitored by WikiProject:Wikisource) |
||
else:-->| {{#if:{{both|{{{native_external_url|}}}{{{orig_lang_code|}}}}} |
else:-->| {{#if:{{both|{{{native_external_url|}}}|{{{orig_lang_code|}}}}} |
||
| ''{{lang |{{{orig_lang_code|}}} |
| ''{{lang |{{{orig_lang_code|}}} |
||
| [{{{native_external_url|}}} {{{title_orig|{{{name|{{PAGENAME}}}}}}}}]<!-- |
| [{{{native_external_url|}}} {{{title_orig|{{{name|{{PAGENAME}}}}}}}}]<!-- |