Template:TitleAsk: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
m (Adding search label text.)
m (Undo revision 579373. Reverting because searchlabel results does not like the titledisplay template.)
 
Line 15: Line 15:
{{!}}default=There appears to be a problem, please contact [[User:Caraamon|Moderator Caraamon]]
{{!}}default=There appears to be a problem, please contact [[User:Caraamon|Moderator Caraamon]]
{{#if:{{{o|}}}|{{!}}offset={{{o}}}}}
{{#if:{{{o|}}}|{{!}}offset={{{o}}}}}
|searchlabel=... more titles
|searchlabel=
}}
}}
{{#ifeq:{{{2}}}|-1||{{#ifexpr: {{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} titles]]{{#if:{{{s|}}}|{{#arraymap:{{{s}}}|,|@@@@|[[title subcategory is::@@@@]]| }}}}
{{#ifeq:{{{2}}}|-1||{{#ifexpr: {{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} titles]]{{#if:{{{s|}}}|{{#arraymap:{{{s}}}|,|@@@@|[[title subcategory is::@@@@]]| }}}}
Line 36: Line 36:
1=The title category name<br />
1=The title category name<br />
2=The number of items to be shown.<br />
2=The number of items to be shown.<br />
o=The offset from beginning to display (optional)<br />
o=The offset from begining to display (optional)<br />
s=Any required subcategories (optional)<br />
s=Any required subcategories (optional)<br />
h=Header to use instead of category name (optional)
h=Header to use instead of category name (optional)

Latest revision as of 19:52, 9 January 2022

A template for standardizing title listings.

Usage Documentation

1=The title category name
2=The number of items to be shown.
o=The offset from begining to display (optional)
s=Any required subcategories (optional)
h=Header to use instead of category name (optional)