Template:Implode characters: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
only include main namespace capes
Keira (talk | contribs)
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>usage: <pre><nowiki>{{implode characters|ALIGNMENT|AFFILIATION|STATUS|LOCATION|}}</nowiki></pre>
usage: <pre><nowiki>{{implode characters|ALIGNMENT|AFFILIATION|STATUS}}</nowiki></pre>
 
toss in a hidelabels=1 if u want


leave ones you dont want blank.
leave ones you dont want blank.


"None" for affiliation may help
"None" for affiliation may help
</noinclude>
</noinclude><includeonly>
<includeonly>{{#ask:
{{#cargo_query:
[[:+]]
tables=characters
{{#if: {{{1|}}} | [[Alignment::{{{1}}}]]  | }}
|fields=characters._pageName
{{#if: {{{2|}}} | [[Affiliation::{{{2}}}]] | }}
|where=characters.status = "{{{3}}}" and characters.alignment = "{{{1}}}" and characters.affiliation HOLDS {{#if: {{{2|}}} |"{{{2}}}" | "None" }}
{{#if: {{{3|}}} | [[Status::{{{3}}}]]    | }}
|order by=characters.leader DESC, characters.name ASC
|format=ul}}</includeonly>
|format=ul
|default=
}}</includeonly>

Latest revision as of 18:26, 27 July 2024

usage:

{{implode characters|ALIGNMENT|AFFILIATION|STATUS|LOCATION|}}

toss in a hidelabels=1 if u want

leave ones you dont want blank.

"None" for affiliation may help