Template:PlaceNamesAllusionsCategory: Difference between revisions

From International Robin Hood Bibliography
(Created page with "{{#ifeq:{{{AlCat|}}}|||{{#ifeq:{{#pos:{{{AlCat|}}}|(}}||[[Category:Allusions ({{{AlCat|}}})]]|Category:Allusions ({{#replace:{{#sub:{{{AlCat|}}}|0|{{#expr:{{#pos:{{{AlCat|}}...")
 
mNo edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifeq:{{{AlCat|}}}|||{{#ifeq:{{#pos:{{{AlCat|}}}|(}}||[[Category:Allusions ({{{AlCat|}}})]]|[[Category:Allusions ({{#replace:{{#sub:{{{AlCat|}}}|0|{{#expr:{{#pos:{{{AlCat|}}}|(}}-1}}}},{{#sub:{{{AlCat|}}}|{{#expr:{{#pos:{{{AlCat|}}}|(}}-1}}}}|(|}}]]}}}}
<noinclude><div class="no-img">This template adds categories for place-name allusions to an allusion item page.</div></noinclude><includeonly>{{#ifeq:{{{AlCat|}}}|||[[Category:Allusions {{#replace:({{#ifeq:{{#pos:{{{AlCat|}}}|(|0}}||{{{AlCat|}}}|{{#replace:{{UtilLParenToSpComma|Str={{{AlCat|}}}}}|)|,}}}})|,)|)}}]]}}</includeonly>
<noinclude>
<templatedata>
{
"params": {
"AlCat": {
"label": "Allusion Category",
"description": "The name of the category",
"type": "string"
}
},
"description": "Adds categories for place-name allusions to place-name pages. Parameter is added automatically by another template."
}
</templatedata>
</noinclude>

Latest revision as of 23:29, 17 February 2022

This template adds categories for place-name allusions to an allusion item page.

Adds categories for place-name allusions to place-name pages. Parameter is added automatically by another template.

Template parameters

ParameterDescriptionTypeStatus
Allusion CategoryAlCat

The name of the category

Stringoptional