Template:Library cat: Difference between revisions

Template page
No edit summary
No edit summary
Line 14: Line 14:
}}
}}
{{#ifeq:{{{hidden|}}}|yes|__HIDDENCAT__|}}
{{#ifeq:{{{hidden|}}}|yes|__HIDDENCAT__|}}
<noinclude>
<templatedata>
{
  "params": {
    "category": {
      "label": "Category",
      "description": "Full name of the category you want to make a list for, e.g., 'Library works by Karl Marx'. Required.",
      "required": true
    },
    "type": {
      "label": "Type",
      "description": "Can be either 'works' or 'documents'. Required.",
      "required": true
    },
    "pre": {
      "label": "Preposition",
      "description": "Can be 'by', 'from', or 'about'. Required.",
      "required": true
    },
    "topic": {
      "label": "Topic",
      "description": "Can be anything. The sentence will look like e.g., 'All library works by Karl Marx'. Will be linked to the wiki page. Required.",
      "required": true
    },
    "hidden": {
      "label": "Hidden",
      "description": "If 'yes', will hide this category under individual works but still apply it. Useful for reading lists."
    }
  }
}
</templatedata>
</noinclude>

Revision as of 18:36, 30 September 2023

This template is meant to be used in Library categories to display books in a more appealing and browsable way.

All of ProleWiki's library {{{type}}} {{{pre}}} [[{{{topic}}}]]

Extension:DynamicPageList3 (DPL3), version 3.5.2: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Categorycategory

Full name of the category you want to make a list for, e.g., 'Library works by Karl Marx'. Required.

Unknownrequired
Typetype

Can be either 'works' or 'documents'. Required.

Unknownrequired
Prepositionpre

Can be 'by', 'from', or 'about'. Required.

Unknownrequired
Topictopic

Can be anything. The sentence will look like e.g., 'All library works by Karl Marx'. Will be linked to the wiki page. Required.

Unknownrequired
Hiddenhidden

If 'yes', will hide this category under individual works but still apply it. Useful for reading lists.

Unknownoptional