Template:TitleAsk: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
! Title !! Requirements |
! Title !! Requirements |
||
{{!}}-}} |
{{!}}-}} |
||
{{#ask: [[page type is::title]] [[title category is::Category:{{{1}}} |
{{#ask: [[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 |
||
Line 39: | Line 39: | ||
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) |
||
{{cat|templates,Search |
{{cat|templates,Search templates}}</noinclude> |
Revision as of 21:48, 28 December 2014
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)