Template:Implode characters with location: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
m jesus
Keira (talk | contribs)
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifexpr: {{#ask:
<includeonly>{{#ifexpr: {{#cargo_query:
[[:+]]
tables=characters
{{#if: {{{1|}}} |   [[Alignment::{{{1}}}]] | }}
|fields=COUNT(*)
{{#if: {{{2|}}} | [[Affiliation::{{{2}}}]] | }}
|where=characters.alignment = "{{{1}}}" and characters.status = "{{{3}}}" and characters.affiliation HOLDS "{{{2}}}" and characters.location = "{{{4}}}"
{{#if: {{{3|}}} |      [[Status::{{{3}}}]] | }}
|format=list
|format=count}} | <table class="nowraplinks navbox-subgroup" style="border-spacing:0">
}} | <table class="nowraplinks navbox-subgroup" style="border-spacing:0">{{#cargo_query:
{{#if: {{{4|}}} | {{Implode characters with location/render|{{{4}}}|#userparam={{{1|}}},{{{2|}}},{{{3|}}}}} |
tables=characters
{{Implode characters with location/render||#userparam={{{1|}}},{{{2|}}},{{{3|}}}}}{{#ask: [[Category:Locations]]
|fields=characters._pageName
|format=template
|where=characters.alignment = "{{{1}}}" and characters.status = "{{{3}}}" and characters.affiliation HOLDS "{{{2}}}" and characters.location = "{{{4}}}"
|template=Implode characters with location/render
|order by=characters.leader DESC, characters.name ASC
|userparam={{{1|}}},{{{2|}}},{{{3|}}}
|format=ul
|link=none
}}</table> | }}</includeonly>
}} }}</table> | }}</includeonly>

Latest revision as of 18:08, 27 July 2024