Template:TitleAsk: Difference between revisions
Jump to navigation
Jump to search
(Make "...more titles" actually appear!) |
SPICYDIAPSID (talk | contribs) m (Undo revision 579373. Reverting because searchlabel results does not like the titledisplay template.) |
||
(10 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq:{{{2}}}|-1||{{{!}} class="wikitable" |
<includeonly>{{#ifeq:{{{2}}}|-1||{{{!}} class="wikitable sortable" |
||
{{!}}- |
{{!}}- |
||
!colspan=2 style="background-color:powderblue;" {{!}}{{{1}}} |
!colspan=2 style="background-color:powderblue;" {{!}}{{#if:{{{header|}}}|{{{header}}}|{{{1}}}}} |
||
{{!}}- |
{{!}}- |
||
! Title !! Requirements |
! Title !! Requirements |
||
{{!}}-}} |
{{!}}-}} |
||
{{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} |
{{#ask: [[Title:+]] [[page type is::title]] [[title category is::Category:{{{1}}} titles]]{{#if:{{{s|}}}|{{#arraymap:{{{s}}}|,|@@@@|[[title subcategory is::@@@@]]| }}}} |
||
|?Title requirement |
|?Title requirement |
||
|format=template |
|format=template |
||
Line 17: | Line 17: | ||
|searchlabel= |
|searchlabel= |
||
}} |
}} |
||
{{#ifeq:{{{2}}}|-1||{{#ifexpr: {{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} |
{{#ifeq:{{{2}}}|-1||{{#ifexpr: {{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} titles]]{{#if:{{{s|}}}|{{#arraymap:{{{s}}}|,|@@@@|[[title subcategory is::@@@@]]| }}}} |
||
|?Title requirement |
|?Title requirement |
||
|format=count |
|format=count |
||
Line 23: | Line 23: | ||
|limit=5 |
|limit=5 |
||
}} > {{{2}}} | {{!}}- class="smwfooter" |
}} > {{{2}}} | {{!}}- class="smwfooter" |
||
{{!}} colspan=2 class="sortbottom" {{!}}{{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} |
{{!}} colspan=2 class="sortbottom" {{!}}{{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} titles]]{{#if:{{{s|}}}|{{#arraymap:{{{s}}}|,|@@@@|[[title subcategory is::@@@@]]| }}}} |
||
|?Title requirement |
|?Title requirement |
||
|mainlabel=Title |
|mainlabel=Title |
||
|sort=Title difficulty is, |
|||
|searchlabel=... more titles |
|searchlabel=... more titles |
||
|limit=0 |
|limit=0 |
||
}}}} |
|||
{{!}}} }}</includeonly><noinclude> |
|||
A template for standardizing title listings. |
A template for standardizing title listings. |
||
Line 35: | Line 37: | ||
2=The number of items to be shown.<br /> |
2=The number of items to be shown.<br /> |
||
o=The offset from begining to display (optional)<br /> |
o=The offset from begining to display (optional)<br /> |
||
s=Any required subcategories (optional) |
s=Any required subcategories (optional)<br /> |
||
h=Header to use instead of category name (optional) |
|||
{{cat|templates}}</noinclude> |
{{cat|templates,Search Templates}}</noinclude> |
Latest revision as of 18: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)