Template:AllusionsItemTop: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 14: Line 14:
* '''AlCat1''' to '''AlCat12''' – Allusion categories, creating categories of type "Allusion (X)", where X is the name of the page into which the Allusion page is transcluded. Also shown in "Also see" section, with name of target page as link text
* '''AlCat1''' to '''AlCat12''' – Allusion categories, creating categories of type "Allusion (X)", where X is the name of the page into which the Allusion page is transcluded. Also shown in "Also see" section, with name of target page as link text
* '''Cat1''' to '''Cat10''' – Ad hoc categories. Also shown in "Also see" section
* '''Cat1''' to '''Cat10''' – Ad hoc categories. Also shown in "Also see" section
* '''CatName1''' to '''CatName10''' – Link text when this should be different from page name linked to
* '''CatText1''' to '''CatText10''' – Link text when this should be different from page name linked to
* '''HidCat1''' to '''HidCat10''' – Hidden ad hoc categories. Not shown in "Also see" section
* '''HidCat1''' to '''HidCat10''' – Hidden ad hoc categories. Not shown in "Also see" section
* '''Link1''' to '''Link10''' – Ad hoc internal links for "Also see" section
* '''Link1''' to '''Link10''' – Ad hoc internal links for "Also see" section
* '''LinkText1''' to '''LinkText10''' &ndash; Link text where this should be different from the page title linked to, for instance when linking to a DIV or SPAN on a page (using its ID).</div></noinclude><includeonly>__NOTOC__{{#vardefine:Name|{{PAGENAME}}}}{{#vardefine:Date|{{#ifeq:{{{Date|}}}||{{#sub:{{#var:Name}}|0|{{#pos:{{#var:Name}}|-|0}}}}|{{{Date}}}}}}}{{#vardefine:DatePrefix|{{#ifeq:{{{DatePrefix|}}}|||{{{DatePrefix}}}}}}}{{#vardefine:DatePrefix|{{#replace:{{#var:DatePrefix}}|[|&#91;}}}}{{#vardefine:DatePrefix|{{#replace:{{#var:DatePrefix}}|]|&#93;}}}}{{#vardefine:DateSuffix|{{#ifeq:{{{DateSuffix|}}}|||{{{DateSuffix}}}}}}}{{#vardefine:DateSuffix|{{#replace:{{#var:DateSuffix}}|[|&#91;}}}}{{#vardefine:DateSuffix|{{#replace:{{#var:DateSuffix}}|]|&#93;}}}}{{#vardefine:NameLessDate|{{#sub:{{#var:Name}}|{{#expr:{{#pos:{{#var:Name}}| - }}+2}}}}}}{{#vardefine:TitleParenthesis|{{#sub:{{#var:NameLessDate}}|{{#expr:{{#pos:{{#var:NameLessDate}}| - }}+2}}}}}}{{#vardefine:PosParenthesis|{{#pos:{{#var:TitleParenthesis}}| (}}}}{{#vardefine:AuthorSuffix|{{#ifeq:{{{AuthorPrefix|}}}|||{{{AuthorPrefix}}}}}}}{{#vardefine:AuthorPrefix|{{#replace:{{#var:AuthorPrefix}}|[|&#91;}}}}{{#vardefine:AuthorPrefix|{{#replace:{{#var:AuthorPrefix}}|]|&#93;}}}}{{#vardefine:Author|{{#ifeq:{{{Author|}}}||{{#sub:{{#var:NameLessDate}}|0|{{#expr:{{#pos:{{#var:NameLessDate}}| - }}-1}}}}|{{{Author}}}}}}}{{#vardefine:Title|{{#ifeq:{{{Title|}}}||{{#ifeq:{{#var:PosParenthesis}}|0|{{#var:TitleParenthesis}}|{{#sub:{{#var:TitleParenthesis}}|0|{{#var:PosParenthesis}}}}}}|{{{Title}}}}}}}{{#vardefine:BrackLeft|{{#sub:{{#var:Title}}|0|1}}}}{{#vardefine:BrackRight|{{#sub:{{#var:Title}}|{{#expr:{{#len:{{#var:Title}}}}-1}}|1}}}}{{#ifeq:{{#var:BrackLeft}}|[|{{#vardefine:Title|{{#sub:{{#var:Title}}|1|{{#expr:{{#len:{{#var:Title}}}}-1}}}}}}|{{#vardefine:BrackLeft|}}}}{{#ifeq:{{#var:BrackRight}}|]|{{#vardefine:Title|{{#sub:{{#var:Title}}|0|{{#expr:{{#len:{{#var:Title}}}}-1}}}}}}|{{#vardefine:BrackRight|}}}}{{#vardefine:AuthorSuffix|{{#ifeq:{{{AuthorSuffix|}}}|||{{{AuthorSuffix}}}}}}}{{#vardefine:AuthorSuffix|{{#replace:{{#var:AuthorSuffix}}|[|&#91;}}}}{{#vardefine:AuthorSuffix|{{#replace:{{#var:AuthorSuffix}}|]|&#93;}}}}{{#vardefine:FormatTitle|{{#ifeq:{{{PlainTitle|}}}||''{{#var:Title}}''|{{#var:Title}}}}}}{{#vardefine:About|{{#ifeq:{{{About|}}}|||{{{About}}}}}}}{{#vardefine:About|{{#replace:{{#var:About}}|[|&#91;}}}}{{#vardefine:About|{{#replace:{{#var:About}}|]|&#93;}}}}{{#vardefine:Century|{{#expr:{{#sub:{{#expr:{{#var:Date}}-{{#ifeq:{{#rpos:{{#var:Date}}|00}}|2|1|0}} }}|0|2}}+1}}}}{{#vardefine:TwoFirst|{{#sub:{{#var:Date}}|0|2}}}}{{#vardefine:TwoLast|{{#sub:{{#var:Date}}|2|2}}}}{{#vardefine:QCentury|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 00}}and {{#expr:{{#var:TwoLast}} < 26}}}}|1|01|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 25}} and {{#expr:{{#var:TwoLast}} < 51}}}}|1|26|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 50}} and {{#expr:{{#var:TwoLast}} < 76}}}}|1|51|76}}}}}}}}{{#vardefine:HCentury|{{#ifeq:{{#var:QCentury}}|01|01|{{#ifeq:{{#var:QCentury}}|26|01|51}}}}}}{{#vardefine:Last|{{#sub:{{#var:Date}}|3|1}}}}{{#vardefine:Decade|{{#sub:{{#ifeq:{{#var:last}}|0|{{#expr:{{#var:Date}} - 1}}|{{#var:Date}}}}|0|3}}1}}{{#vardefine:Poem|{{#ifeq:{{{Poem|}}}|||{{{Poem}}}}}}}{{#vardefine:Chronicle|{{#ifeq:{{{Chronicle|}}}|||{{{Chronicle}}}}}}}{{#vardefine:Proverb1|{{#ifeq:{{{Proverb1|}}}|||{{{Proverb1}}}}}}}{{#vardefine:Proverb2|{{#ifeq:{{{Proverb2|}}}|||{{{Proverb2}}}}}}}{{#vardefine:Proverb3|{{#ifeq:{{{Proverb3|}}}|||{{{Proverb3}}}}}}}{{#vardefine:AlCat1|{{#ifeq:{{{AlCat1|}}}|||{{{AlCat1}}}}}}}{{#vardefine:AlCat2|{{#ifeq:{{{AlCat2|}}}|||{{{AlCat2}}}}}}}{{#vardefine:AlCat3|{{#ifeq:{{{AlCat3|}}}|||{{{AlCat3}}}}}}}{{#vardefine:AlCat4|{{#ifeq:{{{AlCat4|}}}|||{{{AlCat4}}}}}}}{{#vardefine:AlCat5|{{#ifeq:{{{AlCat5|}}}|||{{{AlCat5}}}}}}}{{#vardefine:AlCat6|{{#ifeq:{{{AlCat6|}}}|||{{{AlCat6}}}}}}}{{#vardefine:AlCat7|{{#ifeq:{{{AlCat7|}}}|||{{{AlCat7}}}}}}}{{#vardefine:AlCat8|{{#ifeq:{{{AlCat8|}}}|||{{{AlCat8}}}}}}}{{#vardefine:AlCat9|{{#ifeq:{{{AlCat9|}}}|||{{{AlCat9}}}}}}}{{#vardefine:AlCat10|{{#ifeq:{{{AlCat10|}}}|||{{{AlCat10}}}}}}}{{#vardefine:AlCat11|{{#ifeq:{{{AlCat11|}}}|||{{{AlCat11}}}}}}}{{#vardefine:AlCat12|{{#ifeq:{{{AlCat12|}}}|||{{{AlCat12}}}}}}}{{#vardefine:Cat1| {{#ifeq: {{{Cat1|}}}|||{{{Cat1}}}}}}}{{#vardefine:CatText1|{{#ifeq: {{{CatText1|}}}|||{{{CatText1}}}}}}}{{#vardefine:Cat2|{{#ifeq:{{{Cat2|}}}|||{{{Cat2}}}}}}}{{#vardefine:CatText2|{{#ifeq:{{{CatText2|}}}|||{{{CatText2}}}}}}}{{#vardefine:Cat3|{{#ifeq:{{{Cat3|}}}|||{{{Cat3}}}}}}}{{#vardefine:CatText3|{{#ifeq:{{{CatText3|}}}|||{{{CatText3}}}}}}}{{#vardefine:Cat4|{{#ifeq:{{{Cat4|}}}|||{{{Cat4}}}}}}}{{#vardefine:CatText4|{{#ifeq:{{{CatText4|}}}|||{{{CatText4}}}}}}}{{#vardefine:Cat5|{{#ifeq:{{{Cat5|}}}|||{{{Cat5}}}}}}}{{#vardefine:CatText5|{{#ifeq:{{{CatText5|}}}|||{{{CatText5}}}}}}}{{#vardefine:Cat6|{{#ifeq:{{{Cat6|}}}|||{{{Cat6}}}}}}}{{#vardefine:CatText6|{{#ifeq:{{{CatText6|}}}|||{{{CatText6}}}}}}}{{#vardefine:Cat7|{{#ifeq:{{{Cat7|}}}|||{{{Cat7}}}}}}}{{#vardefine:CatText7|{{#ifeq:{{{CatText7|}}}|||{{{CatText7}}}}}}}{{#vardefine:Cat8|{{#ifeq:{{{Cat8|}}}|||{{{Cat8}}}}}}}{{#vardefine:CatText8|{{#ifeq:{{{CatText8|}}}|||{{{CatText8}}}}}}}{{#vardefine:Cat9|{{#ifeq:{{{Cat9|}}}|||{{{Cat9}}}}}}}{{#vardefine:CatText9|{{#ifeq:{{{CatText9|}}}|||{{{CatText9}}}}}}}{{#vardefine:Cat10|{{#ifeq:{{{Cat10|}}}|||{{{Cat10}}}}}}}{{#vardefine:CatText10|{{#ifeq:{{{CatText10|}}}|||{{{CatText10}}}}}}}{{#vardefine:HidCat1|{{#ifeq:{{{HidCat1|}}}|||{{{HidCat1}}}}}}}{{#vardefine:HidCat2|{{#ifeq:{{{HidCat2|}}}|||{{{HidCat2}}}}}}}{{#vardefine:HidCat3|{{#ifeq:{{{HidCat3|}}}|||{{{HidCat3}}}}}}}{{#vardefine:HidCat4|{{#ifeq:{{{HidCat4|}}}|||{{{HidCat4}}}}}}}{{#vardefine:HidCat5|{{#ifeq:{{{HidCat5|}}}|||{{{HidCat5}}}}}}}{{#vardefine:HidCat6|{{#ifeq:{{{HidCat6|}}}|||{{{HidCat6}}}}}}}{{#vardefine:HidCat7|{{#ifeq:{{{HidCat7|}}}|||{{{HidCat7}}}}}}}{{#vardefine:HidCat8|{{#ifeq:{{{HidCat8|}}}|||{{{HidCat8}}}}}}}{{#vardefine:HidCat9|{{#ifeq:{{{HidCat9|}}}|||{{{HidCat9}}}}}}}{{#vardefine:HidCat10|{{#ifeq:{{{HidCat10|}}}|||{{{HidCat10}}}}}}}{{#vardefine:Link1|{{#ifeq:{{{Link1|}}}|||{{{Link1}}}}}}}{{#vardefine:Link2|{{#ifeq:{{{Link2|}}}|||{{{Link2}}}}}}}{{#vardefine:Link3|{{#ifeq:{{{Link3|}}}|||{{{Link3}}}}}}}{{#vardefine:Link4|{{#ifeq:{{{Link4|}}}|||{{{Link4}}}}}}}{{#vardefine:Link5|{{#ifeq:{{{Link5|}}}|||{{{Link5}}}}}}}{{#vardefine:Link6|{{#ifeq:{{{Link6|}}}|||{{{Link6}}}}}}}{{#vardefine:Link7|{{#ifeq:{{{Link7|}}}|||{{{Link7}}}}}}}{{#vardefine:Link8|{{#ifeq:{{{Link8|}}}|||{{{Link8}}}}}}}{{#vardefine:Link9|{{#ifeq:{{{Link9|}}}|||{{{Link9}}}}}}}{{#vardefine:Link10|{{#ifeq:{{{Link10|}}}|||{{{Link10}}}}}}}{{#vardefine:LinkText1|{{#ifeq:{{{LinkText1|}}}|||{{{LinkText1}}}}}}}{{#vardefine:LinkText2|{{#ifeq:{{{LinkText2|}}}|||{{{LinkText2}}}}}}}{{#vardefine:LinkText3|{{#ifeq:{{{LinkText3|}}}|||{{{LinkText3}}}}}}}{{#vardefine:LinkText4|{{#ifeq:{{{LinkText4|}}}|||{{{LinkText4}}}}}}}{{#vardefine:LinkText5|{{#ifeq:{{{LinkText5|}}}|||{{{LinkText5}}}}}}}{{#vardefine:LinkText6|{{#ifeq:{{{LinkText6|}}}|||{{{LinkText6}}}}}}}{{#vardefine:LinkText7|{{#ifeq:{{{LinkText7|}}}|||{{{LinkText7}}}}}}}{{#vardefine:LinkText8|{{#ifeq:{{{LinkText8|}}}|||{{{LinkText8}}}}}}}{{#vardefine:LinkText9|{{#ifeq:{{{LinkText9|}}}|||{{{LinkText9}}}}}}}{{#vardefine:Link1Text0|{{#ifeq:{{{LinkText10|}}}|||{{{LinkText10}}}}}}}
* '''LinkText1''' to '''LinkText10''' &ndash; Link text where this should be different from the page title linked to, for instance when linking to a DIV or SPAN on a page (using its ID).
 
=== Categories and links ===
There are several ways to add an Allusion item page to a category through this template. The choice depends on how and where the Allusion will be transcluded ("''PAGENAME''" stands for the name of the transcluding page, ''X'' is the lowest unused integer):
# No page transcludes/is currently planned to transclude the allusion item: Ask yourself if the allusion should really be added to this unused category. If yes, use '''HidCat<i>X</i>''', and DO NOT use '''Link<i>X</i>'''. You may want to add a ToDo page to the Allusion item page or somewhere else as a reminder that this unused category exists.
#  Allusion will be transcluded in just one page:
## Page ''PAGENAME'' transcludes allusion items belonging to "<nowiki>[[Category:</nowiki>Allusion (''PAGENAME'')<nowiki>]]</nowiki>": use: '''AlCat<i>X</i>'''.
## Page ''PAGENAME'' transcludes allusion items belonging to "<nowiki>[[Category:</nowiki>''PAGENAME''<nowiki>]]</nowiki>": use: '''Cat<i>X</i>'''.
## Otherwise use: '''HidCat<i>X</i>''' for the category, and add link to the transcluding page using '''Link<i>X</i>'''.
#  Allusion will be transcluded in several pages: Use: '''HidCat<i>X</i>''' for the category, and add link to the transcluding page(s) using '''Link<i>X</i>''' (one for each transcluding page).</div></noinclude><includeonly>__NOTOC__{{#vardefine:Name|{{PAGENAME}}}}{{#vardefine:Date|{{#ifeq:{{{Date|}}}||{{#sub:{{#var:Name}}|0|{{#pos:{{#var:Name}}|-|0}}}}|{{{Date}}}}}}}{{#vardefine:DatePrefix|{{#ifeq:{{{DatePrefix|}}}|||{{{DatePrefix}}}}}}}{{#vardefine:DatePrefix|{{#replace:{{#var:DatePrefix}}|[|&#91;}}}}{{#vardefine:DatePrefix|{{#replace:{{#var:DatePrefix}}|]|&#93;}}}}{{#vardefine:DateSuffix|{{#ifeq:{{{DateSuffix|}}}|||{{{DateSuffix}}}}}}}{{#vardefine:DateSuffix|{{#replace:{{#var:DateSuffix}}|[|&#91;}}}}{{#vardefine:DateSuffix|{{#replace:{{#var:DateSuffix}}|]|&#93;}}}}{{#vardefine:NameLessDate|{{#sub:{{#var:Name}}|{{#expr:{{#pos:{{#var:Name}}| - }}+2}}}}}}{{#vardefine:TitleParenthesis|{{#sub:{{#var:NameLessDate}}|{{#expr:{{#pos:{{#var:NameLessDate}}| - }}+2}}}}}}{{#vardefine:PosParenthesis|{{#pos:{{#var:TitleParenthesis}}| (}}}}{{#vardefine:AuthorSuffix|{{#ifeq:{{{AuthorPrefix|}}}|||{{{AuthorPrefix}}}}}}}{{#vardefine:AuthorPrefix|{{#replace:{{#var:AuthorPrefix}}|[|&#91;}}}}{{#vardefine:AuthorPrefix|{{#replace:{{#var:AuthorPrefix}}|]|&#93;}}}}{{#vardefine:Author|{{#ifeq:{{{Author|}}}||{{#sub:{{#var:NameLessDate}}|0|{{#expr:{{#pos:{{#var:NameLessDate}}| - }}-1}}}}|{{{Author}}}}}}}{{#vardefine:Title|{{#ifeq:{{{Title|}}}||{{#ifeq:{{#var:PosParenthesis}}|0|{{#var:TitleParenthesis}}|{{#sub:{{#var:TitleParenthesis}}|0|{{#var:PosParenthesis}}}}}}|{{{Title}}}}}}}{{#vardefine:BrackLeft|{{#sub:{{#var:Title}}|0|1}}}}{{#vardefine:BrackRight|{{#sub:{{#var:Title}}|{{#expr:{{#len:{{#var:Title}}}}-1}}|1}}}}{{#ifeq:{{#var:BrackLeft}}|[|{{#vardefine:Title|{{#sub:{{#var:Title}}|1|{{#expr:{{#len:{{#var:Title}}}}-1}}}}}}|{{#vardefine:BrackLeft|}}}}{{#ifeq:{{#var:BrackRight}}|]|{{#vardefine:Title|{{#sub:{{#var:Title}}|0|{{#expr:{{#len:{{#var:Title}}}}-1}}}}}}|{{#vardefine:BrackRight|}}}}{{#vardefine:AuthorSuffix|{{#ifeq:{{{AuthorSuffix|}}}|||{{{AuthorSuffix}}}}}}}{{#vardefine:AuthorSuffix|{{#replace:{{#var:AuthorSuffix}}|[|&#91;}}}}{{#vardefine:AuthorSuffix|{{#replace:{{#var:AuthorSuffix}}|]|&#93;}}}}{{#vardefine:FormatTitle|{{#ifeq:{{{PlainTitle|}}}||''{{#var:Title}}''|{{#var:Title}}}}}}{{#vardefine:About|{{#ifeq:{{{About|}}}|||{{{About}}}}}}}{{#vardefine:About|{{#replace:{{#var:About}}|[|&#91;}}}}{{#vardefine:About|{{#replace:{{#var:About}}|]|&#93;}}}}{{#vardefine:Century|{{#expr:{{#sub:{{#expr:{{#var:Date}}-{{#ifeq:{{#rpos:{{#var:Date}}|00}}|2|1|0}} }}|0|2}}+1}}}}{{#vardefine:TwoFirst|{{#sub:{{#var:Date}}|0|2}}}}{{#vardefine:TwoLast|{{#sub:{{#var:Date}}|2|2}}}}{{#vardefine:QCentury|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 00}}and {{#expr:{{#var:TwoLast}} < 26}}}}|1|01|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 25}} and {{#expr:{{#var:TwoLast}} < 51}}}}|1|26|{{#ifeq:{{#expr:{{#expr:{{#var:TwoLast}} > 50}} and {{#expr:{{#var:TwoLast}} < 76}}}}|1|51|76}}}}}}}}{{#vardefine:HCentury|{{#ifeq:{{#var:QCentury}}|01|01|{{#ifeq:{{#var:QCentury}}|26|01|51}}}}}}{{#vardefine:Last|{{#sub:{{#var:Date}}|3|1}}}}{{#vardefine:Decade|{{#sub:{{#ifeq:{{#var:last}}|0|{{#expr:{{#var:Date}} - 1}}|{{#var:Date}}}}|0|3}}1}}{{#vardefine:Poem|{{#ifeq:{{{Poem|}}}|||{{{Poem}}}}}}}{{#vardefine:Chronicle|{{#ifeq:{{{Chronicle|}}}|||{{{Chronicle}}}}}}}{{#vardefine:Proverb1|{{#ifeq:{{{Proverb1|}}}|||{{{Proverb1}}}}}}}{{#vardefine:Proverb2|{{#ifeq:{{{Proverb2|}}}|||{{{Proverb2}}}}}}}{{#vardefine:Proverb3|{{#ifeq:{{{Proverb3|}}}|||{{{Proverb3}}}}}}}{{#vardefine:AlCat1|{{#ifeq:{{{AlCat1|}}}|||{{{AlCat1}}}}}}}{{#vardefine:AlCat2|{{#ifeq:{{{AlCat2|}}}|||{{{AlCat2}}}}}}}{{#vardefine:AlCat3|{{#ifeq:{{{AlCat3|}}}|||{{{AlCat3}}}}}}}{{#vardefine:AlCat4|{{#ifeq:{{{AlCat4|}}}|||{{{AlCat4}}}}}}}{{#vardefine:AlCat5|{{#ifeq:{{{AlCat5|}}}|||{{{AlCat5}}}}}}}{{#vardefine:AlCat6|{{#ifeq:{{{AlCat6|}}}|||{{{AlCat6}}}}}}}{{#vardefine:AlCat7|{{#ifeq:{{{AlCat7|}}}|||{{{AlCat7}}}}}}}{{#vardefine:AlCat8|{{#ifeq:{{{AlCat8|}}}|||{{{AlCat8}}}}}}}{{#vardefine:AlCat9|{{#ifeq:{{{AlCat9|}}}|||{{{AlCat9}}}}}}}{{#vardefine:AlCat10|{{#ifeq:{{{AlCat10|}}}|||{{{AlCat10}}}}}}}{{#vardefine:AlCat11|{{#ifeq:{{{AlCat11|}}}|||{{{AlCat11}}}}}}}{{#vardefine:AlCat12|{{#ifeq:{{{AlCat12|}}}|||{{{AlCat12}}}}}}}{{#vardefine:Cat1| {{#ifeq: {{{Cat1|}}}|||{{{Cat1}}}}}}}{{#vardefine:CatText1|{{#ifeq: {{{CatText1|}}}|||{{{CatText1}}}}}}}{{#vardefine:Cat2|{{#ifeq:{{{Cat2|}}}|||{{{Cat2}}}}}}}{{#vardefine:CatText2|{{#ifeq:{{{CatText2|}}}|||{{{CatText2}}}}}}}{{#vardefine:Cat3|{{#ifeq:{{{Cat3|}}}|||{{{Cat3}}}}}}}{{#vardefine:CatText3|{{#ifeq:{{{CatText3|}}}|||{{{CatText3}}}}}}}{{#vardefine:Cat4|{{#ifeq:{{{Cat4|}}}|||{{{Cat4}}}}}}}{{#vardefine:CatText4|{{#ifeq:{{{CatText4|}}}|||{{{CatText4}}}}}}}{{#vardefine:Cat5|{{#ifeq:{{{Cat5|}}}|||{{{Cat5}}}}}}}{{#vardefine:CatText5|{{#ifeq:{{{CatText5|}}}|||{{{CatText5}}}}}}}{{#vardefine:Cat6|{{#ifeq:{{{Cat6|}}}|||{{{Cat6}}}}}}}{{#vardefine:CatText6|{{#ifeq:{{{CatText6|}}}|||{{{CatText6}}}}}}}{{#vardefine:Cat7|{{#ifeq:{{{Cat7|}}}|||{{{Cat7}}}}}}}{{#vardefine:CatText7|{{#ifeq:{{{CatText7|}}}|||{{{CatText7}}}}}}}{{#vardefine:Cat8|{{#ifeq:{{{Cat8|}}}|||{{{Cat8}}}}}}}{{#vardefine:CatText8|{{#ifeq:{{{CatText8|}}}|||{{{CatText8}}}}}}}{{#vardefine:Cat9|{{#ifeq:{{{Cat9|}}}|||{{{Cat9}}}}}}}{{#vardefine:CatText9|{{#ifeq:{{{CatText9|}}}|||{{{CatText9}}}}}}}{{#vardefine:Cat10|{{#ifeq:{{{Cat10|}}}|||{{{Cat10}}}}}}}{{#vardefine:CatText10|{{#ifeq:{{{CatText10|}}}|||{{{CatText10}}}}}}}{{#vardefine:HidCat1|{{#ifeq:{{{HidCat1|}}}|||{{{HidCat1}}}}}}}{{#vardefine:HidCat2|{{#ifeq:{{{HidCat2|}}}|||{{{HidCat2}}}}}}}{{#vardefine:HidCat3|{{#ifeq:{{{HidCat3|}}}|||{{{HidCat3}}}}}}}{{#vardefine:HidCat4|{{#ifeq:{{{HidCat4|}}}|||{{{HidCat4}}}}}}}{{#vardefine:HidCat5|{{#ifeq:{{{HidCat5|}}}|||{{{HidCat5}}}}}}}{{#vardefine:HidCat6|{{#ifeq:{{{HidCat6|}}}|||{{{HidCat6}}}}}}}{{#vardefine:HidCat7|{{#ifeq:{{{HidCat7|}}}|||{{{HidCat7}}}}}}}{{#vardefine:HidCat8|{{#ifeq:{{{HidCat8|}}}|||{{{HidCat8}}}}}}}{{#vardefine:HidCat9|{{#ifeq:{{{HidCat9|}}}|||{{{HidCat9}}}}}}}{{#vardefine:HidCat10|{{#ifeq:{{{HidCat10|}}}|||{{{HidCat10}}}}}}}{{#vardefine:Link1|{{#ifeq:{{{Link1|}}}|||{{{Link1}}}}}}}{{#vardefine:Link2|{{#ifeq:{{{Link2|}}}|||{{{Link2}}}}}}}{{#vardefine:Link3|{{#ifeq:{{{Link3|}}}|||{{{Link3}}}}}}}{{#vardefine:Link4|{{#ifeq:{{{Link4|}}}|||{{{Link4}}}}}}}{{#vardefine:Link5|{{#ifeq:{{{Link5|}}}|||{{{Link5}}}}}}}{{#vardefine:Link6|{{#ifeq:{{{Link6|}}}|||{{{Link6}}}}}}}{{#vardefine:Link7|{{#ifeq:{{{Link7|}}}|||{{{Link7}}}}}}}{{#vardefine:Link8|{{#ifeq:{{{Link8|}}}|||{{{Link8}}}}}}}{{#vardefine:Link9|{{#ifeq:{{{Link9|}}}|||{{{Link9}}}}}}}{{#vardefine:Link10|{{#ifeq:{{{Link10|}}}|||{{{Link10}}}}}}}{{#vardefine:LinkText1|{{#ifeq:{{{LinkText1|}}}|||{{{LinkText1}}}}}}}{{#vardefine:LinkText2|{{#ifeq:{{{LinkText2|}}}|||{{{LinkText2}}}}}}}{{#vardefine:LinkText3|{{#ifeq:{{{LinkText3|}}}|||{{{LinkText3}}}}}}}{{#vardefine:LinkText4|{{#ifeq:{{{LinkText4|}}}|||{{{LinkText4}}}}}}}{{#vardefine:LinkText5|{{#ifeq:{{{LinkText5|}}}|||{{{LinkText5}}}}}}}{{#vardefine:LinkText6|{{#ifeq:{{{LinkText6|}}}|||{{{LinkText6}}}}}}}{{#vardefine:LinkText7|{{#ifeq:{{{LinkText7|}}}|||{{{LinkText7}}}}}}}{{#vardefine:LinkText8|{{#ifeq:{{{LinkText8|}}}|||{{{LinkText8}}}}}}}{{#vardefine:LinkText9|{{#ifeq:{{{LinkText9|}}}|||{{{LinkText9}}}}}}}{{#vardefine:Link1Text0|{{#ifeq:{{{LinkText10|}}}|||{{{LinkText10}}}}}}}
{{Infobox
{{Infobox
  |header1=Allusion
  |header1=Allusion

Revision as of 13:34, 9 June 2018

This template sets up page variables on item pages in IRHB's allusions section. It takes the following parameters which are all optional, except About:
  • Date – use for four-digit year if date in page name is in different format (rarely the case)
  • DatePrefix – typically for "c. "
  • DateSuffix – for instance for "?" or hyphen and four-digit upper year
  • AuthorPrefix – typically with value "["
  • Author – where form of author's name in info box should be different from that in page title
  • AuthorSuffix – typically with value "?" (in cases of doubtful attribution) or "]"
  • Title – where form of title in info box should be different from that in page title, for instance when a shorter form has been used in page name
  • About – the keyword list or summary of Robin Hood allusion
  • PlainTitle – Any non-empty value causes title of work to be formatted in plain (not italic) type. For MS or acephalous works, works without a title etc.
  • Poem – Any non-empty value causes the page also to be listed on the Poetry section landing page
  • Chronicle – Any non-empty value causes the page also to be listed on the Chronicles section landing page
  • Proverb1 to Proverb3 – one-word shorthand reference to proverb
  • AlCat1 to AlCat12 – Allusion categories, creating categories of type "Allusion (X)", where X is the name of the page into which the Allusion page is transcluded. Also shown in "Also see" section, with name of target page as link text
  • Cat1 to Cat10 – Ad hoc categories. Also shown in "Also see" section
  • CatText1 to CatText10 – Link text when this should be different from page name linked to
  • HidCat1 to HidCat10 – Hidden ad hoc categories. Not shown in "Also see" section
  • Link1 to Link10 – Ad hoc internal links for "Also see" section
  • LinkText1 to LinkText10 – Link text where this should be different from the page title linked to, for instance when linking to a DIV or SPAN on a page (using its ID).

Categories and links

There are several ways to add an Allusion item page to a category through this template. The choice depends on how and where the Allusion will be transcluded ("PAGENAME" stands for the name of the transcluding page, X is the lowest unused integer):

  1. No page transcludes/is currently planned to transclude the allusion item: Ask yourself if the allusion should really be added to this unused category. If yes, use HidCatX, and DO NOT use LinkX. You may want to add a ToDo page to the Allusion item page or somewhere else as a reminder that this unused category exists.
  2. Allusion will be transcluded in just one page:
    1. Page PAGENAME transcludes allusion items belonging to "[[Category:Allusion (PAGENAME)]]": use: AlCatX.
    2. Page PAGENAME transcludes allusion items belonging to "[[Category:PAGENAME]]": use: CatX.
    3. Otherwise use: HidCatX for the category, and add link to the transcluding page using LinkX.
  3. Allusion will be transcluded in several pages: Use: HidCatX for the category, and add link to the transcluding page(s) using LinkX (one for each transcluding page).