Template:Library resources box: Difference between revisions

From WikiMD's Wellness Encyclopedia

m 1 revision imported
No edit summary
Line 1: Line 1:
{{#invoke:sidebar|sidebar
<includeonly>
|navbar = none
<div class="sidebar" style="width:auto;">
|width = auto
    <!-- Library resources box header -->
|pretitle = [[Wikipedia:The Wikipedia Library|Library resources]] {{#ifeq: {{{about}}}|no||about <br> '''{{{label|{{PAGENAME}}}}}''' }} <hr />
    <div style="text-align:center; font-weight:bold;">
|contentclass = plainlist
        [[Wikipedia:The Wikipedia Library|Library resources]]
|bodystyle = text-align:left;
        {{#if: {{{about}}} |<br>'''{{{label|{{PAGENAME}}}}}''' |}}
    </div>


|heading1 =
    <!-- Horizontal line -->
|content1 =
    <hr />
{{#ifeq: {{{about}}}|no||{{#ifeq: {{{onlinebooks}}}|yes|* {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}}|{{#ifeq: {{{onlinebooksabout}}}|yes|* {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}}}}}}
* {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|label=Resources in your library}}
{{#ifeq: {{{others}}}|no||* {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=0CHOOSE0|label=Resources in other libraries}} }} }}


|heading2={{#ifeq: {{{by}}}|yes|By {{{label|{{PAGENAME}}}}}|}}
    <!-- Library content section -->
|content2={{#ifeq: {{{by}}}|yes|
    <div style="text-align:left;">
{{#ifeq: {{{onlinebooks}}}|yes|* {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}}|{{#ifeq: {{{onlinebooksby}}}|yes|* {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}}}}}}
        {{#if: {{{onlinebooks}}} |
* {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|label=Resources in your library}}
            * {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}}
{{#ifeq: {{{others}}}|no||* {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=0CHOOSE0|label=Resources in other libraries}} }} |}}
            {{#if: {{{onlinebooksabout}}} | * {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}} }}
}}<noinclude>
        }}
        * {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|label=Resources in your library}}
        {{#if: {{{others}}} |
            * {{Library link about|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=0CHOOSE0|label=Resources in other libraries}}
        }}
 
        <!-- Section for resources by the user -->
        {{#if: {{{by}}} |
            <div>
                <strong>By {{{label|{{PAGENAME}}}}}</strong>
                {{#if: {{{onlinebooks}}} |
                    * {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}}
                    {{#if: {{{onlinebooksby}}} | * {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=OLBP|label=Online books}} }}
                }}
                * {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|label=Resources in your library}}
                {{#if: {{{others}}} |
                    * {{Library link by|lcheading={{{lcheading|}}}|viaf={{{viaf|}}}|lccn={{{lccn|}}}|wikititle={{{wikititle|}}}|library=0CHOOSE0|label=Resources in other libraries}}
                }}
            </div>
        }}
    </div>
</div>
</includeonly>
 
<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>
{{no-index-template}}
{{no-index-template}}

Revision as of 23:45, 29 April 2025